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
40 of 243 guides

Incident Response & Troubleshooting · Security

Fix certificate verify failed and unable to get local issuer certificate

“certificate verify failed” and “unable to get local issuer certificate” are trust-validation failures, not instructions to turn TLS checks off. Compare the actual client, endpoint, served chain, hostname, time and trust store, then repair the demonstrated server or client boundary.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate8 stepsUbuntu Server

Containers & Kubernetes · Observability & Monitoring · Incident Response & Troubleshooting

Fix Kubernetes Metrics API not available: APIService, TLS and metrics-server

Trace Metrics API not available from kubectl top through API aggregation, Service endpoints, metrics-server and kubelet access. Repair the failing layer without disabling TLS verification or replacing a managed add-on blindly.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate8 stepskubectl client

DevOps & CI/CD · Security

Fix npm UNABLE_TO_GET_ISSUER_CERT_LOCALLY and SELF_SIGNED_CERT_IN_CHAIN safely

npm reports UNABLE_TO_GET_ISSUER_CERT_LOCALLY or SELF_SIGNED_CERT_IN_CHAIN when Node.js cannot build a trusted certificate path for the configured registry or an HTTPS-intercepting proxy. This guide restores an explicit trust chain without disabling TLS verification.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate10 stepsNode.js

AI/ML · Cloud & Infrastructure · Security · Observability & Monitoring

Deploy a production LiteLLM multi-provider gateway

Pin LiteLLM v1.93.0, publish stable provider aliases behind TLS and scoped virtual keys, enforce budgets and shared limits, constrain fallbacks by privacy policy, prove redaction, and rehearse recovery and rollback.
Save to collectionCreate a collection in the sidebar first.
caution480 minadvanced16 stepsLiteLLM Proxy

Services & Applications · Databases & Data · Security · Backup & Recovery

Deploy Nextcloud with PostgreSQL, Redis, TLS, Cron, backups, and verified restore

Deploy Nextcloud 34.0.2 on Ubuntu 24.04 with protected PostgreSQL and Redis, canonical Nginx TLS, observable Cron, complete backups, and an isolated application-level restore drill.
Save to collectionCreate a collection in the sidebar first.
danger360 minadvanced14 stepsNextcloud Server

Networking & DNS · Security · Services & Applications

Configure HAProxy load balancing with health checks and TLS termination

Deploy HAProxy 3.2 LTS as a validated HTTPS load balancer with application-aware health checks, observable backend state, controlled certificate renewal, and zero-downtime reloads.
Save to collectionCreate a collection in the sidebar first.
caution150 minadvanced10 stepsUbuntu Server

Security · System Administration

Build a private CA with OpenSSL and issue service certificates

Create an offline root and constrained online intermediate with OpenSSL 3.5 LTS, issue inventory-approved SAN/EKU service leaves, operate revocation, and prove rotation plus full CA recovery.
Save to collectionCreate a collection in the sidebar first.
danger360 minadvanced17 stepsOpenSSL

Databases & Data · Security · Backup & Recovery

Secure SQL Server with TLS, least privilege, and verified backup restore

Configure SQL Server 2025 CU7 on Ubuntu 24.04 for strict validated TLS, replace broad application rights, create an encrypted checksum backup with off-host key escrow, and prove it through real restore and CHECKDB.
Save to collectionCreate a collection in the sidebar first.
danger270 minadvanced16 stepsSQL Server

Databases & Data · Services & Applications · Security · Observability & Monitoring

Secure RabbitMQ with TLS, users, policies, reliable queues, and monitoring

Build a RabbitMQ 4.3 AMQPS boundary, least-privilege vhost identity, durable quorum-queue path, bounded dead-letter policy, observable client acknowledgements, and measured leader failover.
Save to collectionCreate a collection in the sidebar first.
danger210 minadvanced14 stepsRabbitMQ

Databases & Data · Security · Backup & Recovery · Observability & Monitoring

Secure Elasticsearch with TLS, users, snapshots, and safe heap sizing

Enforce transport mTLS and HTTPS, replace superuser applications with scoped roles, preserve automatic heap sizing unless measurements justify change, and prove snapshots through an isolated restore.
Save to collectionCreate a collection in the sidebar first.
danger240 minadvanced15 stepsElasticsearch

Databases & Data · High Availability & Reliability · Security

Build a MongoDB replica set and verify failover safely

