How to set up a VPS

From Wiki
Revision as of 22:57, 7 January 2015 by Scott (talk | contribs)
Jump to navigation Jump to search
  • Log in as root via ssh
  • (PROBABLY NOT NEEDED:) update hostname in /etc/hostname, run "hostname -F /etc/hostname", add line to /etc/hosts
  • sudo dpkg-reconfigure tzdata
  • create user account, add to sudoers:
useradd --create-home --shell /bin/bash myuser
usermod -aG sudo myuser
  • update ssh to listen on a different port and (carefully) to deny root access
  • install emacs23-nox, nmap, ntp, postfix, mailutils, logwatch, unzip, zip
  • config ntp and postfix as usual
  • re-load /var/www/ from backup