The guide: Installing the Reach server on Ubuntu Server 24.04 LTS (deb)
Reach is in development. Its packages are not published.
What ran: installed and run on Ubuntu Server 24.04 LTS in our own lab (16 November 2026), on one x86_64 virtual machine with AppArmor enabled and ufw active, following this guide; no separate tester has followed it yet. What ran, as written here: the checksums; apt install of the server and agent packages; the reach-server account (home /var/lib/reach-server, shell /usr/sbin/nologin) and the service installed disabled until init; init (self-signed, loopback), moving the configuration, enable --now; /version (0.1.1, schema 8); the owners and modes in the table; listening on loopback only; the service running as reach-server, sandbox score 1.5; the first owner through a setup link with two-step sign-in; audit verify (one chain); no secret words in the journal; a reboot (server and agent back by themselves, still loopback only); no AppArmor denial naming Reach. A second run (build 0.1.1-280, 16 November 2026): apt install over the earlier build 0.1.1-273 restarted each service once, a report was delivered, the KEK was unchanged and no AppArmor denial named Reach; apt remove kept the database, the KEK, the configuration and the account; apt purge left the data, as below. Not yet run on Ubuntu: your own certificate, PostgreSQL, backup and restore, and the proof scripts.
For the IT person setting up the Reach server for an evaluation.
Read this first
- Unsigned evaluation build. The packages are not signed (they are labelled
-evaluation-unsigned). Use them to evaluate Reach, not for production. - Loopback first. The server starts on the machine itself (
127.0.0.1). You reach the console through an SSH tunnel for the first sign-in. To let agents and browsers on other machines reach it, follow "Open the server to other machines" below. From other machines, only people who have set up two-step sign-in can sign in. - Two-step sign-in. Every user signs in with a password and a code from an authenticator app (any standard TOTP app). Have one ready on your phone for step 5.
- SQLite. The database is a SQLite file, fine for evaluation and small sites. PostgreSQL is available (see "Use PostgreSQL" below), but its steps have not been run on Ubuntu.
What has and has not been run#
What ran on Ubuntu is listed in the status above; every other step follows the code and the Rocky guide. The .deb packages are built beside the RPMs, with the same files, the same scripts and the same unit. The Rocky Linux 9 guide was run on Rocky Linux 9; this page changes only what differs on Ubuntu (apt instead of dnf, ufw instead of firewalld, AppArmor instead of SELinux, PostgreSQL from Ubuntu's own archive). Treat each difference below as expected to work, not as proved.
Requirements#
- Ubuntu Server 24.04 LTS with systemd,
sudoandapt. Other systems: see "Other Debian-family systems" at the end. - Root access (for
aptandsystemctl). - SSH access to the machine from your own computer, for the tunnel.
1. Get the packages#
The packages are not published. To evaluate Reach before release, ask Sys-Ki through the contact page on sys-ki.com and choose "Evaluation build". Evaluation builds are internal and not yet proven on real hardware. When one is ready it is handed over with its SHA256SUMS file; if none is ready, you are told so plainly. Building the packages from the source applies only to people with access to the private source.
With either option below you end up with two files per CPU type: reach-server_<version>-<build>_<arch>.deb and reach-agent_<version>-<build>_<arch>.deb, where <arch> is amd64 or arm64 (dpkg --print-architecture shows yours).
Option A: an evaluation build handed over by Sys-Ki. You receive the packages together with a file called SHA256SUMS (the same file that lists the RPMs). Put them all in one folder (below, <folder>) and check them before you install anything. Run the check from inside that folder: sha256sum looks for each file in the folder you are in, not next to the SHA256SUMS file, so from anywhere else it reports "no file was verified". The folder will usually hold only some of the listed files, so skip the missing ones:
cd <folder>
sha256sum -c --ignore-missing SHA256SUMSEvery line printed must end in OK. Read the messages carefully: FAILED open or read means a file is absent; FAILED on its own means the file is damaged or was changed: do not install it, and ask Sys-Ki for a fresh copy. The check proves the file is the one the sums file lists; it does not prove who made the sums file, so take that file from Sys-Ki directly and not from the same place as an unverified download.
Option B (only with access to the private source): build them yourself. You need, on any Linux or macOS computer (not the server itself):
gitand a copy of the Reach source.- Go, at the version in the
goline ofgo.mod. Check withgo version. nfpm(the packager, nfpm.goreleaser.com). Check withnfpm --version.
On a clean checkout (<source> is the folder you cloned; the script moves into it itself, so you can run it from any folder; it refuses to build with uncommitted changes unless you add --allow-dirty):
<source>/packaging/build.shThe script takes the version from internal/version/VERSION. It builds both packages for both CPU types, as RPMs and as .deb files, and writes everything to the dist/ folder:
dist/reach-server_<version>-<build>_amd64.deb
dist/reach-server_<version>-<build>_arm64.deb
dist/reach-agent_<version>-<build>_amd64.deb
dist/reach-agent_<version>-<build>_arm64.deb
dist/SHA256SUMS(the RPMs are in the same folder). dist/SHA256SUMS lists every package. Check them from inside that folder: cd <source>/dist && sha256sum -c --ignore-missing SHA256SUMS (on macOS: shasum -a 256 -c SHA256SUMS, which also reports the files you do not have). Copy the two .deb files for the server's CPU type to the server, for example with scp.
2. Install#
With the packages from step 1 on the machine:
sudo apt install ./reach-server_<version>-<build>_<arch>.debRun it from <folder>, or give the full path starting with /; the ./ (or a /) is what makes apt install a local file instead of looking for a package of that name in a repository. <arch> is amd64 or arm64 (dpkg --print-architecture). apt may print a note that it downloaded the file as root, outside its sandbox; that is expected for a local file.
The package creates a reach-server system user (no login shell, /usr/sbin/nologin), the folders below, and a systemd unit. It does not enable or start the service.
| Path | What | Owner and mode |
|---|---|---|
/usr/bin/reach-server | the server | root, 0755 |
/etc/reach-server/ | configuration folder, empty until you place server.toml in step 3; the service account cannot write here | root:reach-server, 0750 |
/var/lib/reach-server/ | data: database, encryption key, certificate | reach-server, 0700 |
/usr/lib/systemd/system/reach-server.service | the service unit | root, 0644 |
3. Initialise#
Run init once, as the reach-server user, so that the data files belong to that user, then move the configuration into /etc where the service account cannot change it:
cd /
sudo -u reach-server /usr/bin/reach-server init \
--dir /var/lib/reach-server \
--public-url https://localhost:8443 \
--listen 127.0.0.1:8443 \
--tls self-signed
sudo install -o root -g reach-server -m 0640 /var/lib/reach-server/server.toml /etc/reach-server/server.toml
sudo rm /var/lib/reach-server/server.toml--public-url must match what your browser will show. With the SSH tunnel below, that is https://localhost:8443: keep the port the same on both ends of the tunnel. Keep --listen on 127.0.0.1:8443 for now; see "Open the server to other machines" for changing it.
init creates a local evaluation CA and a server certificate signed by it, the database, the encryption key (the "KEK") and the configuration file. It prints the CA file's path (/var/lib/reach-server/tls/reach-ca.pem), the SHA-256 fingerprints of the CA and of the server certificate, a setup link, and reminders to back up the KEK and to keep the CA's private key private. Write the two fingerprints down: the console's sign-in page shows the server certificate's fingerprint so you can compare. The setup link is valid for 60 minutes and works once. Treat it like a password: do not paste it into tickets or chat.
Resulting files: /var/lib/reach-server/kek, /var/lib/reach-server/reach.db and /var/lib/reach-server/tls/server.key are owned by reach-server with mode 0600; /etc/reach-server/server.toml is root:reach-server 0640, which the service account can read but not write.
Running init again refuses and changes nothing.
If the setup link is lost or has expired#
Issue a new one as on Rocky: If the setup link is lost or has expired.
4. Start#
sudo systemctl enable --now reach-server
systemctl is-active reach-serverThe second command should print active. The server then listens on 127.0.0.1:8443 only. Logs: sudo journalctl -u reach-server.
Ubuntu uses AppArmor, not SELinux. Reach ships no AppArmor profile, so AppArmor does not confine the service; what restricts it is the systemd sandbox in the unit file (read-only system, private /tmp, no home folders, no capabilities, a system-call filter). To see how the unit scores, run systemd-analyze security reach-server. (On Rocky 9.8 the score was 1.5, OK; it has not been looked at on Ubuntu.) There is no SELinux step to do.
5. Sign in (SSH tunnel)#
On your own computer, open a tunnel to the server machine:
ssh -L 8443:127.0.0.1:8443 <your-user>@<server-address>Leave it running, then open https://localhost:8443 in your browser. The browser warns about the certificate until it trusts the evaluation CA. Either install /var/lib/reach-server/tls/reach-ca.pem on the machine with the browser (commands for macOS, Windows and Linux are in Certificates and TLS), or accept the warning once after comparing the fingerprint on the sign-in page with the one init printed.
Paste the setup link from init into the browser address bar (it should start with https://localhost:8443/setup/). Enter your name, email address and a password. The setup link then takes you straight on to setting up two-step sign-in (the link is the proof it needs, so do this in the same visit): scan the QR code with an authenticator app (or type the setup key), type the six digits the app shows, and save the ten recovery codes the next page shows, once, in your password manager. You then land signed in on the Overview page (machines reporting and silent, AI tools, findings and changes in one place); Machines is the next tab. From now on every sign-in is the password and a code. (A person with a password but no second step needs an enrolment code from an owner or from reach-server user reset <email> --totp; see Users and sign-in.)
6. Mint an enrolment token#
An enrolment token is a secret that lets one or more machines join this server (enrolment and tokens). In the console open Add machines, give the token a label, a lifetime in days, a maximum number of uses and a rate limit, and create it. The token is shown on screen when created. Copy it into a file that only you can read, for example:
umask 077
cat > ~/reach-token # paste the token, press Enter, then Ctrl-D7. Install the agent and enrol it#
On the same machine, install the Reach agent (the read-only program that reports from each machine) and enrol its service with the token file from step 6. The commands, and what to do when the server's certificate changes, are in one place: Install the agent (Ubuntu). Do not run reach-agent enrol or scan --send as an ordinary user for this: that makes a second, per-user identity and the console lists the same computer twice. If enrol says the machine is already enrolled, or the clock is refused, see Look after agents. Running the server day to day (users, backups, logs, firewall): Run the server.
8. See the machine#
In the console open Machines: one machine is listed. Open it: the page includes a What we could not see section.
Open the server to other machines#
The server starts on 127.0.0.1. Agents and browsers on other machines can reach it only after you change the listen address. From other machines, only people who have set up two-step sign-in can sign in (step 5 does that for the owner); anyone else signs in on the server or through the tunnel with an enrolment code. The full explanation, including a separate agents-only address, is in Users and sign-in.
- In
/etc/reach-server/server.tomlsetpublic_urlto the name or address people and agents will use (it must match the certificate: with--tls self-signed, re-runreach-server tls renewafter changing it so the certificate covers the new name), and setlisten = "0.0.0.0:8443". - Open the port if the firewall is on. Ubuntu Server ships
ufwswitched off. Check withsudo ufw status. If it saysactive:sudo ufw allow 8443/tcp, or, to limit the source,sudo ufw allow from <range> to any port 8443 proto tcp. If it saysinactive, nothing on the machine blocks the port; a cloud provider's firewall or security group still may, so open it there. sudo systemctl restart reach-server. If a user has not set up two-step sign-in, the server still starts andsudo journalctl -u reach-servershows aserver.users_without_second_stepwarning naming them: they cannot sign in from another machine until they set it up through the tunnel with an enrolment code. A browser through the tunnel athttps://localhost:8443is accepted whateverpublic_urlsays; a script orcurlthrough the tunnel is refused with "the request did not come from this site" oncepublic_urlis the network address, and the message says how to recover.
New tokens carry public_url, so tokens made after the change point agents at the new address.
Upgrade#
Get the newer packages as in step 1. Stop the server, install both over the old ones, migrate, and start it:
sudo systemctl stop reach-server
sudo apt install ./reach-server_<new-version>-<build>_<arch>.deb ./reach-agent_<new-version>-<build>_<arch>.deb
sudo -u reach-server /usr/bin/reach-server migrate
sudo systemctl start reach-serverEach build has its own build number, so a newer build is an upgrade even when the version is the same. On PostgreSQL, take a backup first and add --backup-done to migrate (Upgrade and migrate). Your data, configuration, KEK and enrolled machines are kept. The database migrates to this release's schema (its number is on the upgrade page) with reach-server migrate. If you upgrade while the server is running, the package's install script checks the database: when it needs no migration the server is restarted onto the new version, and when it does (or the check fails) the server is stopped and the script says what to run; if the service is not running, the upgrade does not start it. Check what is actually running:
sudo curl --cacert /var/lib/reach-server/tls/reach-ca.pem https://localhost:8443/versionIt should show the new version. (sudo because the certificate folder is private to the service account; --cacert checks the server certificate instead of switching the check off. reach-server version only reports the file on disk, not the running process.) On Ubuntu an upgrade over an earlier 0.1.1 build ran (build 0.1.1-280, 16 November 2026): each service was restarted once and kept its data.
Use PostgreSQL#
None of this has been run on Ubuntu. The PostgreSQL steps in the Rocky guide were run with PostgreSQL 16 on Rocky Linux 9; Ubuntu 24.04 ships the same major version, 16.
1. Install PostgreSQL on the server machine (skip if you already have one)#
sudo apt install postgresqlOn Ubuntu 24.04 this installs PostgreSQL 16, creates the cluster 16/main and starts it. There is no initdb step. Check that it is up with sudo systemctl is-active postgresql and sudo -u postgres psql -c 'select version()'. The PostgreSQL project's own repository and other versions are not covered here.
The server's unit orders itself after postgresql.service. On Ubuntu that is the umbrella unit that the per-cluster units start before, so the server is expected to wait for the database after a reboot; this has not been run.
2 to 5. The role, the address file, init and start#
Follow steps 2 to 5 of the Rocky guide as written: the commands are the same on Ubuntu, whose PostgreSQL package also keeps its socket in /var/run/postgresql. Then carry on with step 5, Sign in here.
Move an evaluation from SQLite to PostgreSQL#
See Upgrade and migrate.
Upgrades on PostgreSQL#
reach-server migrate does not back PostgreSQL up for you. Take a pg_dump first, then run sudo -u reach-server /usr/bin/reach-server migrate --backup-done. Run it with sudo: the configuration file is readable only by the service account, so the bare command fails for an ordinary user.
Back up the KEK separately#
/var/lib/reach-server/kek is the key that protects the secrets in the database. Copy it to a different, safe place than the database and any database backups. Without it, every agent must enrol again and the server cannot sign Statements, the signed snapshots of its figures described in Statements (a backup is the database and this file together; the database alone cannot sign). sudo cp it somewhere root-only and then to your password manager or vault; do not leave copies in your home folder.
Remove#
sudo apt remove reach-server reach-agentThis stops and disables the service and removes the binaries and units. It keeps your data: /var/lib/reach-server (database, KEK, certificate), /etc/reach-server and the reach-server user stay, so a mistaken removal or a remove-then-reinstall does not destroy anything. The agent's user and identity are kept too, until sudo apt purge reach-agent (see the agent guide). If someone ran a per-user enrol, its state in that user's ~/.local/state/reach-agent/ is not touched by the package: delete it yourself. (Run on Ubuntu, build 0.1.1-280, 16 November 2026.)
Installing again after apt remove puts the server back as it was: if it was enabled when you removed it and /etc/reach-server/server.toml is still there, the install enables it and starts it, unless its database needs a migration first, in which case it is enabled but not started and the install prints what to run (back up, reach-server migrate, then sudo systemctl start reach-server). A server that was never initialised stays off. (Run on Ubuntu with build 0.1.1-290, 16 November 2026: the server came back enabled and active; an earlier build, 0.1.1-280, left it disabled. The other cases are from the package scripts and their tests.)
sudo apt purge reach-server removes only files the package itself owns as configuration (ran on Ubuntu, build 0.1.1-280, 16 November 2026). The server package ships no configuration file, so it does not delete /var/lib/reach-server, the server.toml you placed in /etc/reach-server or the reach-server user: they are your data, and deleting them is a separate, deliberate step (below).
If you install the package again after apt purge reach-server, the server is installed disabled and stopped. sudo systemctl enable --now reach-server brings it back (run on Ubuntu Server 24.04, build 0.1.1-290, 16 November 2026: afterwards the service was enabled and active, the console answered as before, and the data folder held the same number of entries as before the purge; the database contents were not compared).
Delete all Reach data (purge)#
Warning: this permanently deletes the Reach database, the KEK and the configuration. It cannot be undone, and enrolled agents will have to enrol again on a new server. Back up /var/lib/reach-server first if there is any chance you need it.
After apt remove:
sudo rm -rf /var/lib/reach-server /etc/reach-server
sudo userdel reach-serverStart over while the package stays installed#
If you delete the data and the reach-server user but keep the package (to run init again without reinstalling), init fails because the user and the folders are gone: the package creates them only when it is installed. Put them back first:
sudo systemd-sysusers /usr/lib/sysusers.d/reach-server.conf
sudo systemd-tmpfiles --create /usr/lib/tmpfiles.d/reach-server.conf(The first recreates the user, the second the two folders with their owners and modes.) With PostgreSQL, also drop and create the database again, because init refuses one that already holds a Reach schema.
Other Debian-family systems#
Ubuntu Server 24.04 LTS is the only system this page targets. Ubuntu 26.04 LTS and Debian 13 use the same systemd layout the packages rely on (systemd-sysusers, systemd-tmpfiles, units in /usr/lib/systemd/system, a merged /usr), so the packages are expected to install the same way there. Neither has been tried. Older systems (Ubuntu 22.04, Debian 12) are not targeted.
Test it yourself#
The proof scripts that run these steps on a throwaway test server, for people with the private source, are described in Proof scripts. They have not yet been run on Ubuntu.