# ------------------------------------------------------------------------
sudo passwd root
# ------------------------------------------------------------------------
su
# ------------------------------------------------------------------------
apt-get update
apt-get upgrade
# ------------------------------------------------------------------------
echo "

# Gibney Enterprises

alias ls='ls -all --color -h'
PS1=\"\\W > \"
alias df=\"df -h\"

alias ge-nautilus=\"nautilus --browser \\\`pwd\\\` &\"
alias ge-bc='bc <(echo scale=5)'
alias duwim='du --apparent-size -scm * | sort -n'
" >> /root/.bashrc
# ------------------------------------------------------------------------
echo "
Tab: menu-complete
set completion-ignore-case on
" > /root/.inputrc
# ------------------------------------------------------------------------
apt-get install smbfs
# ------------------------------------------------------------------------
ifconfig eth0 mtu 512
# ------------------------------------------------------------------------
# Do this to get rid of DHCP and other crap.
# You will need to change the IP "10.0.0.2" to something useful
cp /etc/network/interfaces /etc/network/interfaces_ori
echo "
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.0.0.2
netmask 255.255.255.0
" > /etc/network/interfaces
# ------------------------------------------------------------------------
# Only on machines with X-Server:
# Turn off the Beep
echo "
xset b off
" >> /root/.bashrc
# ------------------------------------------------------------------------

rm /etc/cron.daily/slocate
rm /var/lib/slocate/slocate.db

# ------------------------------------------------------------------------


# Server Stuff ---------------------------------------------------------------------------------------------------

apt-get -y install php5
apt-get -y install php5-gd
rm -v /etc/rc*.d/*apache*
apt-get -y install mysql-server
rm -v /etc/rc*.d/*mysql*
/etc/init.d/mysql stop

# ------------------------------------------------------------------------
# Manual steps
#
# * etc/fstab
# Remove all non-removable drives that are mounted into /media
# or mount them to another folder
# otherwise they will clutter up your desktop