- Burn the Arch Linux ISO onto a USB stick
- Boot the laptop with the boot media in it; hit F2 to enter the setup menu and then hit F12 to get to the one-time boot screen. Select the boot media containing the Arch Linux image.
- Connect to the internet:
wifi-menu - Update the system clock:
timedatectl set-ntp true - Partition the disk:
- Use
lsblkto get the name of the hard drive we wish to partition. - Use fdisk:
fdisk /dev/<deviceName>. Don’t specify the partition. - Ensure that the type of hard drive scheme(?) is GPT with
pto print the current partition information. - Delete the existing partitions with
d. - Create the EFI partition:
nfor new partition.Enterfor default value for partition number.Enterfor default value for first sector.+550Mto make the partition size 550MB.- Hit
tto change partition type. Since there is only one partitoin, no partition selection is needed. 1to select EFI System Partition.pto verify current state of partitions.
- Create the root partition:
nfor new partition.Enterfor default value for partition number.Enterfor default value for first sector.Enterto use the rest of the hard drive as partition space.
wto write partitions and exit fdisk.
- Use
- Encrypt the root partition with
dm-crypt:cryptsetup luksFormat --tppe luks2 /dev/<partitonName> - Open the luks container:
crytsetup open /dev/<partitionName> <name>. <name> will give the device a name at/dev/mapper/<name>. I’ll call it root. - Create the filesystems:
mkfs.ext4 /dev/mapper/<name>mkfs.fat -F32 /dev/<bootPartition>
- Mount the partitions:
mount /dev/mapper/root /mntmkdir /mnt/bootmount /dev/<bootPartition> /mnt/boot
- Install Arch Linux:
pacstrap /mnt base base-devel - Generate an fstab:
genfstab -U /mnt >> /mnt/etc/fstab - Change root into system:
arch-chroot /mnt - Set time zone:
ln -sf /usr/share/zoneinfo/Canada/Eastern /etc/localtimehwclock --systohc
- Set locale:
vi /etc/locale.gen, uncomment en_US.UTF-8 UTF-8locale-genvi /etc/locale.conf, set value to **LANG=en_US.UTF-8*.
- Set hostname:
echo <hostname> > /etc/hostname. - Install network-related tools:
pacman -S wpa_supplicant iw dialog. vi /etc/mkinitcpio.confand make some additons to **HOOKS**:encryptandkeyboard:- After
autodetect, addkeyboard. - After
block, addencrypt
- After
- Set root password:
passwd - Create user account:
useradd -m -G wheel <username> - Use
visudoto enable all members of the **wheel** group to usesudo. - Install Intel microcode updates:
pacman -S intel-ucode. - Install & setup GRUB:
pacman -S grub efibootmgrgrub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUBvi /etc/default/grub, add the following to the **GRUB_CMDLINE_LINUX** argument:GRUB_CMDLINE_LINUX="cryptdevice=/dev/nvme0n1p2:root root=/dev/mapper/root"grub-mkconfig -o /boot/grub/grub.cfgmkinitcpio -p linux
- Exit the chroot:
exit. - Unmount all partitions:
umount -R /mnt reboot!
Created
December 16, 2018 22:27
-
-
Save obsoke/dddc6367ad7587126b6afc75f85a5f6b to your computer and use it in GitHub Desktop.
Installing Arch Linux on a Dell Precision 5530
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment