Skip to content

Instantly share code, notes, and snippets.

@BrandonDyer64
Last active August 12, 2021 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrandonDyer64/8f30a5eebd362f25234551fe21738a43 to your computer and use it in GitHub Desktop.
Save BrandonDyer64/8f30a5eebd362f25234551fe21738a43 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "apt"
apt update
apt upgrade -y
apt install snap ufw byobu fail2ban git zsh unattended-upgrades curl -y
echo "ufw stuff"
yes | ufw enable
ufw allow 63682
ufw allow from $(echo $SSH_CLIENT | awk '{ print $1}') to any port 19999
echo "changing default ssh port to 63682"
sed -i 's/#Port 22/Port 63682/' /etc/ssh/sshd_config
service ssh restart
service ufw restart
echo "netdata"
bash <(curl -Ss https://my-netdata.io/kickstart.sh) --dont-wait
echo "enable byobu by default"
byobu-enable
echo "oh-my-zsh"
chsh -s $(which zsh)
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