Start iwctl
#> iwctlList devices
[iwd]# device listPut device in scanning mode
[iwd]# station wlan0 scanIn scanning mode get networks
[iwd]# station wlan0 get-networksConnect to network
[iwd]# station wlan0 connect networknamecfdisk /dev/nvme0n1cryptsetup -y -v luksFormat /dev/nvme0n1p2cryptsetup open /dev/nvme0n1p2 rootmkfs.fat -F32 /dev/nvme0n1p1mkfs.ext4 /dev/mapper/rootMount partitions
mount /dev/mapper/root /mntmkdir /mnt/bootmount /dev/nvme0n1p1 /mnt/bootRefresh pacman keyring (optional)
pacman -Sypacman -S archlinux-keyringpacstrap /mnt base base-devel linux linux-firmware vim sudo git networkmanager grub efibootmgrGenerate fstab
genfstab -U /mnt >> /mnt/etc/fstabSwitch to Arch installation
arch-chroot /mntSet time / locale
ln -sf /usr/share/zoneinfo/America/Phoenix /etc/localtimehwclock --systohcuncomment "en_US.UTF-8 UTF-8"
vim /etc/locale.genlocale-genecho 'LANG=en_US.UTF-8' > /etc/locale.confSet hostname
echo 'arch' > /etc/hostnameAdd to /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch.localdomain archSet root password
passwdCreate user
useradd matthewpasswd matthewmkdir /home/matthew && chown -R matthew:matthew /home/matthewGrant root to user (optional)
visudovim /etc/groupLocate “HOOKS” and add “encrypt” between “block” and “filesystems”
vim /etc/mkinitcpio.confmkinitcpio -PInstall boot os-prober (optional)
pacman -S os-probervim /etc/default/grubSet GRUB_CMDLINE_LINUX variable (e.g.)
GRUB_CMDLINE_LINUX=”cryptdevice=/dev/nvme0n1p2:root”For NVIDIA/Intel add “ibt=off" before quiet to disable Indirect Branch Tracking
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 ibt=off quiet"Uncomment GRUB_DISABLE_OS_PROBER (optional)
Install GRUB
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUBMake GRUB config
grub-mkconfig -o /boot/grub/grub.cfgsystemctl enable NetworkManagerEnable multiplib
vim /etc/pacman.confpacman -SyNVIDIA
sudo pacman -S nvidia nvidia-utils nvidia-settings lib32-nvidia-utils