Create a sudo user
Add a named admin account, give it sudo through the right group or a sudoers drop-in, copy your SSH key and test it before you leave root behind.
Add a swap file
Create a swap file, enable it at boot, tune swappiness and learn when extra swap helps a small VPS and when it only hides a memory shortage.
Change the hostname
Rename the server with hostnamectl, keep /etc/hosts in step, pick a fully qualified name and make sure the change survives reboots.
Time zone and time sync
Choose UTC or a local zone with timedatectl, confirm NTP is active through systemd-timesyncd or chrony and check the clock offset.
File and directory permissions
Read rwx and octal modes, change them with chmod and chown, set a sane umask, use setgid folders and ACLs for teams, and skip chmod 777.
Choose a Linux distribution
Compare the 12 operating system images on the Deploy page by support life, package freshness and the software you plan to run.
Upgrade Ubuntu to the next LTS
Back up first, bring the current release fully up to date, then run do-release-upgrade over SSH with a fallback port open and verify the result.
Upgrade Debian to a new major release
Take Debian 12 to Debian 13 safely: back up, clean the current system, change the release name in the APT sources and run the upgrade in two passes.
Rocky or AlmaLinux to a new major version
Plan the jump from version 9 to 10: check CPU level and inhibitors, try ELevate with Leapp on a spare server first, or migrate to a fresh one.
Automatic security updates
Let unattended-upgrades or dnf-automatic install security fixes every day, decide when the server may reboot and restart stale services with needrestart.
Run an app as a systemd service
Write a unit file that runs your app as its own user, restarts it on failure, starts at boot, locks it down with sandbox options and logs to the journal.
Schedule jobs with cron and systemd timers
Run backups, cleanups and scripts on a schedule with a crontab line or a systemd timer, with logging, locking and a quick way to test the timing.
Environment variables on Linux
Set variables for one shell, one user, every login or a single systemd service, and keep API keys and passwords out of world-readable places.
Check disk space and find what fills it
See free space with df, track down large folders with du and ncdu, shrink the journal, clear package caches and spot deleted files still held open.
Inspect processes and memory
Read ps, top and htop output, find who holds a file or port with lsof, understand free memory and see why the OOM killer stopped a process.
Read the hardware and system report
Check vCPU count, CPU flags, RAM, disks and the virtualisation type with lscpu, lsblk and inxi, and learn which dmidecode fields mean little inside a VM.
Reboot and shut down safely
Reboot from inside the OS with systemctl or shutdown, schedule a reboot with a warning, and know when to use the console Restart or Stop action instead.
Customise the login message (MOTD)
Trim the Ubuntu update-motd.d scripts, edit the static Debian and Rocky message, add a live status script and set a pre-login SSH banner.
Remote desktop with Xfce and xrdp
Add a light Xfce desktop and the xrdp server, keep port 3389 closed and reach the desktop through an SSH tunnel from any RDP client.
SELinux on Rocky Linux and AlmaLinux
Read SELinux modes and labels, fix file contexts and ports with semanage, flip booleans and explain denials with audit2why while staying enforcing.
Keep sessions alive with tmux
Start named tmux sessions, detach and reattach after a dropped SSH link, split windows into panes and set a small config that makes it pleasant.
SFTP-only users in a chroot
Give someone file access without a shell: a group, a root owned chroot folder, a Match block in sshd_config and a writable subfolder for uploads.
apt and dnf package management
Search, install, upgrade and remove software with apt or dnf, pin versions, add repositories safely, read the history and clean the cache.
First-hour checklist for a new server
A short, ordered list of what to do right after deploying: updates, a sudo user, keys, firewall, time, swap, backups and monitoring, with links to each guide.
Upgrade FreeBSD to a new release
Patch with freebsd-update, move to a newer minor or major release, rebuild packages with pkg and keep a ZFS boot environment as the way back.
Other topics
- Your server and account
- Security
- Networking and diagnostics
- Web servers and proxies
- PHP and web stacks
- Node.js
- Python
- Go, Ruby, Java and other runtimes
- Databases
- Containers and PaaS
- Websites, CMS and shops
- Self-hosted apps
- VPN and private DNS
- Monitoring and logs
- Email servers
- Game and voice servers
- Control panels
- File transfer and archives
- Linux command line
- Bash scripting
- Git on a server
- Developer tools and CI
- Media and streaming
- Queues and messaging