Harden an existing three-member MongoDB 8.2 replica set, prove majority durability and client discovery, perform a planned election and bounded secondary outage, and reconcile real application-level evidence.
Save to collectionCreate a collection in the sidebar first.
danger150 minadvanced14 stepsMongoDB Community Server

Cloud & Infrastructure · Networking & DNS · Security

Configure Cloudflare DNS, proxying, TLS, caching, and origin protection

Migrate a production zone safely, enforce Full (strict), protect the origin with mTLS and network controls, cache only proven public content, stage WAF and rate limiting by plan, enable DNSSEC, and rehearse recovery.
Save to collectionCreate a collection in the sidebar first.
caution300 minadvanced16 stepsCloudflare DNS primary zone

Services & Applications · Security

Configure journald retention, forwarding, and centralized remote logs

Make local journals persistent and bounded, receive per-host journal files on a dedicated collector, and upload structured events over mutually authenticated TLS while preserving a local buffer and auditable failure behavior.
Save to collectionCreate a collection in the sidebar first.
caution105 minadvanced10 stepsUbuntu Server

Databases & Data · High Availability & Reliability · Security

Build Redis Sentinel high availability and test failover

Deploy three independent Redis Sentinels around a TLS/ACL-protected Redis Open Source 8.8 primary and two replicas, prove quorum versus majority, validate Sentinel-aware clients and test promotion, fencing and backup restore.
Save to collectionCreate a collection in the sidebar first.
danger240 minadvanced12 stepsRedis Open Source

Databases & Data · Security · Storage & Filesystems

Install and secure Redis with ACLs, TLS, persistence and verified backups

Deploy Redis Open Source 8.8 on Ubuntu 24.04 with correct product and licensing terminology, TLS-only private access, named least-privilege ACL users, AOF/RDB durability and a checksum-backed isolated restore drill.
Save to collectionCreate a collection in the sidebar first.
caution210 minadvanced11 stepsRedis Open Source

Databases & Data · Security · High Availability & Reliability

Install and secure MongoDB with authentication, TLS and backups

Deploy a three-member MongoDB Community Server 8.2 replica set on Ubuntu 24.04 with TLS/X.509 member identity, SCRAM least privilege, majority-aware clients and a full mongodump/oplog isolated restore drill.
Save to collectionCreate a collection in the sidebar first.
danger300 minadvanced11 stepsMongoDB Community Server

Containers & Kubernetes · Security · Networking & DNS

Automate Kubernetes certificates with cert-manager and ACME

Install a pinned cert-manager release, prove webhook and controller health, validate ACME staging through HTTP-01, promote one bounded certificate to production, design least-privilege DNS-01 for wildcards, and operate renewal without exposing private keys.
Save to collectionCreate a collection in the sidebar first.
caution180 minadvanced12 stepsKubernetes

Web & Proxy · Security

Deploy IIS with TLS, isolated pools, logging, and verified backups

Build a Windows Server 2025 IIS site with validated SNI TLS, a least-privilege pool identity, privacy-aware W3C logs, health evidence and a complete isolated restore test.
Save to collectionCreate a collection in the sidebar first.
danger420 minadvanced15 stepsWindows Server

Containers & Kubernetes · Web & Proxy

Install and operate F5 NGINX Ingress Controller Open Source with TLS

Deploy the actively maintained F5 NGINX Ingress Controller with pinned Helm artifacts, explicit class ownership, hardened replicas, TLS routing, external verification, monitoring, and safe lifecycle controls.
Save to collectionCreate a collection in the sidebar first.
caution120 minadvanced12 stepsKubernetes

Observability & Monitoring · Networking & DNS · Security

Monitor external uptime and TLS expiry with Blackbox Exporter

Deploy Blackbox Exporter 0.28.0 across independent external vantages with SSRF-safe egress, separate IPv4/IPv6 TLS modules, Prometheus relabeling, expiry alerts and nonpaging failure tests.
Save to collectionCreate a collection in the sidebar first.
danger240 minadvanced11 stepsBlackbox Exporter

AI/ML · System Administration · Security · DevOps & CI/CD

Deploy Ollama and Open WebUI securely

Run authenticated local AI behind TLS with private Ollama networking, persistent storage, controlled models, staged updates and tested backup/restore.
Save to collectionCreate a collection in the sidebar first.
caution240 minadvanced15 stepsUbuntu Server

Databases & Data · Networking & DNS · Incident Response & Troubleshooting

Fix MySQL ERROR 2002 and ERROR 2003 connection failures

