Arch Linux install notes

2022/07/10

Installing arch linux on UEFI systems, these notes are copied from some old orgfile I have lying around

  1. Assuming wired internet connection. Otherwise wifi-menu should save the day
  2. Partition disks with cgdisk /dev/nvme0n1 (or lsblk to find the disk)
  1. Format partitions
  1. Mount everything
  1. Had something about mirrors, but that has changed over time. Will update
  2. Install the base system pacstrap /mnt linux base base-devel git neovim curl wget sudo
  3. fstab: genfstab -U /mnt >> /mnt/etc/fstab. Check it.
  4. chroot: arch-chroot /mnt
  5. timezone: ln -sf /usr/share/zoneinfo/America/Santiago /etc/localtime
  6. hwclock --systohc. Dunno. w/e
  7. nvim /etc/locale.gen and uncomment en_US.UTF-8 UTF-8 I’ve needed es_CL.UTF-8 in the past but recently english only is fine
  8. locale-gen
  9. echo LANG=en_US.UTF-8 > /etc/locale.conf
  10. echo minji > /etc/hostname or w/e hostname. She’s the best tho
  11. Edit /etc/hosts:
127.0.0.1 localhost
::1 localhost
127.0.0.1 minji.localdomain minji
  1. passwd. This one should be hard because it’s root
  2. pacman -S grub amd-ucode linux-firmware efibootmgr
  3. grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ARCH
  4. grub-mkconfig -o /boot/grub/grub.cfg
  5. pacman -S networkmanager network-manager-applet otherwise might not have internet. Wifi might be available through nmcli. Honestly haven’t checked because I haven’t set up a laptop recently.
  6. exit
  7. umount -R /mnt
  8. reboot
  9. Login as root, no problem
  10. pacman -S zsh zsh-completions
  11. groupadd docker
  12. useradd -m -G wheel,docker,input -s /usr/bin/zsh nsalas
  13. passwd nsalas
  14. visudo, then search for wheel and uncomment. You know the drill
  15. Might opt for doas here, but honestly is not too good of an option
  16. systemctl enable NetworkManager.service
  17. systemctl enable bluetooth.service
  18. nvim /etc/pacman.conf and enable multilib
  19. pacman -Syu shouldn’t have many updates. After this I believe dotfiles installing should be fine