2012-06-15 15:12:42 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# preperation script for my ubuntu servers
|
|
|
|
|
|
|
|
|
2012-06-25 17:23:23 +02:00
|
|
|
#change your default shell to /bin/zsh
|
|
|
|
#vi /etc/passwd
|
2012-06-15 15:12:42 +02:00
|
|
|
|
2012-06-25 17:23:23 +02:00
|
|
|
usage()
|
|
|
|
{
|
2012-06-15 15:12:42 +02:00
|
|
|
|
2012-06-25 17:23:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#install various tools
|
|
|
|
installation()
|
|
|
|
{
|
|
|
|
|
|
|
|
apt-get update && apt-get dist-upgrade -y
|
|
|
|
apt-get install -y htop nload nmap tshark git-core \
|
|
|
|
curl wget dnsutils zsh fortunes-ubuntu-server \
|
|
|
|
vim
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#install and configure zsh
|
|
|
|
instzsh()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#configure motd
|
|
|
|
motd()
|
|
|
|
{
|
|
|
|
|
|
|
|
rm /etc/update-motd.d/10*
|
|
|
|
rm /etc/update-motd.d/50*
|
|
|
|
|
|
|
|
#insert a fancy motd.tail from http://www.network-science.de/ascii/
|
|
|
|
#echo '
|
|
|
|
#go to http://www.network-science.de/ascii/ and generate
|
|
|
|
#a nice ascii servername for /etc/motd.tail'
|
|
|
|
vi /etc/motd.tail
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#end of file
|