1
1
Fork 0
scripts/prep_ubuntu_server.sh

56 lines
1.1 KiB
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
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
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
2012-06-25 17:23:23 +02:00
}
#install and configure zsh
2012-06-26 12:58:00 +02:00
zshinstall()
2012-06-25 17:23:23 +02:00
{
2012-06-26 12:58:00 +02:00
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"
2012-06-26 12:58:00 +02:00
vi ~/.zshrc
read -p "time to change your default shell to /bin/zsh"
sudo vi /etc/passwd
2012-06-26 12:58:00 +02:00
2012-06-25 17:23:23 +02:00
}
#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
}
2012-06-26 12:58:00 +02:00
# **** start of script ****
#pkginstall
zshinstall
2012-06-25 17:23:23 +02:00
#end of file