Provisionerificator

From Wiki
Revision as of 20:40, 22 November 2014 by Microchip08 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
#!/bin/bash
apt-get update
apt-get upgrade
apt-get install fail2ban vim-nox molly-guard sl need-restart mtr-tiny sudo openssh-server
adduser $1
usermod -aG sudo $1
vim /etc/locale.gen +127 # need to uncomment en_GB.UTF-8; press x to remove chars
locale-gen
vim /etc/fail2ban/jail.conf +22 # to whitelist sensible IPs
service fail2ban restart