2012-06-15 15:12:42 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2012-06-26 12:58:00 +02:00
|
|
|
#preperation script for my ubuntu servers
|
2012-06-15 15:12:42 +02:00
|
|
|
|
|
|
|
|
2012-06-25 17:23:23 +02:00
|
|
|
|
|
|
|
#install various tools
|
2012-06-26 12:58:00 +02:00
|
|
|
pkginstall()
|
2012-06-25 17:23:23 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
apt-get update && apt-get dist-upgrade -y
|
|
|
|
apt-get install -y htop nload nmap tshark git-core \
|
2012-06-26 12:58:00 +02:00
|
|
|
curl wget dnsutils fortunes-ubuntu-server \
|
|
|
|
vim zsh
|
2012-06-25 17:23:23 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#install and configure zsh
|
2012-06-26 12:58:00 +02:00
|
|
|
zshinstall()
|
2012-06-25 17:23:23 +02:00
|
|
|
{
|
|
|
|
|
2012-06-26 12:58:00 +02:00
|
|
|
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
|
|
|
|
rm -rf ~/.oh-my-zsh/custom/
|
|
|
|
cd ~/.oh-my-zsh/
|
|
|
|
git clone git://git.socialnerds.org/zshconfig.git custom
|
|
|
|
vi ~/.zshrc
|
|
|
|
|
2012-06-25 17:23:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-06-26 12:58:00 +02:00
|
|
|
# **** start of script ****
|
|
|
|
#pkginstall
|
|
|
|
zshinstall
|
2012-06-25 17:23:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
#end of file
|