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
|
|
|
|
2012-06-26 23:11:36 +02:00
|
|
|
#install various tools/packages
|
2012-06-26 12:58:00 +02:00
|
|
|
pkginstall()
|
2012-06-25 17:23:23 +02:00
|
|
|
{
|
|
|
|
|
2012-06-26 23:11:36 +02:00
|
|
|
apt-get update
|
|
|
|
apt-get dist-upgrade -y
|
2012-06-25 17:23:23 +02:00
|
|
|
apt-get install -y htop nload nmap tshark git-core \
|
2012-06-26 12:58:00 +02:00
|
|
|
curl wget dnsutils fortunes-ubuntu-server \
|
2012-06-26 23:11:36 +02:00
|
|
|
vim zsh ncdu
|
2012-06-26 12:58:00 +02:00
|
|
|
|
2012-06-25 17:23:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#configure motd
|
2012-06-26 23:11:36 +02:00
|
|
|
motdconfig()
|
2012-06-25 17:23:23 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
rm /etc/update-motd.d/10*
|
|
|
|
rm /etc/update-motd.d/50*
|
|
|
|
|
2012-06-26 23:11:36 +02:00
|
|
|
read -p "\nnow its time to create/customize your /etc/motd.tail\n(http://www.network-science.de/ascii/)"
|
2012-06-25 17:23:23 +02:00
|
|
|
vi /etc/motd.tail
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-06-26 12:58:00 +02:00
|
|
|
# **** start of script ****
|
2012-06-26 23:11:36 +02:00
|
|
|
pkginstall
|
|
|
|
motdconfig
|
2012-06-25 17:23:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
#end of file
|