How to set up a VPS: Difference between revisions
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" | * (PROBABLY NOT NEEDED:) update hostname in /etc/hostname, run "hostname -F /etc/hostname" | ||
* add line to <code>/etc/hosts</code> | |||
* <code>dpkg-reconfigure tzdata</code> | * <code>dpkg-reconfigure tzdata</code> | ||
* create user account, add to sudoers: | * create user account, add to sudoers: |
Revision as of 22:54, 13 February 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
apt-get install emacs24-nox nmap ntp postfix mailutils logwatch unzip zip
- update ssh to listen on a different port and (carefully) to deny root access
- config postfix as usual, but set
inet_protocols = ipv4
- set up backups
- apt-get install nginx-light mysql-server supervisor
- install fig: http://www.fig.sh/install.html
- create mysql databases and app accounts