Skip to content

Instantly share code, notes, and snippets.

@samjaninf
Created September 19, 2016 16:07
Show Gist options
  • Save samjaninf/b4e87c4e6e35543a7540f6c27bd7e644 to your computer and use it in GitHub Desktop.
Save samjaninf/b4e87c4e6e35543a7540f6c27bd7e644 to your computer and use it in GitHub Desktop.
#!/bin/bash
yum update -y && yum install -y wget curl screen vim nano epel-release git
yum update -y && yum install -y fail2ban
wget -O /root/.vimrc https://gist.githubusercontent.com/samjaninf/96cd28fae4d4576931c901f731e9e331/raw/c335f1f5a0d08438fad01f9098315d85d90e7f6e/vimrc
wget -O /root/.screenrc https://gist.githubusercontent.com/samjaninf/40e22f11bc804e3151e76195c38bda95/raw/77a323debd724ade9a8032219a65da25ab014854/screenrc
yum install -y zsh
yum upgrade -y
systemctl enable iptables && systemctl start iptables
wget -O /etc/fail2ban/jail.local https://gist.githubusercontent.com/samjaninf/9d07d0d7cf3388a8f5a29ea56a366357/raw/dbe8018ebaf663eb138aea79a42256a59339cbb2/fail2ban
systemctl enable fail2ban && systemctl restart fail2ban
yum clean all -y
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment