Skip to main content
CRUCIBLE
Legacy Reference Archive: This 44-chapter book reference has been distilled into Academy A01 (8 Executable Modules) with Tier-Adaptive Productive Failure, Kore/Puck voice, and live Firecracker labs.
Open Academy A01 →
COURSE 0 · SERVER BUILDING & LIFECYCLE MASTERY

Zero-to-Production Linux, Containers, Networking & Recovery

PROGRESS: 0 / 72 (0%)0/44L · 0Q · 0VM
TRK 01 · 6 SPECIALIST SERVER TRACKS · 750 WORDS (4 MIN)

Linux VM and application track

Run these read-only commands inside the intended VM and record the actual output, redacting addresses or usernames where required: These utilities are common Linux tools, not portable Mac commands.

FULL WAR-ROOM →
INTERACTIVE ARCHITECTURE · CLICK ANY LAYER TO INSPECT & RUN

Inside Your Private Linux Server (Shell -> Process -> Socket -> Disk)

Click any box below to see what lives at that layer, what fails in production, and the exact command to inspect it live.

spawnsbindspersistsBash ShellPTY · /home/operatorProcesses & PIDsFastAPI · Postgres · RedisTCP Sockets127.0.0.1 :8000 / :6432Filesystem & Logsconfig/ · logs/ · PGDATA
SELECTED LAYER · BASH SHELL
Interprets your commands, expands quotes/variables, and returns exit codes ($?).
Common failure: Running admin commands on the wrong host or directory when SSH prompts look identical.
$ hostname && whoami && pwd

Audience: learner who has completed the local CLI/API labs. Prerequisites: a fresh disposable Linux VM, provider console recovery, authorized SSH identity and an inventory entry. Evidence status: the commands below are a target-VM recipe; local process/HTTPS/release evidence lives in the separate integration receipts. Expected outcome: a service survives an application restart, rejects unauthorized access, emits useful operational signals and can be retired with its dependencies accounted for.

Adapt all twelve phases

PhaseLinux-specific decision and exit evidence
1 FrameworkName host, service, owner and environment; assign the dossier location.
2 BeginnerExplain files, users, processes, package management, sockets, exit codes and service startup.
3 ArchitectureChoose OS support lifecycle, VM size, disks, traffic path, availability and maintenance window.
4 ProvisionRecreate VM/network/storage using a reviewed image and IaC plan; verify inventory and console access.
5 FoundationSeparate operator/service identities; verify SSH, sudo, updates, private secret delivery and firewall paths.
6 ServiceRun a pinned application artifact under a service identity with explicit working directory and resources.
7 Go liveVerify DNS, trusted HTTPS, readiness and complete user workflow from outside the host.
8 OperateMeasure host pressure, request/queue outcomes, logs and delivered alerts; assign an on-call owner.
9 ChangeStage package/application/kernel updates; test compatible rollback and an approved reboot.
10 RecoverRebuild on a replacement host using retained configuration, artifacts, identities and restored data.
11 RetireDrain traffic/jobs, preserve required data, revoke access, remove exact resources and check billing inventory.
12 AssessA second operator rebuilds and diagnoses a fault using only the dossier.

Learn the host before changing it

Run these read-only commands inside the intended VM and record the actual output, redacting addresses or usernames where required:

bash
cat /etc/os-release
id
hostname
pwd
df -h
df -i
free -h
ip address
ip route
ss -lnt
systemctl --failed

These utilities are common Linux tools, not portable Mac commands. If absent, identify the distribution's supported package and install through the reviewed maintenance path. df -h checks filesystem capacity; df -i checks inode capacity. A filesystem can reject new files even when byte capacity looks adequate. ss shows listeners on this host; it does not prove an external firewall permits or denies traffic.

Choose one request and explain every hop: client resolver → public endpoint → edge/TLS → application → database/worker → response. Check from inside outward during diagnosis. A readiness503 with reachable HTTPS suggests the edge works while a dependency may not. A refused TCP connection is different from an HTTP authentication rejection.

Supervise the service deliberately

For the Course 0 workspace's Compose route, follow the reference example and Chapter 7. For a native systemd route, create a separately reviewed unit with an explicit User, WorkingDirectory, executable path, secret file, restart policy and shutdown allowance. Do not enable the retention timer before reviewing data policy. Inspect the installed unit before changing it:

bash
systemctl cat mastery.service
systemctl status mastery.service --no-pager
journalctl -u mastery.service -n 50 --no-pager

mastery.service is an example unit name: use it only after installing and reviewing that exact lab unit. A unit being active is insufficient: exercise readiness, identity rejection and one real job. Apply configuration changes through the appropriate reload/restart path and record the result. The [systemctl reference](https://www.freedesktop.org/software/systemd/man/latest/systemctl.html) documents the distinction between unit inspection and control operations.

Failure exercise: stop only the owned worker, submit a fresh synthetic job and confirm durable queueing. Start it and prove completion. Then set an incorrect database address in a disposable candidate configuration and verify it stays out of traffic. Restore the previous configuration; do not repeatedly restart a shared database to solve an application typo.

Recovery and retirement

An approved OS reboot tests service startup and storage mounting; an application restart does not. Before reboot, verify console recovery, pending work, database shutdown behavior and maintenance communications. After reboot, verify mounts, services, time synchronization, alerts and the external user workflow. Keep the result distinct from local subprocess restart evidence.

Before retirement, inventory VM, disks, snapshots/backups, load-balancer targets, public addresses, DNS, certificates, monitoring, identities, registry artifacts and scheduled jobs. Migrate consumers first. Remove resources by reviewed IDs and retain a receipt with timestamps; check for orphaned charges after the provider's reporting delay. Deleting a VM alone does not establish complete retirement.

ACTIVE-RECALL MASTERY CHECKPOINT · TRK 01

Lock in what you just learned (3 quick questions)

PASS 2/3 FOR +30 XP
Q1.Why run a Linux service under a proper supervisor (like systemd) rather than leaving python3 app.py & in a terminal?
Q2.Which command inspects recent logs for a specific systemd unit without dumping unrelated kernel noise?
Q3.What should you check first when a supervised Linux daemon enters a rapid crash-loop?
Answered 0 / 3