Skip to content

Instantly share code, notes, and snippets.

@bambusdani
Last active March 20, 2018 15:21
Show Gist options
  • Save bambusdani/1f66e876eb07954d88c5a50ebbd0a7a3 to your computer and use it in GitHub Desktop.
Save bambusdani/1f66e876eb07954d88c5a50ebbd0a7a3 to your computer and use it in GitHub Desktop.
Install Arch Linux

Windows

  1. Disable Windows Fast-Startup
  2. Disable Secure Boot

Arch Linux

Load keyboard layout (optional)

$ loadkeys de

Create partitions

$ cfdisk /dev/sdX
  1. 100% Root Linux partition

Format and mount disks

$ mkfs.ext4 /dev/sdX1
$ mount /dev/sdX1 /mnt

Install

$ pacstrap /mnt base base-devel

Generate fstab

$ genfstab -U -p /mnt >> /mnt/etc/fstab

Chroot and configure base system

$ arch-chroot /mnt

Root password

$ passwd

Hostname

$ echo HOSTNAME >> /etc/hostname

Timezone

$ ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime

Locale

$ nano /etc/locale.gen # Uncomment enUS
$ locale-gen

Console keymap

$ echo KEYMAP=de-latin1-nodeadkeys > /etc/vconsole.conf

Initial ramdisk environment

mkinitcpio -p linux

Grub

$ pacman -S grub
$ grub-install /dev/sdX
$ grub-mkconfig -o /boot/grub/grub.cfg

After installation

$ pacman -S networkmanager
$ systemctl enable NetworkManager
$ useradd -m -g users -G wheel NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment