Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Install the agent

Status. The hosted QSP service is not open yet. To use the agent you need an account from a service operator (see Register your station) or your own self-hosted instance.

The agent is shipped as a .deb package for Debian-based Linux, including Raspberry Pi OS and Ubuntu, for 64-bit ARM (arm64) and Intel/AMD (amd64). There are three ways to install it. Use the APT repository unless you have a reason not to: apt then installs the agent’s dependencies and brings every new version with apt upgrade.

Check your architecture first. On a Raspberry Pi with 64-bit Raspberry Pi OS this prints arm64:

dpkg --print-architecture

Add the repository and its signing key once:

curl -fsSL https://f4fez.github.io/f4fez-apt-repo/pubkey.gpg \
  | sudo gpg --dearmor -o /usr/share/keyrings/f4fez-apt-repo.gpg

echo "deb [signed-by=/usr/share/keyrings/f4fez-apt-repo.gpg] https://f4fez.github.io/f4fez-apt-repo stable main" \
  | sudo tee /etc/apt/sources.list.d/f4fez-apt-repo.list

sudo apt update

Then install the agent:

sudo apt install qsp-agent

New releases are published to the repository automatically. To update later:

sudo apt update && sudo apt upgrade

To install a specific version, list them with apt-cache madison qsp-agent and run sudo apt install qsp-agent=VERSION.

Use version 0.1.1 or later. The 0.1.0 package lacks some of its dependencies and fails to start on a clean system. apt install qsp-agent picks the newest version, which is fine.

Option 2: download the package

Without the repository, download the .deb for your architecture from the qsp-agent releases page (use the latest release) and install it. Replace the file name with the one you downloaded; the leading ./ makes apt read a local file and fetch the dependencies:

sudo apt install ./qsp-agent_VERSION_arm64.deb

You have to repeat this by hand for every new version.

Option 3: build from the sources

Use this for another architecture, a distribution that is not Debian-based, or to test a change. You need Rust 1.91 or later (install it with rustup) and the build dependencies. On Debian or Ubuntu:

sudo apt install --no-install-recommends \
  build-essential cmake git libasound2-dev libclang-dev libhamlib-dev pkg-config

Get the sources and build the release binary:

git clone https://github.com/Ham-QSP/qsp-agent.git
cd qsp-agent
cargo build --release --locked

The binary is target/release/qspd. On Debian-based systems you can turn it into the same package as the releases, and install that:

package/build-deb.sh
sudo apt install ./dist/qsp-agent_*.deb

Without a package, run the binary directly with target/release/qspd --config config.toml (see Configure the agent). You then manage the configuration file, the service user and the service yourself. The package does it for you.

What the package installs

WhatWhere
The program/usr/bin/qspd
The configuration file/etc/qsp-agent/config.toml
The systemd serviceqsp-agent.service

It also creates a dedicated system user and group named qsp-agent, which the service runs as.

Check the installation with qspd --version.

Next: Configure the agent.