Skip to content

Instantly share code, notes, and snippets.

@larsch
Last active September 5, 2015 18:21
Show Gist options
  • Select an option

  • Save larsch/b0d72eaa63a5602e2cb5 to your computer and use it in GitHub Desktop.

Select an option

Save larsch/b0d72eaa63a5602e2cb5 to your computer and use it in GitHub Desktop.
  1. Partion the disk
parted /dev/sda
mklabel gpt
mkpart ext2 1 3
set 1 bios_grub on
mkpart ext2 3 131
mkpart ext4 131 -1
  1. Create the file systems
mkfs.ext2 /dev/sda2
mkfs.ext4 /dev/sda3
  1. Mount the root file system and boot partition
mount /dev/sda3 /mnt
mkdir -p /mnt/boot
mount /dev/sda /mnt/boot
  1. Bootstrap [Arch] Linux
pacstrap /mnt base
  1. Install OpenSSH server
pacman -S openssh
systemctl enable openssh
systemctl start openssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment