Skip to content

Instantly share code, notes, and snippets.

@Apxdono
Last active March 13, 2017 19:41
Show Gist options
  • Save Apxdono/03ed71cb92c2ea0232095b6427560ed8 to your computer and use it in GitHub Desktop.
Save Apxdono/03ed71cb92c2ea0232095b6427560ed8 to your computer and use it in GitHub Desktop.
Archlinux setup instructions

Full guide here

First steps:

  • Check internet. Skip keyboard setup
  • Set time timedatectl set-ntp true
  • Setup disks. fdisk -l to see available hardware. e.g. /dev/sda
    • fdisk /dev/sda and start creating all the needed partions with sizes (/home, /boot, swap, /, /opt, /usr)
    • when done press w and the partition table will be written to disk (after that previous data is 50% fucked unless it's the same as before)
  • Format partitions e.g. mkfs.ext4 /dev/sda1
  • Now mount everything. the directory to mount to is /mnt. mount /dev/sda1 /mnt, mkdir /mnt/{boot,home,usr,opt} and do the same trick for other partitions.
  • Edit pacman file and move servers closer to you if required, this will be copied to your final installation. nano /etc/pacman.d/mirrorlist
  • Do base install pacstrap /mnt base
  • Generate fstab genfstab -U /mnt >> /mnt/etc/fstab and check if swap is not added add it manually
  • Do arch-chroot /mnt
  • Set timezone ln -sf /usr/share/zoneinfo/Europe/Kiev /etc/localtime and run hwclock --systohc
  • Set locale locale-gen and echo "LANG=ru_RU.UTF8" >> /etc/locale.conf
  • Set hostname in /etc/hostname
  • Set root password aaaand reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment