#!/bin/bash #preperation script for my ubuntu servers #install various tools 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 } #install and configure zsh zshinstall() { 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 read -p "now modify your ~/.zshrc to your needs" vi ~/.zshrc read -p "time to change your default shell to /bin/zsh" sudo vi /etc/passwd } #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 } # **** start of script **** #pkginstall zshinstall #end of file