DocumentationBuild. Deploy. Operate.
DocsDeployment

Installing the Daemon

On this page 8 sections

The QSCS bootstrap installer sets up the native daemon, initial configuration and systemd service on a 64-bit x86 Linux host. The steps below use apt, as available on Debian and Ubuntu. No account registration is required to start a free deployment with unlimited nodes, domains and origins.

For containers, use docker.io/spooksystems/qscs:latest and follow Deploy on Kubernetes. The image uses its own foreground startup and persistent-volume layout; you do not run APT or systemd inside it.

Prerequisites

  • A 64-bit x86 Linux host with apt, systemd and sudo access, such as Debian or Ubuntu.
  • TCP ports 8080 for the public listener and 4443 for inter-node traffic, unless you choose different ports.
  • Outbound HTTPS (port 443) to spooksystems.org for enrollment and monitoring.spooksystems.org for operational reports. Both default addresses are supplied by QSCS.

On nodes with less than 1 GB RAM, we recommend disabling snapd if it is installed and no required applications depend on it. This reduces background memory use and activity that can compete with QSCS. See small-node guidance before disabling it.

Add the apt repository

sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg

sudo install -d -m 755 /usr/share/keyrings

curl -fsSL https://spooksystems.org/apt/qscs-archive-keyring.asc \
  | sudo gpg --dearmor -o /usr/share/keyrings/qscs-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/qscs-archive-keyring.gpg] https://spooksystems.org/apt stable main" \
  | sudo tee /etc/apt/sources.list.d/qscs.list

sudo apt-get update

Install the QSCS bootstrap service

sudo apt-get install qscs-bootstrap

The bootstrap installer sets up:

  • /opt/qscs/bin/qscs, the daemon binary.
  • /etc/qscs/qscs.conf, a starter configuration file.
  • /etc/systemd/system/qscs.service, a systemd unit.
  • /opt/qscs/pages/, built-in static error / probe pages.

Start a registration-free deployment

On a fresh first node, set AdvertisedPeer in the [QSCS Daemon] section of /etc/qscs/qscs.conf to an address the second node can reach on TCP 4443. Keep the supplied enrollment and monitoring addresses. Starting without existing enrollment or a registered-account license automatically creates an anonymous account handle and substrate and persists the credentials. No email, password or manual subscription is needed.

sudo systemctl start qscs
sudo qscs status

Add your application on the administrator node. Replace the hostname and upstream below. For a private upstream, set AllowPrivateBackends = true in the daemon configuration before starting it.

printf '%s\n' '{"origin":"app.example.com","backend_address":"https://upstream.example.com","proxy_all":0,"persist_cache":1}' | sudo qscs enrollment origin.put

For a second node, configure its own AdvertisedPeer and EnrollmentInviteFile before its first start, then securely deliver an invitation from the first node. Follow the invitation join instructions. Each node keeps its own state and credentials; never copy an enrolled identity to another running node.

You can keep running without registration. To manage the deployment in the portal, claim it later using the account handle from sudo qscs status and proof from the unclaimed administrator. Retained telemetry becomes available in SpookVis; unclaimed operational reports have a 30-day retention period.

Activate directly with a registered account

This is an alternative for a fresh host you want to register directly to an existing account. It is not required for the free anonymous flow. If the node has already enrolled anonymously, claim that deployment to preserve its identity and state.

sudo qscs license <username>

This binds the node to your registered account. Preserve /etc/qscs and /opt/qscs across upgrades: they hold the native installation's configuration, credentials, identity and state.

Open the ports

If your host has a firewall (cloud security groups, ufw, nftables…), allow TCP 8080 from your application ingress and TCP 4443 between peers. If you change either port in qscs.conf, allow the new value instead. Use your own HTTPS ingress or reverse proxy for public TLS. Spook-managed DNS and certificates require registration and verified domain ownership; enrollment alone does not publish a hostname.

Next steps

For direct account licensing, continue to Joining a Cluster to wire it up to a domain.

Nodes with less than 1 GB RAM

On nodes with less than 1 GB RAM, we recommend disabling snapd if it is installed and no required applications depend on it. This reduces background memory use and activity that can compete with QSCS. Actual memory savings depend on the host and installed services.

If snapd is present, run snap list to review installed Snap applications. Keep snapd enabled if you rely on any of them, including management agents or certificate-renewal tools. Otherwise, stop the daemon and disable its normal boot and socket activation:

sudo systemctl disable --now snapd.service snapd.socket

This leaves installed Snap packages in place, but Snap management and automatic updates are unavailable while snapd is stopped. To restore normal operation:

sudo systemctl enable --now snapd.socket snapd.service

Upgrading

Subsequent versions are released through the same repository. Upgrade with:

sudo apt-get update
sudo apt-get install --only-upgrade qscs-bootstrap
sudo systemctl restart qscs

Review the upgrade guidance before changing versions.

Need a hand with your deployment?Contact support ↗Back to top ↑