initial commit
This commit is contained in:
commit
d6558cf344
4
Readme.md
Normal file
4
Readme.md
Normal file
@ -0,0 +1,4 @@
|
||||
Collection of bash scripts to setup debian systems.
|
||||
Intended for single shot containers where full blown ansible setups are to much.
|
||||
|
||||
curl https://code.camijo.de/gmueller/server-scripts/raw/master/jessie-server-common.sh | bash
|
30
jessie-server-common.sh
Normal file
30
jessie-server-common.sh
Normal file
@ -0,0 +1,30 @@
|
||||
#!/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
|
||||
EOF
|
||||
apt update
|
||||
|
||||
echo "Install important system tools."
|
||||
apt install -y htop ne iotop curl wget zsh figlet iptraf
|
||||
|
||||
echo "Use zsh!"
|
||||
wget -O /root/.zshrc https://github.com/slashbeast/things/raw/master/configs/DOTzshrc
|
||||
chsh -s /bin/zsh
|
||||
|
||||
echo "Nice motd."
|
||||
figlet `hostname -f` > /etc/motd
|
||||
|
||||
echo "Install system and security utils."
|
||||
apt install -y apticron logcheck ssmtp
|
||||
}
|
||||
|
||||
|
||||
main
|
Loading…
Reference in New Issue
Block a user