Install on Linux
For Erebor v0.2.1 · Updated 2 December 2026 · Source on GitHub
Linux (Ubuntu 22.04+ x64)
sudo apt install ./Erebor_<version>_amd64.deb- Runtime dependencies:
libwebkit2gtk-4.1-0,libgtk-3-0. - Temperature needs sensors exposed through hwmon (
lm-sensors). Power uses RAPL (/sys/class/powercap), often readable only by root: in that case set an estimate in Settings › Electricity.
Miners
On first run Erebor downloads the pinned official release of each miner it needs from GitHub and checks its SHA-256; in the advanced settings you can pick an existing binary instead (marked "not verified"). XMRig's huge pages and MSR mod may need administrator rights: Erebor doesn't ask for them and doesn't change the system.
Command line (Linux, macOS, WSL2)
curl -fsSL https://raw.githubusercontent.com/samuelviviani/erebor/main/scripts/install.sh | sh
# downloads the signed binary, checks its SHA-256, installs it into ~/.local/bin and starts the setup
# from a checkout, building it: sh scripts/install.sh --from-source
Commands, building on Ubuntu and troubleshooting: docs/CLI.md. The background agent and the optional user service: docs/AGENT.md.
Uninstall
Uninstall the app from the system. Delete local data from Settings › Data › "Delete all
local data" (or delete the data folder shown there). CLI: erebor service off, then remove
~/.local/bin/erebor and the data folder (docs/CLI.md).
Common errors
| Message | Fix |
|---|---|
| "Install or select a miner" | Let the setup install it, or erebor miner install <miner> |
| "The miner binary changed after verification" | Reinstall or select it again: the file was modified |
| "Blocked by the antivirus" | Allow Erebor's miners folder (the app offers to do it on Windows) |
| Pool unreachable | Check firewall, network or company proxy |
Erebor Agent on Linux
The agent mines on the computer and lets paired controllers manage it. It runs as a systemd service, as an unprivileged user, and keeps mining when the controller is closed, off or unreachable.
Install (systemd)
curl -fsSL https://raw.githubusercontent.com/samuelviviani/erebor/main/scripts/install-agent.sh -o install-agent.sh
less install-agent.sh # read what it does
sh install-agent.sh # asks for sudo
# options: --listen 100.64.0.5:7420 (VPN only) · --no-discovery · --version vX.Y.Z · --from-source
It installs the signed erebor binary of the latest release (SHA-256 checked) in
/usr/local/bin with erebor-agent linked to it, creates the system user erebor-agent
(no login shell; added to video/render to read GPUs), state in /var/lib/erebor-agent
(0700), the unit packaging/linux/erebor-agent.service
(hardened: NoNewPrivileges, ProtectSystem=strict, ProtectHome, PrivateTmp), turns
remote control on and starts the service.
Manual install from a build:
cargo build --release --locked -p erebor-cli
sudo install -m 755 target/release/erebor /usr/local/bin/erebor
sudo ln -sf /usr/local/bin/erebor /usr/local/bin/erebor-agent
sudo useradd --system --home-dir /var/lib/erebor-agent --shell /usr/sbin/nologin erebor-agent
sudo install -d -m 700 -o erebor-agent -g erebor-agent /var/lib/erebor-agent
sudo install -m 644 packaging/linux/erebor-agent.service /etc/systemd/system/
sudo -u erebor-agent erebor-agent init
sudo systemctl daemon-reload && sudo systemctl enable --now erebor-agent
Use
sudo systemctl status erebor-agent
journalctl -u erebor-agent -f # logs (journald)
sudo -u erebor-agent erebor-agent pair # one-time code for a controller
sudo -u erebor-agent erebor-agent status # remote setup, controllers, running?
sudo -u erebor-agent erebor-agent controllers
sudo -u erebor-agent erebor-agent revoke Laptop
sudo -u erebor-agent erebor-agent asic add 10.0.10.21 --name S19-A # gateway
sudo systemctl restart erebor-agent # after init/disable/--listen changes
Run the erebor-agent commands as the service user (sudo -u erebor-agent): as root they
refuse, because files written by root would be unreadable by the service.
Firewall (if enabled): allow TCP and UDP 7420 from your LAN/VPN only, e.g.
sudo ufw allow from 192.168.1.0/24 to any port 7420.
Start mining with the computer: set startOnLaunch from a controller (device page → Edit
as JSON, or a profile) or sudo -u erebor-agent erebor --data-dir /var/lib/erebor-agent config set startOnLaunch true.
Without systemd
erebor-agent start runs in the foreground; use any supervisor (runit, s6, a container).
A per-user service also exists: erebor agent install-service (see AGENT.md).
GPU power limit
The NVIDIA driver takes a power limit only from an administrator, and the agent runs as you. To let Erebor set the limit chosen in the app (and restore stock when mining stops), run once on that computer:
erebor gpu allow
It asks your password and installs /usr/local/libexec/erebor-gpu-power (it can only set
the cards' power limit) and /etc/sudoers.d/erebor-gpu-power (lets your user run just
that, without a password). Delete both files to take the permission back.
Uninstall
sh install-agent.sh --uninstall # keeps /var/lib/erebor-agent
sh install-agent.sh --uninstall --purge # deletes it too (keys, statistics)
Updates
The agent checks the signed releases every hour and replaces its binary only when the
minisign signature matches the project key. Under the system service the binary in
/usr/local/bin belongs to root, so updates are installed by running the installer again
(same command); the agent restarts and resumes mining. Downgrades: --version vX.Y.Z.
Tested: the agent and its remote protocol run on macOS and cross-compile for Linux (glibc 2.31); the systemd unit and the installer are not yet verified on a real Linux machine.