OneLinersCommand workbench
Guides
Operational guides

Complete procedures with a way back.

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

Guides
243
Favorites
0
243 launch guides · 2601 reviewed steps
10 of 243 guides

DevOps & CI/CD · Security

Install and secure a GitHub Actions self-hosted runner

Build a one-job Linux runner with restricted repository access, an unprivileged account, verified release, minimal network, external logs, immutable updates, fork isolation, and complete post-job destruction.
Save to collectionCreate a collection in the sidebar first.
danger300 minadvanced11 stepsUbuntu Server

Security · Services & Applications

Harden Apache security headers and TLS policy

Deploy scoped response headers and modern TLS settings, validate application compatibility, prevent duplicate headers, and retain a fast rollback.
Save to collectionCreate a collection in the sidebar first.
caution55 minadvanced8 stepsApache HTTP 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

Security · Databases & Data

Harden a MariaDB Server for production

Remove anonymous and test access, restrict administration, enforce TLS where remote clients are required, audit grants, and verify exposure.
Save to collectionCreate a collection in the sidebar first.
caution60 minadvanced8 stepsMariaDB

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

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 · Services & Applications

Harden PHP-FPM with systemd service controls

Measure the current unit, add compatible filesystem and privilege restrictions, validate application paths, and roll out hardening without breaking package upgrades.
Save to collectionCreate a collection in the sidebar first.
caution50 minadvanced8 stepssystemd

Security · Services & Applications

Configure a production PHP INI baseline

Separate CLI and FPM settings, hide unsafe disclosure, bound resources, secure sessions, centralize errors, and verify effective values through the web SAPI.
Save to collectionCreate a collection in the sidebar first.
caution40 minintermediate8 stepsPHP

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

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