I set up a new slice today using the following steps, most of which have I got from these three articles.
I use Ubuntu Gutsy on my servers. This setup gets me to the stage where I can deploy rails apps (which will be the topic of another post). Note that user specific values are preceded by the dollar sign, so for example I would replace $USERNAME with ciaran.
apt-get update
apt-get upgradeupdate-alternatives --set editor /usr/bin/vim.basicadduser $USERNAME$USERNAME ALL=(ALL) ALLscp ~/.ssh/id_dsa.pub $USERNAME@$SERVER_IP:cat id_dsa.pub >>.ssh/authorized_keysPermitRootLogin no
PasswordAuthentication no
X11Forwarding no
UsePAM no
UseDNS no
AllowUsers $USERNAMEsudo /etc/init.d/ssh restartsudo apt-get install rails libopenssl-ruby \
libopenssl-ruby1.8 ri1.8 ruby1.8-dev \
build-essential zip unzipsudo apt-get install mysql-server mysql-client \
libmysqlclient15-dev libmysql-ruby#skip-innodbsudo /etc/init.d/mysql restartsudo ln -s /usr/bin/gem1.8 /usr/bin/gemsudo ln -s /usr/bin/irb1.8 /usr/bin/irbsudo apt-get install git-svnroot=$GMAIL_USERNAME@gmail.com
mailhub=smtp.gmail.com:587
AuthUser=$GMAIL_USERNAME@gmail.com
AuthPass=$GMAIL_PASSWORD
rewriteDomain=gmail.com
UseSTARTTLS=YES
hostname=$HOSTNAME
FromLineOverride=YES