Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save juniorctl/bd9c0afcc313620aeae9d18876f41a5c to your computer and use it in GitHub Desktop.
Save juniorctl/bd9c0afcc313620aeae9d18876f41a5c to your computer and use it in GitHub Desktop.
Installing Arch Linux On a Vultr Server (2017)

Installing Arch Linux On a Vultr Server

This is a minimal installation guide targeted to get Arch Linux running on Vultr. For simplicity, 'time zone', 'hostname', 'locale' and 'initramfs' are omited, you can configure them later by yourself.

Partition the disks

For simplicity, we use single root partition.

# fdisk /dev/vda
# n
# enter(use default)
# enter(use default)
# enter(use default)
# enter(use default)
# w

Format the partitions

# mkfs.ext4 /dev/vda1

Mount the file systems

# mount /dev/vda1 /mnt

Install the base packages

# pacstrap /mnt base

Fstab

# genfstab -U /mnt >> /mnt/etc/fstab

Chroot

# arch-chroot /mnt

Network configuration

# systemctl enable dhcpcd

Root password

# passwd
# (enter your passwd)
# (enter again)

Boot loader

# pacman -S grub
# grub-install /dev/vda
# grub-mkconfig -o /boot/grub/grub.cfg

SSH

# pacman -S openssh
# systemctl enable sshd

Shutdown

# exit
# shutdown now

Finally, goto https://my.vultr.com/ and remove ISO. (your arch will start to boot)

References

  1. Offical arch linux installation guide
@bcomnes
Copy link

bcomnes commented Jul 21, 2019

Thanks this was super helpful, the official docs recommends a lot of extra things and misses a few critical things.

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