Skip to content

Instantly share code, notes, and snippets.

@afonasev
Last active September 19, 2018 19:22
Show Gist options
  • Save afonasev/aba0cd5387c3f94df0b09e3e2d8efe3a to your computer and use it in GitHub Desktop.
Save afonasev/aba0cd5387c3f94df0b09e3e2d8efe3a to your computer and use it in GitHub Desktop.
curl -sSL https://agent.digitalocean.com/install.sh | sh
useradd user
usermod -aG sudo user
# ZSH
sudo apt-get install zsh -y
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
chsh -s $(which zsh)
# ServerAliveInterval 60 for ssh_config
# /etc/ssh/sshd_config
# service sshd restart
ufw allow OpenSSH
ufw enable
sudo curl -fsSL https://get.docker.com | sh
usermod -aG docker user
sudo apt install python-certbot-nginx
sudo certbot --nginx -d example.com -d www.example.com
sudo certbot renew --dry-run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment