Writing criteria for this guide
Every "for Mere Mortals" guide is written to the same nine-point standard, so a reader who trusts one can trust the rest. Here it is, with the verification notes for this particular guide below.
- Fix it first. Reader outcomes lead, not action items: each chapter opens by naming the outcome it delivers, shows a check the reader can run to confirm they got it, and a reasonable reader finishes able to state what was done, what it means, and what to try next.
- Plain language. Short sentences, everyday vocabulary, technical terms defined on first use. No slang, and no idioms that only make sense in one country — the reader may be translating as they go.
- No dead ends. A guide never tells the reader to do something it cannot show them how to verify. Every claim a reader relies on — an install, a command, an output — is something this guide demonstrates or clearly labels documented-only below.
- Live-verified where it matters. Procedures are run for real in the guide's lab wherever the build machine allows it, and the transcripts kept in the repository are the evidence. What could not be run is listed honestly below, never presented as if it had been.
- General audiences. Nothing in this guide — examples, fixtures, names, addresses — is modelled on any particular reader or author's real life, network, or organisations. The lab's project is an invented notebook of field notes.
- Standalone. A reader needs this guide, its lab, and nothing else. Where another guide would genuinely help, it is pointed to once, by name, and the chapter still completes without it.
- Honest about limits. Chapter 12 names what the tool costs and cannot do: the 4 GB memory floor the lab felt first-hand, the single-machine design point, an administrator who stands outside the permission system, backups locked to the version that made them and incomplete without the configuration and secrets files, an omnibus stack patched on GitLab's schedule rather than the distribution's, and the CI fact that a runner executes other people's code.
- The ethics rule is in the text, early. Self-hosting a forge makes its operator the custodian of other people's code and conversation, and chapter 1 states the consequence before any procedure depends on it: a private project is private from other users, never from the instance's administrator. Chapter 8 repeats it where permissions are taught, and chapter 7 states the twin rule for CI — a pipeline is a program written by whoever pushed.
- Builds clean. The site builds with MkDocs in strict mode with no warnings, and a fresh reader following the chapters in order reaches the stated outcome of each.
Verification notes for this guide
The build machine is a 2-CPU, ~8 GB Ubuntu 24.04 sandbox,
shared with other work while the lab ran (memory available to
the lab ranged from under 1 GB to about 2 GB, and timings are
therefore ranges). There is no systemd and no container
runtime in the sandbox, and outbound downloads work. GitLab
Community Edition 19.5.3 was verified from the official
omnibus package gitlab-ce_19.5.3-ce.0_amd64.deb for Ubuntu
24.04, fetched from GitLab's own package repository: the
repository index's size (1,214,046,962 bytes) and SHA-256
(516f3c11...) both match the downloaded file exactly (t01,
t02). All transcripts live in gitlab-lab/transcripts/
(t00–t12); the lab's configuration file is
gitlab-lab/gitlab.rb.example and its token script is
gitlab-lab/make-token.rb.
The package was extracted with dpkg -x (no maintainer
scripts ran) and the tree placed at /opt/gitlab by symlink,
which the bundled binaries require: their library paths are
built for that address, and run from elsewhere they cannot
find their own libraries (t03). The lab then followed the
package's own post-install steps by hand — configuration file,
gitlab-ctl reconfigure — with a deliberately small
gitlab.rb: external URL on loopback (127.0.0.1:8929), the
Prometheus monitoring stack and the Kubernetes agent server
disabled, Puma at 2 workers, Sidekiq concurrency 10,
PostgreSQL shared_buffers 256 MB.
Run for real, with transcripts as evidence:
- The repository index read for version, size and checksum; a first download attempt that produced a 14-byte 404: Not Found file, kept as evidence (t01), then the correct download through the documented endpoint and its checksum verification (t02).
- Package internals:
dpkg-deb -Icontrol data, the version-manifest's component list, the post-install and pre-install scripts read in full, and the bundledgit,ruby,psql,redis-server,nginxandgitalybinaries executed from the extracted tree (t03). - A first
gitlab-ctl reconfigurethat converged 348 resources — creating the service usersgit,gitlab-www,gitlab-psql,gitlab-redis— then failed verbatim onErrno::EACCESforinitdb, with Gitaly'saccess deniedin its log; the cause (service users could not traverse the directories above the extracted tree) shown withnamei, the fix applied (world-traversable lab folders; execute-only ACLs on the home directory for the four service users), and the proof run asgitlab-psql(t04). - A second reconfigure ending in
gitlab Reconfigured!: PostgreSQL initialised, schema loaded, migrations run.gitlab-ctl statusshowed all eight services running under runit. The sign-in page answered 502 once, then 200 with the title Sign in · GitLab (t05). - The first sign-in as
root, driven with curl through the real form flow, using the password read from/etc/gitlab/initial_root_password(never printed in any transcript): HTTP 302 to the first-run page, which loaded at 200 titled Create your first project (t06). - A personal access token (scopes
api,read_repository,write_repository) created forrootthroughgitlab-rails runner, after the runner's ownLoadErrorlesson was captured verbatim; an earlier orphaned token revoked through the API (HTTP 204)./api/v4/versionanswered 19.5.3 with revision0d4c9a9a2fa— the same commit the package manifest lists for gitlab-rails — and/api/v4/useranswered the root account. The example projectroot/field-notes(private) was created through the API (t07). - Git over HTTP with the token as password: clone of the
empty project (with its warning), one commit pushed to
main, and the server's own repository tree and commit list confirming the stored files (t08). - The review loop over the API: issue #1 opened; a branch
pushed; merge request !1 opened with
Closes #1in its description; the merge accepted (merge commitbefa4905); issue #1 then read back as closed (t09). - CI end to end: GitLab Runner 19.5.0 downloaded from
the official binary store; a runner created through the
API (the current create-then-register flow) and registered
with the shell executor; the example
.gitlab-ci.ymlpushed, and pipeline 1 finished success, its job trace showing the checkout of the pushed commit and the script's output, ending Job succeeded (t10). /-/healthansweringGitLab OK, and a fullgitlab-backup createof the running instance, producing1793341793_2026_10_30_19.5.3_gitlab_backup.tar(880,640 bytes) in/var/opt/gitlab/backups(t11).- Anonymous access measured:
/api/v4/userwithout a token answered 401, and the private project answered 404 (t12). - The whole stack stopped cleanly with
gitlab-ctl stopafter the lab, and the runner process ended.
Documented only — described from the project's documentation, not run, and the text says so wherever each appears:
- The stock
apt install gitlab-ceroute and the package's repository setup script: the sandbox cannot run its own package-manager session, so the lab unpacked and configured by hand, following the post-install script it read. - Git over SSH and gitlab-shell: the sandbox runs no SSH server for GitLab to use (the package depends on the system's openssh-server for this).
- The web interface beyond the sign-in page and the first-run page: every later object was driven through the API and git, which create and show the same objects the pages do.
- Restoring a backup: it requires a second stopped instance of the same version, which the lab did not have the memory to stand up; chapter 9 says so and teaches the documented procedure as such.
- The Docker executor for runners (the sandbox cannot start containers), runners on separate machines, and pipeline features beyond one stage and one job (artifacts, rules, variables are taught from the documentation).
- Sending email (no SMTP server was configured), the container registry, GitLab Pages, the Kubernetes agent (disabled in the lab configuration), LDAP/SAML sign-in, and every Enterprise-edition feature.
- Upgrading an existing instance: the pre-install script's upgrade-path guard was read in full (19.5 refuses jumps from before 19.2), but no older instance existed to upgrade.
gitlab-rake "gitlab:password:reset[root]"(chapter 10): the lab's password never needed rescue; the command is the package's documented task, labelled in place.- The neighbour tools of chapter 11 — characterised, not installed or benchmarked.
Fixtures are this guide's own and deliberately generic: one
invented project ("field notes" kept by a fictional gardener,
gardener@example.org), a gate that sticks after rain, a
washer to buy for its hinge. Passwords and the access token
used in the lab were generated for it and never printed; the
token was created with a seven-day expiry on an instance that
existed only on loopback and has been stopped.