https://tianqi.name/jekyll-TeXt-theme/docs/en/quick-start
- Create a new remote machine
- ssh your remote machine and add your public key to the authorized keys to
~/.ssh/authorized_keys
- Create a new ssh user
deployer
adduser deployer
usermod -aG sudo deployer
ufw app list
ufw allow OpenSSH
ufw enable
ufw status
- Enable sudo to the newly created user
deployer
by running the following commandsudo visudo
then add this line to the end of the filedeployer ALL=(ALL) NOPASSWD: ALL
- Add your ssh private key to the server (other alternative is to create a deployment key from github). the is should be added to this file
~/.ssh/id_rsa
ansible-playbook ansible/deploy.yaml
For better performance of your server try to remove any unused software/package that is consuming resources.
sudo rm -rf /var/cache/snapd/
sudo apt autoremove --purge snapd gnome-software-plugin-snap
rm -fr ~/snap
After successfully uninstalling snapd, make sure that it doesn't get installed again:
sudo apt-mark hold snapd
Credit goes to this super amazing response: https://askubuntu.com/a/1114686