Wiki / tutorial:archlinux

 

Getting Arch Linux running

First head to your VPS control panel, you'll see “Reinstall OS” on the main page, click this and then check either Arch Linux 32, or Arch Linux 64. They're marked as broken, but this tutorial will run you through the fix. Please also refer to https://wiki.archlinux.org/index.php/Virtual_Private_Server which may assist with other problems/errors.

Editing pacman.conf

The first thing you want to do after SSHing into your newly installed Arch is:

nano /etc/pacman.conf

This will bring up the nano editor, now depending on your architecture do the following:

x86

Insert this right above where you see [core]

[glibc-vps]
Server = http://dev.archlinux.org/~ibiru/openvz/glibc-vps/i686/
x86_64

Same as above, except with a different URL, insert this right above [core]

[glibc-vps] 
Server = http://dev.archlinux.org/~ibiru/openvz/glibc-vps/x86_64/

Editing pacman.d/mirrorlist

This is because the default mirror config spits out errors, but complete succesfully, and is fairly slow because of the server location.

First:

nano /etc/pacman.d/mirrorlist

Then find (it'll look a little bit different if you're on 32 bit, but don't worry):

# Any
Server = ftp://mirrors.kernel.org/archlinux/$repo/os/x86_64
Server = http://mirrors.kernel.org/archlinux/$repo/os/x86_64

And insert #s in front of these lines so they look like:

# Any
#Server = ftp://mirrors.kernel.org/archlinux/$repo/os/x86_64
#Server = http://mirrors.kernel.org/archlinux/$repo/os/x86_64

Now scroll down to Germany, and uncomment the first “Server = blah” there, this will make you download MUCH faster than before, and the time you spent editing this file is well worth it.

Running pacman

Okay you're almost done now, finally one more thing!

pacman -Syu

This should prompt you that you have to update pacman first, type yes.

pacman-db-upgrade

Now once again.

pacman -Syu

Answer yes to all the prompts, and then wait a few minutes. You've got a working install of Arch Linux, enjoy. Now you can follow the other tutorials on the wiki for getting started.

One last thing...

nano /etc/rc.local

Open up rc.local and add the following lines:

rm -rf /dev/ptmx
mknod /dev/ptmx c 5 2
chmod 666 /dev/ptmx
umount /dev/pts
rm -rf /dev/pts
mkdir /dev/pts
mount /dev/pts

You also need to update fstab to mount /dev/pts:

nano /etc/fstab

Add the following line:

none    /dev/pts    devpts    defaults    0    0

This is an important step! If you don't do this when you restart the server, you won't be able to SSH in!