40 lines
623 B
Bash
Executable File
40 lines
623 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#preperation script for my ubuntu servers
|
|
|
|
|
|
|
|
#install various tools/packages
|
|
pkginstall()
|
|
{
|
|
|
|
apt-get update
|
|
apt-get dist-upgrade -y
|
|
apt-get install -y htop nload nmap tshark git-core \
|
|
curl wget dnsutils fortunes-ubuntu-server \
|
|
vim zsh ncdu
|
|
|
|
}
|
|
|
|
|
|
#configure motd
|
|
motdconfig()
|
|
{
|
|
|
|
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/)"
|
|
vi /etc/motd.tail
|
|
|
|
}
|
|
|
|
# **** start of script ****
|
|
pkginstall
|
|
motdconfig
|
|
|
|
|
|
#end of file
|