Install shld with one command

Run one curl command on a Linux server to download, verify, install, and start shld, then connect the server and check monitoring.

At the end, shld will run as a service on your Linux server. It checks every installed package, SSH logins, processes and network connections there, plus the lockfiles in an app directory if you name one. You run three commands.

What you need

  • A Linux server on amd64 or arm64 that runs systemd 245 or newer: Ubuntu 20.04 or later, Debian 11 or later. Older systemd ignores the sandbox settings that protect the shld service, so the script stops before it downloads anything. Ubuntu 16.04 and 18.04 no longer get free security updates, so upgrading the operating system is the first security fix there.
  • Root access through sudo.
  • curl, openssl, tar, and sha256sum on the server.
  • Outbound HTTPS from the server to downloads.shld.app.
  • Optional: an app directory with lockfiles to check too, such as /srv/app or /var/www. A server built from distribution packages alone, such as a BigBlueButton server, needs none. The script refuses /, and it refuses a directory that the service cannot read, such as a home directory closed to other users.
  • A server without shld. To upgrade an existing install, follow Update shld and roll back.

We tested the full install on Debian 12 on arm64 with systemd 252 and in an Ubuntu 24.04 container on arm64 with systemd 255, and the download-only mode on Debian 12 on amd64. On 2026-11-23 we installed with and without an app directory, and through the terminal question, in Debian 12 and Ubuntu 24.04 containers on arm64. An Ubuntu 18.04 container with systemd 237 stopped before the download.

Run it

  1. Install shld.
curl -fsSL https://shld.app/install.sh | sudo sh

In a terminal, the script asks for an app directory. Press Enter to skip it, or type a path such as /srv/app. The script asks again if the path fails a check. Without a terminal, it skips the question.

To name the app directory up front, add --root:

curl -fsSL https://shld.app/install.sh | sudo sh -s -- --root /srv/app

Without an app directory, the service watches /usr/local/share/shld/no-app-directory, an empty directory the script creates for it. To add an app directory later, run sudo shld root /srv/app.

The script installs /usr/local/bin/shld and the shld.service unit, then enables and starts the service. It waits up to 15 seconds and reports success only when the service stays running and logs its first scan.

To install without starting, add --no-start to the command. Start the service later with this command:

sudo systemctl enable --now shld.service
  1. Connect the server to your shld account.
sudo shld auth login

shld connects to https://api.shld.app, the service every account uses. Only a company with a dedicated instance names its own address, with sudo shld auth login --server <address>.

Open the link it prints, sign in with your email, and approve the server. A new email gets a free account. Approve a new server shows each screen.

  1. Check that monitoring is on.
sudo shld status

What it checks

The script installs one pinned release, v0.1.0-pilot.20261125.1. Before it changes anything on the server, it checks:

  • that the service's unprivileged user can reach and read the app directory, if you gave one
  • the release signing key against a fingerprint pinned in the script
  • the signature on the SHA256SUMS file
  • the archive checksum
  • the archive's file list, which must match the expected files exactly, with no links or special files
  • that the downloaded shld binary runs on your server

If any check fails, the script stops and installs nothing.

If you'd rather copy the files yourself

Use --download-only. It runs every check above, saves the verified files in a new temporary directory, prints its path, and installs nothing. It needs neither root nor systemd.

curl -fsSL https://shld.app/install.sh | sh -s -- --download-only

In the printed directory, copy bin/shld to /usr/local/bin and deploy/shld.service to /etc/systemd/system. Or run the bundled installer from that directory:

sudo ./scripts/install.sh --binary ./bin/shld --systemd --root /srv/app

The bundled installer needs --root. Without an app directory, create an empty one and use it:

sudo install -d -m 0755 /usr/local/share/shld/no-app-directory
sudo ./scripts/install.sh --binary ./bin/shld --systemd --root /usr/local/share/shld/no-app-directory

The bundled installer does not start the service. Start it with sudo systemctl enable --now shld.service, then continue from step 2 above.

If it stops

The script prints the reason and exits. It names one of these problems.

  • macOS. shld runs on Linux servers. Connect to the server, for example over SSH, and run the command there.
  • Another operating system. shld supports Linux only.
  • Another architecture. Releases exist for amd64 and arm64 only.
  • A missing tool. Install curl, openssl, tar, or sha256sum, then run the command again.
  • Not root. Keep sudo before sh in the command.
  • No systemd. Use --download-only and follow the install docs.
  • systemd older than 245. The script names the version it found. Upgrade the operating system to Ubuntu 20.04 or later, or Debian 11 or later.
  • shld is already installed. The script sets up new servers only. Follow Update shld and roll back. To add or change the app directory, run sudo shld root /srv/app.
  • A problem with --root. Give an absolute path to an existing directory, other than /. Use letters, digits, /, ., _, and - only. Or leave out --root to skip the app directory.
  • The service cannot read --root. The service runs as its own unprivileged user, so every directory on the path needs search permission for other users, and the directory itself needs read permission too. The script names the first directory the service cannot open. Choose a directory outside home directories, such as /srv/app, or run the chmod o+x and chmod o+rx commands the script prints. Those commands give every account on the server the same access.
  • A failed download. Check that the server reaches downloads.shld.app over HTTPS, then run the command again.
  • A failed key, signature, checksum, or file-list check. The script installed nothing. Do not work around the check. Report it to the shld team.
  • The binary does not run on this server. The script installed nothing. Report the server's distribution and architecture to the shld team through the contact form.
  • The service did not start or stopped after it started. The script prints the last five lines of the service log, then stops and disables the service so it does not restart in a loop. Fix the cause in the log, then run sudo systemctl enable --now shld.service.
  • The service logged no scan within 15 seconds. The service keeps running. Check journalctl -u shld.service -n 20 again in a minute. A line that starts with {"scanned_at" means the first scan finished.