Skip to content

Instantly share code, notes, and snippets.

@OneOfOne
Last active January 10, 2019 04:30
Show Gist options
  • Select an option

  • Save OneOfOne/447253bc3fa4a62a5f70e4f230c7e9d5 to your computer and use it in GitHub Desktop.

Select an option

Save OneOfOne/447253bc3fa4a62a5f70e4f230c7e9d5 to your computer and use it in GitHub Desktop.
Installing Arch Linux For Dummies!

Installing Arch Linux For Dummies!

Step 0

Step 1 (filesystems and mounting)

  • note /dev/sdX1 IS always the EFI partition.
  • mkfs.ext4 -L ROOT /dev/sdXY
  • mkfs.ext4 -L HOME /dev/sdXZ optional
  • mount /dev/sdXY /mnt
  • mount /dev/sdXZ /mnt/home
  • mount /dev/sdX1 /mnt/boot

Step 2 (installing stuff)

  • pacstrap /mnt base base-devel grub efibootmgr os-prober intel-ucode (amd-ucode if you use amd)
  • genfstab -U /mnt >> /mnt/etc/fstab
  • arch-chroot /mnt
  • ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
  • hwclock --systohc
  • echo en_US.UTF-8 UTF-8 > /etc/locale.gen && locale-gen
  • echo something > /etc/hostname
  • passwd (set root password)

Step 3 (bootloader)

  • grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
  • grub-mkconfig -o /boot/grub/grub.cfg
  • exit
  • sacrifice a virgin to satan
  • reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment