Installation
Every release ships prebuilt, checksum-verified binaries for:
| Platform | Target | Notes |
|---|---|---|
| Linux x86_64 | x86_64-unknown-linux-musl | fully static — runs on any distro |
| Linux aarch64 | aarch64-unknown-linux-musl | fully static |
| Linux i686 | i686-unknown-linux-musl | fully static |
| Linux armv7 (hard-float) | armv7-unknown-linux-musleabihf | fully static |
| Linux armv6 (hard-float) | arm-unknown-linux-musleabihf | fully static |
| macOS Apple Silicon | aarch64-apple-darwin | |
| macOS Intel | x86_64-apple-darwin | |
| Windows x64 | x86_64-pc-windows-msvc | |
| Windows ARM64 | aarch64-pc-windows-msvc | |
| Windows x86 | i686-pc-windows-msvc | |
| FreeBSD x86_64 | x86_64-unknown-freebsd | |
| FreeBSD i686 | i686-unknown-freebsd | |
| Android (Termux) | aarch64-linux-android | installs to $PREFIX/bin |
Asset names are version-less (ferrixd-<target>.tar.gz / .zip), so releases/latest/download/… URLs are stable. Every download is verified against its published SHA-256 checksum by the installer.
Each release also ships:
ferrixd-web.tar.gz— the static web client and admin dashboard, the same for every platform (see below);- a container image for
linux/amd64andlinux/arm64on the GitHub Container Registry, with the web client inside (see Docker).
One-line install
Linux · macOS · FreeBSD · Android (Termux):
curl -fsSL https://raw.githubusercontent.com/josunlp/ferrixd/main/scripts/install.sh | shWindows (PowerShell):
irm https://raw.githubusercontent.com/josunlp/ferrixd/main/scripts/install.ps1 | iexWhere the binary lands:
| Context | Directory |
|---|---|
| Unix, run as root | /usr/local/bin |
| Unix, run as user | ~/.local/bin |
| Termux | $PREFIX/bin |
| Windows | %LOCALAPPDATA%\Programs\ferrixd (added to the user PATH) |
Override the directory with --dir <PATH> (PowerShell: -Dir) or the FERRIXD_INSTALL_DIR environment variable.
Re-running is safe
The install command is idempotent — re-running it switches you to the latest release. There is also an explicit update verb (below) that finds your existing binary and reports old → new.
Update
curl -fsSL https://raw.githubusercontent.com/josunlp/ferrixd/main/scripts/install.sh | sh -s -- update& ([scriptblock]::Create((irm https://raw.githubusercontent.com/josunlp/ferrixd/main/scripts/install.ps1))) updateupdate locates the installed binary (on PATH first, then the default directories) and replaces it in place via a staged copy and an atomic rename — safe to run while the server is running; restart to pick up the new version.
Uninstall
curl -fsSL https://raw.githubusercontent.com/josunlp/ferrixd/main/scripts/install.sh | sh -s -- uninstall& ([scriptblock]::Create((irm https://raw.githubusercontent.com/josunlp/ferrixd/main/scripts/install.ps1))) uninstallUninstall removes only the binary. Your configuration and SQLite database stay where they are.
Pinning a version
curl -fsSL https://raw.githubusercontent.com/josunlp/ferrixd/main/scripts/install.sh | sh -s -- install --version v1.4.1& ([scriptblock]::Create((irm https://raw.githubusercontent.com/josunlp/ferrixd/main/scripts/install.ps1))) install v1.4.1Other installer flags: --dry-run prints what would happen without touching anything.
The web client bundle
The installer puts only the ferrixd binary in place. To serve the browser client, unpack the release's web bundle where [web] root points (default /usr/share/ferrixd/web):
mkdir -p /usr/share/ferrixd/web
curl -fsSL https://github.com/josunlp/ferrixd/releases/latest/download/ferrixd-web.tar.gz \
| tar -xz -C /usr/share/ferrixd/webIf you pinned the server to a version, fetch the bundle of the same release instead:
curl -fsSL https://github.com/josunlp/ferrixd/releases/download/v1.4.1/ferrixd-web.tar.gz \
| tar -xz -C /usr/share/ferrixd/webRe-extract it after an update so the client matches the server. Then enable [web] — see Web Client & Admin.
Docker
Prebuilt images are published for every release:
docker pull ghcr.io/josunlp/ferrixd:latest # or :1.4.1, :1.4, :1
docker run --rm ghcr.io/josunlp/ferrixd --versionThey contain the static binary and the web client (/usr/share/ferrixd/web) on Alpine, run as a non-root user (uid 10001), and expose 6697 (TLS), 6667 (plaintext, if enabled), 6666 (S2S), 8443 (web) and 9090 (metrics). Everything below works the same with ghcr.io/josunlp/ferrixd in place of a locally built ferrixd.
To build the image yourself, the repository ships a multi-stage Dockerfile (static musl build in rust:alpine, dropped into a small Alpine runtime, running as a non-root user) and a docker-compose.yml with ports, volumes, and a healthcheck.
docker build -t ferrixd .
# Scaffold a config into the current directory, then edit it.
# --user makes the container write the file as you, not uid 10001.
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD":/etc/ferrixd ferrixd gen-config
# Validate, then run:
docker run --rm -v "$PWD/ferrixd.toml":/etc/ferrixd/ferrixd.toml:ro ferrixd check
docker run -d --name ferrixd -p 6697:6697 \
-v "$PWD/ferrixd.toml":/etc/ferrixd/ferrixd.toml:ro \
-v ferrixd-data:/var/lib/ferrixd \
ferrixd
# …or the same via compose:
docker compose up -dPaths inside the container:
- the config is expected at
/etc/ferrixd/ferrixd.toml(the image workdir, so the default./ferrixd.tomlresolves there); - durable state belongs on the
/var/lib/ferrixdvolume — set[persistence] path = "/var/lib/ferrixd/ferrixd.db"so history and registrations survive container recreation; - real TLS certificates are extra read-only mounts referenced from the config;
self_signed_dev = trueneeds none.
docker stop (SIGTERM) triggers the same graceful shutdown as Ctrl-C. Every utility subcommand works through the same entrypoint:
docker run --rm -it ferrixd hash-password # -it: the prompt is interactive
docker run --rm ferrixd --helpSee Production Deployment for a full compose + systemd walkthrough.
Building from source
You need a Rust toolchain, 1.95 or newer (rust-toolchain.toml selects current stable, and rustup installs it automatically):
git clone https://github.com/josunlp/ferrixd
cd ferrixd
cargo build --release -p ferrixd
# → target/release/ferrixdNo C toolchain gymnastics required in the default configuration — SQLite is bundled (rusqlite with the bundled feature) and the WASM interpreter is pure Rust. The web client is built separately with Node 24 (cd web && npm ci && npm run build → web/dist). Details, tests, fuzzing, and cross-compilation notes: Building & Testing.
Shell completions
The binary generates its own completion scripts:
ferrixd completions bash > /etc/bash_completion.d/ferrixd
ferrixd completions zsh > "${fpath[1]}/_ferrixd"
ferrixd completions fish > ~/.config/fish/completions/ferrixd.fishVerifying a download manually
Each release asset has a companion .sha256 file plus a combined SHA256SUMS:
curl -fsSLO https://github.com/josunlp/ferrixd/releases/latest/download/ferrixd-x86_64-unknown-linux-musl.tar.gz
curl -fsSLO https://github.com/josunlp/ferrixd/releases/latest/download/ferrixd-x86_64-unknown-linux-musl.tar.gz.sha256
sha256sum -c ferrixd-x86_64-unknown-linux-musl.tar.gz.sha256