Linux
Server administration notes: systemd units, swap, WireGuard, nginx, mail queues, and handy shell one-liners.
On this page
How-tos for configuring and maintaining Linux servers, mostly Ubuntu LTS. Commands assume a root shell unless noted.
System Configuration
Swap Configuration: swap files, swappiness, zswap, and mirrored swap on LVM RAID1 with integrity checking.
Mount a Drive with a systemd Mount Unit:
.mountand.automountunits as an alternative tofstab.Switch Commands with update-alternatives and sudo-rs: choose command implementations and switch between sudo-rs and the original sudo.
Intel GPU Kernel Parameters: what the i915 GuC/HuC and IOMMU parameters do and when to set them.
Services and Networking
Set Up a WireGuard VPN Host: a
wg-quickserver with LAN access for remote clients.Clean Up Stale nginx Unix Sockets with a systemd Drop-in: stop nginx failing to start after a crash leaves socket files behind.
Release Stuck Messages in the Postal Mail Server Queue: clear stale locks so queued outbound mail is delivered.
Recipes
Shell One-Liners: in-place text replacement, SSH permission fixes, and reading the kernel build config.
Media Conversion Recipes: ffmpeg and potrace recipes for video, audio, and vectorizing scans.
This section is in the public domain (CC0 1.0), code samples included. Use it however helps you.