- remove ssh to server from
~/.ssh/know_host
file - add sudo user
adduser username
- give user sudo power
usermod -aG sudo username
- switch to non root user
su username
- update apt-get
sudo apt-get update
- install firewall
sudo apt-get ufw
- open SSH port in firewall
sudo ufw allow OpenSSH
- enable firewall
sudo ufw enable
- update locale
sudo dpkg-reconfigure locales
- Remove Apache
- Remove apache2 packages and dependencies
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
- Also need to purge apt-get
sudo apt-get autoremove --purge
- Search to see what's left
whereis apache2
- Remove the files that show up
sudo rm -Rf FILES
- Remove apache2 packages and dependencies
Created
May 2, 2020 17:22
-
-
Save shawnthompson/09cb88581c6d74a17c9b7203be81dc43 to your computer and use it in GitHub Desktop.
Steps to setting up Ubuntu on VPS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment