Every command, run on a real server first.
Ubuntu guides with no preamble and no filler. Each one is executed top to bottom on a clean server before it goes up, then re-run on a schedule so you find out when it breaks rather than the hard way.
- 8 guides
- 24 server builds
- 168 commands executed
- last run today
How to Add a User on Ubuntu and Give Them sudo
Create a user on Ubuntu, give them sudo rights, and set them up to log in with their own SSH key. Tested on 26.04, 24.04 and 22.04.
How to Change the Hostname on Ubuntu
Rename an Ubuntu machine with hostnamectl, keep sudo quiet by fixing /etc/hosts, and stop cloud-init putting the old name back on the next reboot. Tested on 26.04, 24.04 and 22.04.
How to Check Your Ubuntu Version
Find which Ubuntu release you're on, get the codename for a repository line, and tell an LTS from an interim release. Tested on 26.04, 24.04 and 22.04.
How to Create an SSH Key
Generate an ed25519 SSH key pair and find the public half to send on. Tested on Ubuntu 26.04, 24.04 and 22.04, with the macOS and Windows steps noted.
How to Enable SSH on Ubuntu
Install and check the OpenSSH server on Ubuntu, add the firewall rule before you need it, and prove port 22 answers from another machine. Tested on 26.04, 24.04 and 22.04.
How to Install Apache2 on Ubuntu
Get Apache serving your own domain over HTTP, with the firewall opened and a virtual host that survives a second site. Tested on 26.04, 24.04 and 22.04.
How to List Users on Ubuntu
Show every account on an Ubuntu system, tell the people apart from the service accounts, and see who has sudo. Tested on 26.04, 24.04 and 22.04.
How to Unzip a File on Ubuntu
Install unzip, extract an archive where you actually want it, look inside before you commit, and handle the overwrite prompt. Tested on 26.04, 24.04 and 22.04.