OneLinersCommand workbench
Guides
Operational guides

Complete procedures with a way back.

Searchable, versioned procedures with prerequisites, verification, concrete output, and rollback.

Guides
169
Favorites
0
169 launch guides · 1781 reviewed steps
17 of 169 guides

Networking & DNS · Security

Deploy an OpenVPN server on Ubuntu 24.04 LTS

Build a routed full-tunnel OpenVPN service with Easy-RSA, an owned nftables policy, a tested encrypted client profile, and rehearsed certificate revocation.
Save to collectionCreate a collection in the sidebar first.
caution75 minadvanced10 stepsUbuntu Server

Networking & DNS · Security

Deploy a WireGuard server on Ubuntu 24.04 LTS

Create a minimal routed WireGuard VPN with protected keys, explicit peers, constrained forwarding, and peer removal.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate9 stepsUbuntu Server

Security · System Administration

Harden SSH and require key-based login

Introduce per-user keys, validate a drop-in, test a second session, and only then disable password and root login.
Save to collectionCreate a collection in the sidebar first.
caution35 minintermediate8 stepsUbuntu Server

Security · Networking & DNS

Build a baseline nftables firewall

Create a default-deny host firewall with loopback, established traffic, controlled SSH, service ports, logging, validation, and rollback.
Save to collectionCreate a collection in the sidebar first.
danger40 minadvanced8 stepsUbuntu Server

Web & Proxy · Security

Configure an Nginx reverse proxy with TLS renewal

Proxy an HTTP application through Nginx, preserve client metadata, obtain a certificate, and test renewal.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate8 stepsUbuntu Server

Containers & Kubernetes · Security

Install Docker Engine and Compose with safer defaults

Install from Docker's signed repository, limit daemon exposure, bound logs, and document privilege boundaries.
Save to collectionCreate a collection in the sidebar first.
caution35 minintermediate9 stepsUbuntu Server

Databases & Data

Back up, restore, and test a MySQL database

Create a consistent logical backup, restore it into isolation, verify representative data, and retain evidence.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate9 stepsMySQL Community Server

Databases & Data

Back up, restore, and test a PostgreSQL database

Produce a custom-format pg_dump, restore into isolation, compare invariants, and retain recovery evidence.
Save to collectionCreate a collection in the sidebar first.
caution40 minintermediate9 stepsPostgreSQL

System Administration · Security

Create remote, versioned backups with rsync and SSH

Use a dedicated SSH identity, dry-run transfers, build hard-linked snapshots, enforce retention, and test restore.
Save to collectionCreate a collection in the sidebar first.
caution55 minadvanced8 stepsrsync

DevOps & CI/CD · Services & Applications

Monitor a host with Node Exporter and Grafana

Install Node Exporter as a locked-down service, restrict metrics, add Prometheus, and verify Grafana.
Save to collectionCreate a collection in the sidebar first.
caution50 minintermediate9 stepsNode Exporter

Security · Services & Applications

Protect SSH and web authentication with Fail2ban

Use local jail overrides, verify filters against real logs, test bans safely, and retain an unban path.
Save to collectionCreate a collection in the sidebar first.
caution35 minintermediate8 stepsUbuntu Server

System Administration · Security

Create and harden a custom systemd service

Use a dedicated identity, explicit paths, bounded restarts, sandboxing, logs, and a verified rollback.
Save to collectionCreate a collection in the sidebar first.
caution45 minadvanced8 stepssystemd

Containers & Kubernetes · Networking & DNS · Security

Set up a Kubernetes cluster on Ubuntu with kubeadm

Build a single-control-plane Kubernetes cluster with containerd, an explicit Pod network, a joined worker, verification, and a complete reset path.
Save to collectionCreate a collection in the sidebar first.
caution90 minadvanced10 stepsUbuntu Server

System Administration · Security

Perform an initial Ubuntu Server setup and security hardening

Create a named administrator, prove key-based recovery access, patch the host, restrict SSH, enable a host firewall, and verify time and exposed services.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate10 stepsUbuntu Server

Containers & Kubernetes · DevOps & CI/CD · Security

Build a production-ready application stack with Docker Compose

Package a small web service with a non-root image, healthchecks, an internal data network, persistent storage, reproducible configuration, backup, update, and rollback.
Save to collectionCreate a collection in the sidebar first.
caution60 minintermediate11 stepsDocker Engine

Databases & Data · Security

Install and secure MySQL on Ubuntu

Install MySQL, remove unsafe defaults, create a least-privilege application database, optionally allow restricted TLS network access, and prove backup readiness.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate12 stepsUbuntu Server

Databases & Data · Security

Install and configure PostgreSQL on Ubuntu

Install PostgreSQL, create a least-privilege role and database, optionally enable restricted TLS network access, validate authentication order, and prove recovery readiness.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate13 stepsUbuntu Server