Configuring Ubuntu server


Upgrade the system

apt update
apt upgrade

Show the current timezone ~~~timedatectl~~~

Change it to UTC

timedatectl set-timezone UTC

Change root password


Delete user ubuntu created by who knows

deluser --remove-home ubuntu

Add a new regular user

adduser yournickname

Add it to the sudo group.

usermod -aG sudo yournickname

Switch to that user

su yournickname

Install your favourite text editor

sudo apt install emacs-nox

Install htop

sudo apt install htop

Create a ssh key (with a passphrase) for pushing stuff to github

ssh-keygen -t rsa -b 4096 -C "user@host"

Add the public key to the SSH keys in github/bitbucket account settings.