Last active
September 19, 2018 19:22
-
-
Save afonasev/aba0cd5387c3f94df0b09e3e2d8efe3a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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