← All free guides
FREE GUIDE · 101 TIPS · 13 CATEGORIES

100+ Ubuntu Server
Tips & Tricks

"Resolute Raccoon". Practical tips, commands, and things worth knowing for running, securing, and administering Ubuntu Server 26.04 LTS, organized by area.

101
Tips
13
Categories
12
Pages
Free
No sign-up

Inside the guide: all 101 tips

1Installation & First Boot7 tips

1.1 Put the new Subiquity installer to smart use

In 26.04 the user account is created earlier in the install flow, which fixes earlier crashes in virtual machines. Let the installer detect and install OEM/HWE drivers automatically when needed — tick the option when offered instead of installing drivers manually afterward.

1.2 Automate installs with autoinstall

For repeat server installs, build an autoinstall.yaml and serve it via a simple HTTP server or a USB stick. This lets you install identical servers with no interaction. Example: sudo cloud-init status --wait to verify the autoinstall process has finished before continuing provisioning.

1.3 Choose the minimal install for production servers

At install time, pick the minimal variant if your cloud provider offers it — fewer preinstalled packages means a smaller attack surface and a faster boot.

  • 1.4 Check architecture requirements before upgrading
  • 1.5 Verify cgroup v2 before upgrading from older Ubuntu
  • 1.6 Be aware that /tmp is now tmpfs
  • 1.7 Check the new location for removable media
2Security14 tips

2.1 Know that TPM-backed disk encryption is Desktop-only for now

Ubuntu 26.04's new TPM-bound full-disk encryption (the flow where the key is sealed to the TPM chip and the disk unlocks automatically at boot with no password) shipped for Desktop, not Server — don't plan around it for a headless install. If you still want disk encryption on a server, standard LUKS plus dropbear-initramfs remains the practical path: it lets you unlock the encrypted root remotely over SSH during boot instead of needing physical or console access on every restart.

2.2 Get used to living with sudo-rs

The default sudo implementation is now sudo-rs, a memory-safe Rust-based rewrite. It shows asterisks while you type the sudo password by default — a visible sign you're running the new version (disable via Defaults !pwfeedback if you prefer the old silent prompt). Test compatibility with any custom sudoers rules after upgrading.

2.3 Confirm TLS 1.0/1.1 is actually disabled

Apache and Nginx reject TLS 1.0/1.1 by default in 26.04. If you have legacy clients relying on those protocols, you'll need to explicitly re-enable them in your server config — but consider whether you actually need to.

  • 2.4 Make use of post-quantum crypto being on by default
  • 2.5 Harden SSH further
  • 2.6 Set up the firewall with ufw
  • 2.7 Install fail2ban to stop brute-force attempts
  • 2.8 Explore AppArmor permission prompts
  • 2.9 Confirm SSSD no longer needs root
  • 2.10 Put OpenLDAP in enforce mode deliberately
  • 2.11 Keep the system patched automatically
  • 2.12 Use Canonical Livepatch — now on Arm64 too
  • 2.13 Protect yourself against legacy crypto
  • 2.14 Review file permissions regularly
3Networking7 tips

3.1 Manage networking declaratively with Netplan

