Notes for setting up a new server Add new user for general use sudo su useradd -m -d /home/<username> <username> passwd <username> visudo <username> ALL=(ALL) NOPASSWD:ALL <edit /etc/passwd so default shell for <username> is /bin/bash> su <username> cd ssh-keygen -t rsa -b 4096 Allow passwordless SSH vim .ssh/authorized_keys <add ~/.ssh/id_rsa.pub from remote comp> chmod 600 .ssh/authorized_keys ssh ... Mount RDS on boot sudo su blkid mkdir -p /data vim /etc/fstab UUID=... /data/disk1 xfs defaults,noatime mount -a Install nginx apt-get install nginx ufw app list ufw allow 'Nginx HTTP' ufw allow 'Nginx HTTPS' ufw allow 'OpenSSH' ufw enable