1
1
scripts/prep_ubuntu_server.sh

38 lines
614 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*
read -p "\nnow its time to create/customize your /etc/motd.tail\n(http://www.network-science.de/ascii/)"
vi /etc/motd.tail
}
# **** start of script ****
pkginstall
motdconfig
#end of file