Skip to content

Instantly share code, notes, and snippets.

@shawnthompson
Created May 2, 2020 17:22
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 shawnthompson/09cb88581c6d74a17c9b7203be81dc43 to your computer and use it in GitHub Desktop.
Save shawnthompson/09cb88581c6d74a17c9b7203be81dc43 to your computer and use it in GitHub Desktop.
Steps to setting up Ubuntu on VPS

Steps to setting up Ubuntu on VPS

  1. remove ssh to server from ~/.ssh/know_host file
  2. add sudo user adduser username
  3. give user sudo power usermod -aG sudo username
  4. switch to non root user su username
  5. update apt-get sudo apt-get update
  6. install firewall sudo apt-get ufw
  7. open SSH port in firewall sudo ufw allow OpenSSH
  8. enable firewall sudo ufw enable
  9. update locale sudo dpkg-reconfigure locales
  10. Remove Apache
    1. Remove apache2 packages and dependencies sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
    2. Also need to purge apt-get sudo apt-get autoremove --purge
    3. Search to see what's left whereis apache2
    4. Remove the files that show up sudo rm -Rf FILES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment