Apply for Free VPS

The first thirty minutes on a new Ubuntu server

27 Nov 2026 ubuntu setup

A calm order of work that leaves a new server updated, locked down and documented.

A new server is on the public internet from its first minute. Spend the first half hour well.

Minutes 0 to 5: arrive and update

Sign in with your key, then:

sudo apt update && sudo apt full-upgrade -y
sudo reboot

Minutes 5 to 10: people

Create a named account for each person who needs access and add their key. Shared logins hide who did what.

Minutes 10 to 15: SSH

Turn off password sign-in and root sign-in, check the configuration with sudo sshd -t, and prove a new session works before closing the old one. The hardening article has the file.

Minutes 15 to 20: firewall and updates

sudo ufw allow 22/tcp
sudo ufw enable
sudo apt install -y unattended-upgrades
sudo dpkg-reconfigure -plow unattended-upgrades

Minutes 20 to 25: see what is running

sudo ss -tulpn
systemctl --failed
df -h
free -h

Anything listening that you cannot explain deserves a question.

Minutes 25 to 30: write it down

Record the server's purpose, who has access, installed services and where backups will go. Put the commands you ran in a script so the next server takes five minutes.

Then

Set up backups before you put real data on it, not after.

Need a server to try this on?See VPS plans

More articles