Install
This page gets the ricochet binary onto your machine. Pick one of three routes: a release archive, a .deb
package for Debian or Ubuntu, or a build from source. You need PostgreSQL in every case; set it up next in
Database setup.
Release assets
Section titled “Release assets”Each release on GitHub carries these files:
| File | Contents |
|---|---|
ricochet_1.4.1_linux_amd64.tar.gz |
Linux x86-64 binary |
ricochet_1.4.1_linux_arm64.tar.gz |
Linux ARM64 binary |
ricochet_1.4.1_darwin_amd64.dmg |
macOS Intel binary, signed and notarized, in a disk image |
ricochet_1.4.1_darwin_arm64.dmg |
macOS Apple silicon binary, signed and notarized, in a disk image |
ricochet_1.4.1_windows_amd64.zip |
Windows x86-64 binary (ricochet.exe) |
ricochet-server_1.4.1_amd64.deb |
Debian/Ubuntu package, x86-64 |
ricochet-server_1.4.1_arm64.deb |
Debian/Ubuntu package, ARM64 |
SHA256SUMS |
SHA-256 checksum of every file above |
Download URLs take the form https://github.com/stephanfeb/go-ricochet/releases/download/v1.4.1/<file>.
The binaries are statically linked (built with CGO_ENABLED=0), so they have no runtime dependencies.
From a release archive
Section titled “From a release archive”Download the archive for your platform and the checksum file, verify, then unpack:
VERSION=1.4.1ASSET=ricochet_${VERSION}_linux_amd64.tar.gzBASE=https://github.com/stephanfeb/go-ricochet/releases/download/v${VERSION}
curl -LO "$BASE/$ASSET"curl -LO "$BASE/SHA256SUMS"sha256sum --check --ignore-missing SHA256SUMS
tar -xzf "$ASSET"cd ricochet_${VERSION}_linux_amd64./ricochet --versionOn macOS the binary comes in a disk image, signed with a Developer ID and notarized by Apple, so macOS runs a
downloaded copy. sha256sum is not installed by default; check the one line you need with shasum. Then copy
the directory out of the image:
VERSION=1.4.1ASSET=ricochet_${VERSION}_darwin_arm64.dmg # darwin_amd64 on an Intel MacBASE=https://github.com/stephanfeb/go-ricochet/releases/download/v${VERSION}
curl -LO "$BASE/$ASSET"curl -LO "$BASE/SHA256SUMS"grep "$ASSET" SHA256SUMS | shasum -a 256 -c -
hdiutil attach -nobrowse -readonly "$ASSET"cp -R "/Volumes/ricochet ${VERSION} arm64/ricochet_${VERSION}_darwin_arm64" .hdiutil detach "/Volumes/ricochet ${VERSION} arm64"cd ricochet_${VERSION}_darwin_arm64./ricochet --versionEach archive unpacks, and each disk image holds, a directory named after the file, with:
ricochet(orricochet.exeon Windows): the serverschema.sql: the PostgreSQL schemaconfig.example.yaml: every config key with its default and an explanationREADME.mdandLICENSE
--version prints ricochet 1.4.1.
To install system-wide, copy the binary somewhere on your PATH, for example /usr/local/bin/ricochet. The
server reads /etc/ricochet/config.yaml automatically when that file exists, so config.example.yaml is a good
starting point for it.
From the Debian package
Section titled “From the Debian package”The .deb is the most complete install on Debian and Ubuntu. It runs the server under supervisord as a
dedicated user.
VERSION=1.4.1BASE=https://github.com/stephanfeb/go-ricochet/releases/download/v${VERSION}
curl -LO "$BASE/ricochet-server_${VERSION}_amd64.deb"curl -LO "$BASE/SHA256SUMS"sha256sum --check --ignore-missing SHA256SUMS
sudo apt install ./ricochet-server_${VERSION}_amd64.debThe package depends on supervisor and postgresql-client, which apt installs for you. It does not install
the PostgreSQL server.
What the package installs
Section titled “What the package installs”| Path | What it is |
|---|---|
/opt/ricochet/ricochet_server |
The server binary |
/opt/ricochet/run.sh |
Startup wrapper: reads /etc/ricochet/env, starts the server with --production |
/opt/ricochet/health_check.sh |
Health check against the ops listener |
/opt/ricochet/schema.sql |
The PostgreSQL schema |
/etc/ricochet/config.yaml |
Config file, comments only as shipped (conffile) |
/etc/ricochet/config.yaml.example |
Every key, documented |
/etc/ricochet/env.example |
Template for the environment file |
/etc/ricochet/env |
Created from env.example on first install, mode 640, owner root:ricochet |
/etc/supervisor/conf.d/ricochet.conf |
supervisord program definition (conffile) |
/var/lib/ricochet/ |
Working directory; the identity key lives in sf_storage/ under it |
/var/log/ricochet/ |
stdout.log and stderr.log |
The install also creates a ricochet system user. The package ships no systemd unit; supervisord runs the
server. See Process supervision.
Finish the install
Section titled “Finish the install”-
Edit
/etc/ricochet/env. SetDB_PASSWORDandEXTERNAL_IP(the public address clients reach this host on). SetDB_SSLMODE=disableonly if PostgreSQL runs on the same host or a private network you trust. -
Create the database and load the schema. See Database setup.
-
Start the server:
Terminal window sudo supervisorctl start ricochetsudo supervisorctl status ricochet
run.sh passes these variables from /etc/ricochet/env to the server:
| Variable | Default | Becomes |
|---|---|---|
DB_PASSWORD |
none, required | RICOCHET_PG_PASSWORD in the server’s environment |
EXTERNAL_IP |
empty | --external-ip $EXTERNAL_IP: every listen address is advertised on it |
LISTEN_PORT |
unset (config or preset, 55223) | --port: moves every listen address to this port |
DB_HOST |
localhost |
--pg-host |
DB_PORT |
5432 |
--pg-port |
DB_NAME |
ricochet |
--pg-database |
DB_USER |
ricochet |
--pg-username |
DB_SSLMODE |
require |
--pg-sslmode |
It also passes --data-dir /var/lib/ricochet/sf_storage. Flags override /etc/ricochet/config.yaml, so set
these values in env, not in the config file.
To build the .deb yourself, run scripts/package-deb.sh on Linux (VERSION=1.4.1 ARCH=amd64), or
./build-deb.sh on macOS, which runs the same script inside Docker.
From source
Section titled “From source”You need Go 1.25.7 or later; this is the floor go.mod sets. An older go command downloads the right toolchain
itself under the default GOTOOLCHAIN=auto.
git clone --branch v1.4.1 https://github.com/stephanfeb/go-ricochet.gitcd go-ricochetgo build -trimpath -ldflags "-X main.version=1.4.1" -o ricochet ./cmd/ricochet./ricochet --versionWithout the -ldflags setting, --version prints ricochet dev. The release builds use
CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=<version>".
The load-testing tool is not in the release assets. Build it the same way:
go build -o ricochet-bench ./cmd/ricochet-benchSee Benchmarking.