Diagnose MySQL ERROR 2002 and ERROR 2003 without guessing: separate a missing or mismatched Unix socket from a stopped service, wrong TCP port, bind-address policy, DNS, firewall, route, and certificate-verified TLS failure.
Save to collectionCreate a collection in the sidebar first.
caution55 minintermediate10 stepsMySQL Community Server

Databases & Data · Identity & Access · Incident Response & Troubleshooting

Fix MySQL ERROR 1045 Access denied for user

Diagnose MySQL ERROR 1045 by proving the selected server, transport, client origin, matching user@host account, authentication plugin, lock state, password state, and TLS policy before changing credentials or grants.
Save to collectionCreate a collection in the sidebar first.
caution40 minintermediate8 stepsMySQL Server

Security · Services & Applications

Fix Certbot AuthorizationError and failed ACME challenges

Diagnose Certbot AuthorizationError and failed ACME challenges without retrying blindly. Separate public DNS, IPv6, HTTP-01 routing, redirects, CAA, DNSSEC, DNS-01 propagation, and multi-origin failures before issuing or renewing a certificate.
Save to collectionCreate a collection in the sidebar first.
caution75 minintermediate11 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

Security · Databases & Data

Configure hostname-verifying TLS for MySQL and MariaDB clients

Issue identities from a trusted CA, protect private keys, require encrypted accounts, configure hostname verification, rotate certificates, and test downgrade resistance.
Save to collectionCreate a collection in the sidebar first.
caution70 minadvanced8 stepsMySQL

Security · Services & Applications

Configure Dovecot IMAP with TLS and secure authentication

Install Dovecot, set mailbox location, require TLS, protect certificates, choose authentication mechanisms, constrain listeners, and test IMAPS and STARTTLS.
Save to collectionCreate a collection in the sidebar first.
caution75 minadvanced8 stepsDovecot CE

Services & Applications · Networking & DNS

Configure Exim4 to relay outbound mail through a smarthost

Route non-local mail to an authenticated TLS relay, protect credentials, preserve local delivery, rewrite identities deliberately, and test failure behavior.
Save to collectionCreate a collection in the sidebar first.
caution60 minintermediate8 stepsExim4

Security · Services & Applications

Configure Exim TLS and authenticated message submission

Install a trusted certificate, separate port 587 policy, require encryption before AUTH, integrate an authenticator, rate-limit abuse, and test relay boundaries.
Save to collectionCreate a collection in the sidebar first.
caution90 minadvanced8 stepsExim

Databases & Data · Security

Install MariaDB Server with a production baseline

Install MariaDB from an official distribution or MariaDB repository, constrain networking, create an administrator path, enable logs, and prove restart safety.
Save to collectionCreate a collection in the sidebar first.
caution50 minintermediate8 stepsMariaDB

Databases & Data · High Availability & Reliability

Configure MariaDB replication with GTID and TLS

Prepare compatible primary and replica servers, create a TLS-bound replication user, seed data, configure GTID replication, monitor lag, and test recovery.
Save to collectionCreate a collection in the sidebar first.
caution120 minadvanced8 stepsMariaDB

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

Databases & Data · High Availability & Reliability

Configure MySQL 8.4 GTID replication with TLS

Prepare source and replica identities, enable GTIDs and binary logs, seed from a verified backup, require TLS, start replication, and test lag and restart.
Save to collectionCreate a collection in the sidebar first.
caution120 minadvanced8 stepsMySQL

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

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

Databases & Data · Security

Install and secure phpMyAdmin behind Apache

Install from a trusted package or verified upstream release, isolate configuration secrets, add TLS and network authentication gates, disable dangerous defaults, and test database TLS.
Save to collectionCreate a collection in the sidebar first.
caution60 minadvanced8 stepsphpMyAdmin

Services & Applications · Networking & DNS

Configure Postfix to relay outbound mail through a smarthost

Set relayhost, authenticate with a protected map, require verified TLS, scope sender rewriting, preserve local delivery, and test deferral on outage.
Save to collectionCreate a collection in the sidebar first.
caution60 minintermediate8 stepsPostfix

Security · Services & Applications

Configure Postfix TLS and authenticated submission on port 587

Add a dedicated submission service, require STARTTLS and SASL, integrate Dovecot authentication, constrain relaying and abuse, and test safe failure modes.
Save to collectionCreate a collection in the sidebar first.
caution90 minadvanced8 stepsPostfix

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