Install on Linux
Copies this page as Markdown with context, so an AI can walk you through your case step by step.
One command and under a minute. No inbound port needs to be opened.
Requirements
- Linux x86_64 or arm64 with systemd: Ubuntu 20.04+, Debian 11+, RHEL, Alma or Rocky 8+.
- Python 3.11 or newer. Check with
python3 --version. On Ubuntu 22.04 or older:sudo apt install python3.11 python3.11-venv. - Optional:
g++10 or newer, to build the native C++20 collector. Without it the Python collector is used, which works the same and uses a bit more. - Outbound HTTPS (port 443) to
ganyant.comand*.r2.cloudflarestorage.com. sudoaccess.
1. Generate the key
- In the dashboard, open Servers.
- In Agent API keys, type a name (for example “production”) and click Generate API key.
- Copy the Install command that appears. The key starts with
gyk_and is shown only once.
One key works for every server in the workspace. If you want to be able to revoke each server separately, generate one per server.
2. Install
Paste the command on the server:
curl -fsSL https://ganyant.com/install.sh | sudo GANYANT_KEY=gyk_… sh
The installer:
- Creates the system user
ganyant(no shell) and adds it toadmandsystemd-journal, so it can read SSH login attempts. - Downloads the agent to
/opt/ganyantand its dependencies into an isolated virtual environment. It doesn’t touch the system Python. - Builds the native collector if
g++is there. - Writes
/etc/ganyant/agent.tomlwith 600 permissions and a random encryption passphrase. If the file already exists, it leaves it alone. - Registers and starts the
ganyant-agentservice, and checks that it’s running.
To skip compiling even if g++ is present, add GANYANT_NO_NATIVE=1:
curl -fsSL https://ganyant.com/install.sh | sudo GANYANT_KEY=gyk_… GANYANT_NO_NATIVE=1 sh
3. Check
A few seconds later the server shows up in Servers as online. From the machine:
systemctl status ganyant-agent
journalctl -u ganyant-agent -n 50 --no-pager
The status should say active (running). On startup the agent logs a line like this (in Spanish):
ganyant-agent 1.0.0 · registrado como web-01 (modo full) · recolector nativo C++20
The mode is full if your plan includes live telemetry (Pro and Agency) or backup if it only runs backups (Starter).
Files
| What | Where |
|---|---|
| Program | /opt/ganyant |
| Configuration | /etc/ganyant/agent.toml |
| Logs | journalctl -u ganyant-agent |
| Service | /etc/systemd/system/ganyant-agent.service |
| Command | /usr/local/bin/ganyant-agent |
Common problems
| Symptom | What to check |
|---|---|
Se necesita Python 3.11 o superior (Python 3.11+ needed) |
Install Python 3.11+ and run the installer again |
GANYANT_KEY con formato inválido (invalid key format) |
Copy the whole key (gyk_ plus 48 characters), with no spaces or quotes |
| The service doesn’t start | journalctl -u ganyant-agent -n 50 --no-pager shows the exact reason |
401 in the logs |
The key was revoked or belongs to another workspace: generate a new one, change key in agent.toml and restart |
| It doesn’t show in the dashboard | Test outbound access: curl -sI https://ganyant.com/api/health should answer 200 |
| SSH attempts aren’t detected | id ganyant should list adm or systemd-journal; if you added it by hand, restart the service |