ArchLinux on OVH Dedicated Server

OVH offers (at the moment) two ArchLinux distributions. One is not working as of this writting and the other is fairly old, and has a mix of initd and systemd parts. The partition wizard for the control panel is not great either.

I wanted to install a clean ArchLinux base and was looking around how to do it easily and correctly from the offered rescue-cd bootable they offer which happens to be a debian variant.

I found the following site: http://guillaumejcharmes.blogspot.com/2012/12/up-to-date-arch-linux-kernel-with.html.

Here are the important parts:


> gdisk /dev/sda
> mkfs -t ext4 /dev/sda1

> mount /dev/sda1 /mnt
> mkdir /mnt/tmp
> cd /mnt/tmp

> wget http://tokland.googlecode.com/svn/trunk/archlinux/arch-bootstrap.sh
> sh arch-bootstrap.sh -a x86_64 /mnt
> wget -O /mnt/tmp/havegen.tar.xz https://www.archlinux.org/packages/community/x86_64/haveged/download/

> mount -o bind /dev /mnt/dev
> mount -o bind /dev/pts /mnt/dev/pts
> mount -t proc /prorc /mnt/proc
> mount -t sysfs /sys /mnt/sys
> chroot /mnt

> cd /
> tar xJf /tmp/havegen.tar.xz
> havegen -w 1024

> pacman-key –init
> pacman-key –populate

> pacman -S base base-devel syslinux gdisk openssh sudo cmake
> gensftab / > /etc/fstab

#
# Create your hostname file: /etc/hostname containing the hostname of the system.
#

> nano /etc/locale.gen
> locale-gen
> ln -s /usr/share/timeinfo/America/New_York /etc/localtime

> mkinitcpio -p linux

> syslinux-install_update -i -a -m

> cp /etc/netctl/examples/ /etc/netctl
> netctl enable

> systemctl enable sshd.socket

#
# Modify /etc/systemd/system/sockets.target.wants/sshd.socket to change the port SSHD listens on.
#