Skip to content

Instantly share code, notes, and snippets.

@shinux
Created April 12, 2017 08:34
Show Gist options
  • Save shinux/6115d43c9ed1820a62e66b93cbb99fe7 to your computer and use it in GitHub Desktop.
Save shinux/6115d43c9ed1820a62e66b93cbb99fe7 to your computer and use it in GitHub Desktop.
Installing Arch Linux On a Vultr Server

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 latter 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment