server-scripts/jessie-server-common.sh

31 lines
835 B
Bash
Raw Normal View History

2016-03-15 21:51:50 +01:00
#!/bin/bash
set -e
function main {
echo "Setup best practice default repositories, see http://httpredir.debian.org/"
tee /etc/apt/sources.list <<EOF
deb http://httpredir.debian.org/debian jessie main contrib
deb http://httpredir.debian.org/debian jessie-updates main contrib
deb http://httpredir.debian.org/debian jessie-backports main contrib
deb http://security.debian.org/ jessie/updates main
2016-03-15 21:53:21 +01:00
EOF
2016-03-15 21:51:50 +01:00
apt update
echo "Install important system tools."
2016-03-15 22:03:21 +01:00
apt install -y htop ne iotop curl wget zsh figlet iptraf
2016-03-15 21:51:50 +01:00
echo "Use zsh!"
2016-03-15 22:03:21 +01:00
wget -O /root/.zshrc http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
2016-03-15 21:51:50 +01:00
chsh -s /bin/zsh
echo "Nice motd."
figlet `hostname -f` > /etc/motd
echo "Install system and security utils."
2016-03-15 22:46:49 +01:00
apt install -y systemd-cron apticron ssmtp logwatch
2016-03-15 21:51:50 +01:00
}
main