adduser $USERNAME
sudo update-alternatives --config editor
Select /usr/bin/vim.basic
visudo
...
# User privilege specification
$USER ALL=(ALL) NOPASSWD:ALL
sudo vim /etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
Restart sshd with sudo systemctl restart sshd
mkdir .ssh
wget https://github.com/$USER.keys
mv $USER.keys authorized_keys
sudo vim /etc/hostname
...
hostname -F /etc/hostname
Log out and log back in to take effect.
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
sudo apt install docker-compose