#!/bin/bash
cd /tmp
ln -sf /bin/bash /bin/sh
> /etc/motd.tail
apt-get install wget
#setup local ubuntu repository
#just in case it's there allready.
rm sources.list
mv /etc/apt/sources.list /etc/apt/sources.list-orig
wget http://www.dth.net/new_machine/sources.list-etch
mv sources.list-etch /etc/apt/sources.list
apt-get update
aptitude -y install lftp screen procinfo vim ssh mtr-tiny 
aptitude -y dist-upgrade
update-alternatives --set editor /usr/bin/vim.basic
echo "hit return to install optional packages like munin,otherwise hit cntrl-C"
read a
apt-get install munin-node 
