Skip to content

Instantly share code, notes, and snippets.

@arnvgh
Created December 12, 2023 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnvgh/21cd58796dce78e30211ac2ce65fa827 to your computer and use it in GitHub Desktop.
Save arnvgh/21cd58796dce78e30211ac2ce65fa827 to your computer and use it in GitHub Desktop.

Arch Install Guide For Dummies

  • connect to internet and just use archinstall or follow the rest of guide if you don't want to use it.
  • lsblk (list block devices)
  • partition disks using cfdisk
    • /boot/efi (>100M and < 1G)
    • SWAP (2x your system memory)
    • / (root) (rest of the space)
    • opt. seperate /home partition (not covered in this guide)
  • format to specific filetypes
mkfs.ext4 /dev/nvme0n1p3
mkfs.fat -F 32 /dev/nvme0n1p1
mkswap /dev/nvme0n1p2
  • mount drives
mount /dev/nvme0n1p3
mkdir -p /mnt/boot/efi
mount /dev/nvme0n1p1
SWAPON /dev/nvme0n1p2
  • install arch (yay!)
pacstrap /mnt base linux linux-firmware sof-firmware base-devel grub efibootmgr nano networkmanager
  • generate fstab
genfstab /mnt > /mnt/etc/fstab
  • chroot into arch uwu
arch-chroot /mnt
  • Timezone
ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
  • check with date
  • localization
nano /etc/locale.gen

(find the en_US.UTF-8 UTF-8 and uncomment)

locale-gen
nano /etc/locale.conf # LANG=en_US.UTF-8
  • keybaord layout (optional, default = US)
  • hostname
nano /etc/hostname # edit file with hostname
  • root passwd and add user (replace ag with your username)
passwd
useradd -m -G wheel -s /bin/bash ag
passwd ag
  • visudo
EDITOR=nano visudo # uncommect %sudo ALL=(ALL) ALL

sudo pacman -Syu

  • enable system core services
systemctl enable NetworkManager
  • install grub
grub-install /dev/nvme0n1
grub-mkconfig -o /boot/grub/grub.cfg

exit from chroot and umount -a and reboot 🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment