Files
fleet-node-agent/install.txt
T
2026-04-26 16:17:47 +02:00

100 lines
3.7 KiB
Plaintext

============================================================
INSTALLATION GUIDE - FLEET CONTROL AGENT
============================================================
This script is meant to be installed on each remote node
(e.g., Raspberry Pi, MMDVM host). [cite: 11]
------------------------------------------------------------
1. PRE-REQUISITES & INSTALLATION
------------------------------------------------------------
Ensure Python 3 is installed. [cite: 12]
Install dependencies:
sudo git clone https://git.arifvg.it/iv3jdv/fleet-control-agent.git /opt/fleet-control-agent
cd /opt/fleet-control-agent
sudo python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt [cite: 12]
------------------------------------------------------------
2. CONFIGURATION (CRITICAL STEPS)
------------------------------------------------------------
A) MAIN CONFIG:
cp node_config.json.example node_config.json
Edit 'node_config.json' with a unique 'client_id' and
your MQTT broker credentials. [cite: 13]
B) MONITORING PROCESSES (process_list.txt):
cp process_list.txt.example process_list.txt
Add the names of services you want to monitor (one per line). [cite: 8]
Example: mmdvmhost
C) REMOTE EDITING FILES (file_list.txt):
cp file_list.txt.example file_list.txt
Add the full absolute paths of the .ini files you want
to edit remotely from the dashboard. [cite: 10]
Example: /etc/MMDVMHost.ini
D) OPTIONAL:
Install 'RPi.GPIO' if you want hardware reset. [cite: 14]
------------------------------------------------------------
3. RUNNING AS A SERVICE (SYSTEMD)
------------------------------------------------------------
1. sudo cp fleet-agent.service /etc/systemd/system/
2. sudo systemctl daemon-reload
3. sudo systemctl enable fleet-agent
4. sudo systemctl start fleet-agent
============================================================
GUIDA ALL'INSTALLAZIONE - AGENTE REMOTO
============================================================
Questo script va installato su ogni nodo remoto
(es. Raspberry Pi, MMDVM host). [cite: 11]
------------------------------------------------------------
1. REQUISITI E INSTALLAZIONE
------------------------------------------------------------
Assicurarsi di avere Python 3 installato. [cite: 15]
Installazione:
sudo git clone https://git.arifvg.it/iv3jdv/fleet-control-agent.git /opt/fleet-control-agent
cd /opt/fleet-control-agent
sudo python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt [cite: 15]
------------------------------------------------------------
2. CONFIGURAZIONE (PASSAGGI CRITICI)
------------------------------------------------------------
A) CONFIGURAZIONE PRINCIPALE:
cp node_config.json.example node_config.json
Modifica 'node_config.json' inserendo un 'client_id'
univoco e i dati del server MQTT. [cite: 16]
B) MONITORAGGIO PROCESSI (process_list.txt):
cp process_list.txt.example process_list.txt
Aggiungi i nomi dei servizi da monitorare (uno per riga). [cite: 8]
Esempio: mmdvmhost
C) EDITING FILE REMOTO (file_list.txt):
cp file_list.txt.example file_list.txt
Aggiungi i percorsi assoluti dei file .ini che desideri
poter modificare remotamente dalla dashboard. [cite: 10]
Esempio: /etc/MMDVMHost.ini
D) OPZIONALE:
Installa 'RPi.GPIO' per il reset hardware. [cite: 17]
------------------------------------------------------------
3. ESECUZIONE COME SERVIZIO (SYSTEMD)
------------------------------------------------------------
1. sudo cp fleet-agent.service /etc/systemd/system/
2. sudo systemctl daemon-reload
3. sudo systemctl enable fleet-agent
4. sudo systemctl start fleet-agent
============================================================