Example: edit /etc/netplan/*.yaml and run sudo netplan apply to apply changes without a reboot. Use sudo netplan try to test a config with automatic rollback if something goes wrong.

3.2 Switch to chrony for time sync

Chrony replaces systemd-timesyncd as the default in 26.04 for more accurate time synchronization. Example: chronyc tracking (current sync status), chronyc sources -v (list time servers).

3.3 Diagnose network problems fast

Example:

  • ip addr show — show interfaces and IP addresses
  • ip route get 8.8.8.8 — see which route traffic to an address takes
  • ss -tulpn — show listening ports and processes
  • 3.4 Set static DNS with systemd-resolved
  • 3.5 Test connectivity with modern tools
  • 3.6 Set up bonding/teaming for redundancy
  • 3.7 Monitor bandwidth usage live
4Package Management & Updates10 tips

4.1 Get used to the APT 3 series

26.04 introduces APT 3, where apt-key is fully removed. Manage repository keys via .gpg files in /etc/apt/keyrings/ instead of the old keyring system.

4.2 Keep the system clear of old packages

Example:

  • sudo apt autoremove — remove packages no longer needed
  • sudo apt autoclean — clear old package files from the cache
  • sudo apt full-upgrade — upgrade with smart dependency handling

4.3 Use snap deliberately on servers

Snap gives you sandboxed, self-updating packages — good for tools that need to stay current, but can mean higher memory usage. Example: snap list (see installed snaps), sudo snap refresh (update all).

  • 4.4 Lock a package's version when needed
  • 4.5 Check what an upgrade will actually do
  • 4.6 Find out where a command came from
  • 4.7 Plan for the new split linux-firmware package
  • 4.8 Search package descriptions effectively
  • 4.9 View detailed info about a package before installing
  • 4.10 Upgrade between LTS releases safely
5systemd, Services & Processes8 tips

5.1 Analyze boot time

Example: systemd-analyze blame (show which services take longest at boot), systemd-analyze critical-chain (see the critical dependency chain).

5.2 Manage services efficiently

Example:

  • systemctl status service — status and recent log lines
  • systemctl enable --now service — enable and start in one step
  • systemctl mask service — prevent a service from being started by accident

5.3 Read logs smartly with journalctl

Example:

  • journalctl -u service -f — follow a service's logs live
  • journalctl --since "1 hour ago" — logs from the last hour
  • journalctl -p err — only error messages
  • 5.4 Limit resources per service with cgroup v2
  • 5.5 Create your own systemd timers instead of cron
  • 5.6 Check which services are listening on the network
  • 5.7 Troubleshoot a service that won't start
  • 5.8 Clean up old kernels automatically
6Storage & File Systems8 tips

6.1 Take advantage of improved file cache handling

26.04 has improved support for F2FS, exFAT, and EXT4 with better file cache handling — good for servers with heavy I/O workloads like databases or log aggregation.

6.2 Monitor disk usage proactively

Example: ncdu / — an interactive, fast overview of what's using space (install with sudo apt install ncdu).

6.3 Set up ZFS for advanced storage

Example: sudo apt install zfsutils-linux and sudo zpool create tank /dev/sdb — ZFS gives you built-in snapshotting, compression, and data integrity.

  • 6.4 Take instant snapshots with LVM
  • 6.5 Check SMART status on physical disks
  • 6.6 Automate disk cleanup with tmpfiles.d
  • 6.7 Extend an LVM volume with zero downtime
  • 6.8 Check disk space per filesystem quickly
7Containers & Virtualization8 tips

7.1 Pick the right container track for your workload

26.04 introduces two tracks: the Application Track for teams who want regular feature updates, and the Stable Track for production that needs predictable component versions. Choose deliberately based on how much change your environment can tolerate.

7.2 Use Incus/LXD for lightweight containers

Example: sudo snap install lxd && lxd init — system containers with almost no overhead, a good alternative to full VMs for isolating services.

7.3 Run Docker on Ubuntu Server 26.04

Example: curl -fsSL https://get.docker.com | sh followed by sudo usermod -aG docker $USER to run without sudo.

  • 7.4 Use ubuntu-virt-hwe for a newer virtualization stack
  • 7.5 Set up KVM virtualization
  • 7.6 Enable confidential computing when needed
  • 7.7 Monitor container resources
  • 7.8 Build your own images with Packer
8Cloud & Provisioning7 tips

8.1 Automate server configuration with cloud-init

Example: write a user-data file with packages, users, and commands to run on first boot — the same method works on AWS, Azure, GCP, Oracle Cloud, and IBM Cloud.

8.2 Check cloud-init status when troubleshooting

Example: cloud-init status --long and sudo cat /var/log/cloud-init-output.log — see exactly what happened during provisioning.

8.3 Use official cloud-optimized images

26.04 has ready-optimized images for AWS, Azure, Google Cloud, IBM Cloud, and Oracle Cloud — always start from these instead of building your own images from scratch when possible.

  • 8.4 Be aware of the AMD64v3 requirement in the cloud
  • 8.5 Resize cloud instances safely
  • 8.6 Manage multiple servers centrally with Landscape
  • 8.7 Tag and search cloud resources consistently
9Performance & Monitoring7 tips

9.1 Track system load in real time

Example: htop (install with sudo apt install htop) — interactive process monitoring, easier to read than top.

9.2 Analyze disk I/O per process

Example: sudo apt install iotop && sudo iotop — see exactly which processes are causing high disk load.

9.3 Collect historical performance data with sysstat

Example: sudo apt install sysstat and enable collection — sar -u 1 5 shows CPU load over time, useful for capacity planning.

  • 9.4 Use GPU compute straight from official sources
  • 9.5 Measure network latency against multiple targets at once
  • 9.6 Set up free monitoring with Netdata
  • 9.7 Optimize for newer CPUs with x86-64-v3 package variants
10Backup & Recovery6 tips

10.1 Run incremental backups with restic

Example: restic backup /etc /home /var/www against a local or cloud-based repository — fast, encrypted, and deduplicated.

10.2 Automate backup schedules with systemd timers

Combine restic or rsync with a systemd timer instead of cron for better logging and error handling of backup jobs.

10.3 Take consistent database backups

Example: pg_dump -Fc mydatabase > backup.dump for PostgreSQL 18 — use -Fc for a compressed format that supports selective restore.

  • 10.4 Test your backups regularly
  • 10.5 Sync files efficiently between servers
  • 10.6 Use ZFS snapshots for fast recovery
11Remote Access & Administration6 tips

11.1 Use tmux or screen for long-running sessions

Example: tmux new -s my-job — let processes keep running even if the SSH connection drops. Reconnect with tmux attach -t my-job.

11.2 Restrict root login over SSH

Set PermitRootLogin no in /etc/ssh/sshd_config and use sudo for administrative tasks instead — significantly reduces the attack surface.

11.3 Use passphrase-protected SSH keys with ssh-agent

Example: ssh-add ~/.ssh/id_ed25519 — add your key to the agent once per session instead of typing the passphrase every time.

  • 11.4 Set up MFA for sensitive servers
  • 11.5 Set up remote desktop securely when needed
  • 11.6 Automate configuration with Ansible
12Databases & Web Services6 tips

12.1 Run PostgreSQL 18 with modern features

26.04 ships PostgreSQL 18 by default. Example: sudo apt install postgresql postgresql-contrib and sudo -u postgres psql to connect.

12.2 Explore DocumentDB for document-based workloads

The new DocumentDB package provides MongoDB-like document storage on top of PostgreSQL — worth exploring if you need flexible, schema-less storage without introducing an entirely new database system.

12.3 Set up a LEMP stack

Example: sudo apt install nginx mysql-server php-fpm — a common foundation for web applications on Ubuntu Server.

  • 12.4 Verify TLS configuration after installing
  • 12.5 Use Certbot for free TLS certificates
  • 12.6 Monitor database performance
13Ubuntu Pro, WSL & More7 tips

13.1 Register the server for Ubuntu Pro

Example: sudo pro attach <TOKEN> — gives access to Expanded Security Maintenance (ESM), Livepatch, and compliance tooling (CIS, FIPS), free for up to 5 personal machines.

13.2 Check which Pro services are active

Example: pro status --all — a clear overview of which security services are enabled or available.

13.3 Run Ubuntu Server tools in WSL for development

26.04 has improved WSL integration with cloud-init and Ubuntu Pro, making it easier to mirror a production server's configuration locally during development on Windows.

  • 13.4 Keep an eye on RISC-V and Arm support
  • 13.5 Update Raspberry Pi firmware before installing
  • 13.6 Check the official release notes when in doubt
  • 13.7 Stick to LTS-to-LTS upgrades in production
The full guide, as a PDFEvery tip above is written up in full. Free, no email needed.

Related guides: 100+ Docker Tips & Tricks, 100+ Stealth & Safety Tips for Linux Users. From the books: Ubuntu Server, Distilled for Ubuntu Server in depth. All free guides are in the library.