1
1
Fork 0
scripts/prep_ubuntu_server.sh

40 lines
623 B
Bash
Raw Normal View History

#!/bin/bash
2012-06-26 12:58:00 +02:00
#preperation script for my ubuntu servers
2012-06-25 17:23:23 +02:00
#install various tools/packages
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
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 \
vim zsh ncdu
2012-06-26 12:58:00 +02:00
2012-06-25 17:23:23 +02:00
}
#configure motd
motdconfig()
2012-06-25 17:23:23 +02:00
{
rm /etc/update-motd.d/10*
rm /etc/update-motd.d/50*
echo ""
read -p "now its time to create/customize your /etc/motd.tail
(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 ****
pkginstall
motdconfig
2012-06-25 17:23:23 +02:00
#end of file