ArchLinux Complete VPS Setup

Author: Jeffrey Gelens
Website:http://www.gelens.org
Version: 1.0
Date: 09/03/2008
Copyright: Copyright (c) 2008 - Jeffrey Gelens - Licensed under a Creative Commons BY-NC-SA License [1]

1   Introduction

This tutorial describes how to install several services on a Arch Linux machine or VPS. Basic linux knowledge is required as I'm not describing every step in detail, you'll have to secure the machine by yourself.

2   Base System

The base image is Arch Linux 2007.08. After booting it's better to disable root-logins in your SSH-server and create a new user as follows:

adduser <username>
usermod -a -G wheel,users,nobody,mail <username>

First upgrade the package system pacman to the latest version. Also create a new mirrorlist ordered by speed:

pacman -Syu
pacman -S python
rankmirrors -v /etc/pacman.d/mirrorlist | tee /etc/pacman.d/mirrorlist.new
mv /etc/mirrorlist.new /etc/mirrorlist

Install usefull and essential packages and all development dependencies:

pacman -Syu
pacman -S mc vim curl netkit-telnet ctags zsh subversion links sudo setuptools rubygems libxslt
pacman -S base-devel abs
easy_install -U setuptools
easy_install mercurial pygments lxml beautifulsoup pyyaml ipython
cd /usr/src && curl -O http://aur.archlinux.org/packages/yaourt/yaourt.tar.gz
tar xzvf yaourt.tar.gz && cd yaourt
makepkg
# Install webserver
pacman -S apache php php-suhosin nginx
pacman -S postgresql phppgadmin
# Enable /etc/php/php.ini pgsql mcrypt gd
yaourt -S mod_rpaf mod_wsgi

That's it

[1]Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License