JAMES
LOPER

Ubuntu Server Initial Setup

Here is the song & dance I do every time I start a new Ubuntu server. Nice cheat sheet for me to refer back to.

Create non-root user

adduser ubuntu
usermod -aG sudo ubuntu
rsync --archive --chown=ubuntu:ubuntu ~/.ssh /home/ubuntu

Install Tailscale

curl -fsSL https://tailscale.com/install.sh | sh

Quiet the login message

touch .hushlogin

Install Node 14 & PM2

curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install -y nodejs jq
sudo npm install -g pm2
pm2 startup