How to set up a VPS: Difference between revisions

From Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
* Log in as root via ssh
* Log in as root via ssh
* (PROBABLY NOT NEEDED:) update hostname in /etc/hostname, run "hostname -F /etc/hostname", add line to /etc/hosts
* (PROBABLY NOT NEEDED:) update hostname in /etc/hostname, run "hostname -F /etc/hostname", add line to /etc/hosts
* sudo dpkg-reconfigure tzdata  
* <code>dpkg-reconfigure tzdata</code>
* create user account, add to sudoers:
* create user account, add to sudoers:
<pre>
<pre>
Line 8: Line 8:
</pre>
</pre>
* update ssh to listen on a different port and (carefully) to deny root access  
* update ssh to listen on a different port and (carefully) to deny root access  
<pre>
* <code>apt-get install emacs24-nox nmap ntp postfix mailutils logwatch unzip zip</code>
apt-get install emacs24-nox nmap ntp postfix mailutils logwatch unzip zip
</pre>
* config ntp and postfix as usual
* config ntp and postfix as usual
* re-load /var/www/ from backup

Revision as of 23:33, 7 January 2015

  • Log in as root via ssh
  • (PROBABLY NOT NEEDED:) update hostname in /etc/hostname, run "hostname -F /etc/hostname", add line to /etc/hosts
  • 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
  • apt-get install emacs24-nox nmap ntp postfix mailutils logwatch unzip zip
  • config ntp and postfix as usual