Build from Source
Building Syntropy Agent from the Source
Building from Source
If you would like to install your agent using our source, you can do so through our GitHub repo.
Prerequisites
To run an installation, you need to install WireGuard® first. Starting from 5.6.x, Linux kernel supports wireguard by default.
WireGuard® installation: https://www.wireguard.com/install/
Running as root
At the moment, the Syntropy Agent requires running as
root
user.
Mandatory Variables
Variable Name | Description |
---|---|
SYNTROPY_API_KEY | SYNTROPY Network Agent Token (String) |
API Key Example
SYNTROPY_API_KEY=nQlSAezB8yxncfPeW#$2mKR4UTqEQ2R5
Installation
1. Clone Repo
git clone https://github.com/SyntropyNet/syntropy-agent.git
2. Build Syntropy Agent
cd syntropy-agent
sudo make
2. Create/Edit /etc/systemd/system/syntropy-agent.service.d/10-vars.conf
file
/etc/systemd/system/syntropy-agent.service.d/10-vars.conf
file[Service]
# Required parameters
Environment=SYNTROPY_API_KEY=<<agent_token>>
3. Create /etc/systemd/system/syntropy-agent.service
file:
/etc/systemd/system/syntropy-agent.service
file:[Unit]
Description=Syntropy Platform Agent
After=multi-user.target
[Service]
Type=simple
Restart=always
RestartSec=1
ExecStart=/usr/local/bin/syntropy_agent run
[Install]
WantedBy=multi-user.target
4. Start Syntropy Agent
sudo systemctl daemon-reload
sudo systemctl enable --now syntropy-agent
Updated 11 months ago