Installing arch linux on UEFI systems, these notes are copied from some old orgfile I have lying around
- Assuming wired internet connection. Otherwise
wifi-menushould save the day - Partition disks with
cgdisk /dev/nvme0n1(orlsblkto find the disk)
- EFI system, codename
ef00at 500M for partition 1 - Linux filesystem, codename
8300for partitions 2 and 3 - DO NOT create a swap partition
- Format partitions
mkfs.fat -F32 /dev/nvme0n1p1mkfs.ext4 /dev/nvme0n1p2mkfs.ext4 /dev/nvme0n1p3
- Mount everything
mount /dev/nvme0n1p2 /mntmkdir -p /mnt/bootmkdir -p /mnt/home/nsalas/permamount /dev/nvme0n1p1 /mnt/bootmount /dev/nvme0n1p3 /mnt/home/nsalas/perma
- Had something about mirrors, but that has changed over time. Will update
- Install the base system
pacstrap /mnt linux base base-devel git neovim curl wget sudo - fstab:
genfstab -U /mnt >> /mnt/etc/fstab. Check it. - chroot:
arch-chroot /mnt - timezone:
ln -sf /usr/share/zoneinfo/America/Santiago /etc/localtime hwclock --systohc. Dunno. w/envim /etc/locale.genand uncommenten_US.UTF-8 UTF-8I’ve neededes_CL.UTF-8in the past but recently english only is finelocale-genecho LANG=en_US.UTF-8 > /etc/locale.confecho minji > /etc/hostnameor w/e hostname. She’s the best tho- Edit
/etc/hosts:
127.0.0.1 localhost
::1 localhost
127.0.0.1 minji.localdomain minji
passwd. This one should be hard because it’s rootpacman -S grub amd-ucode linux-firmware efibootmgrgrub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ARCHgrub-mkconfig -o /boot/grub/grub.cfgpacman -S networkmanager network-manager-appletotherwise might not have internet. Wifi might be available throughnmcli. Honestly haven’t checked because I haven’t set up a laptop recently.exitumount -R /mntreboot- Login as root, no problem
pacman -S zsh zsh-completionsgroupadd dockeruseradd -m -G wheel,docker,input -s /usr/bin/zsh nsalaspasswd nsalasvisudo, then search forwheeland uncomment. You know the drill- Might opt for
doashere, but honestly is not too good of an option systemctl enable NetworkManager.servicesystemctl enable bluetooth.servicenvim /etc/pacman.confand enable multilibpacman -Syushouldn’t have many updates. After this I believe dotfiles installing should be fine