python3 -m pip install --upgrade rpi-remote --user
echo "[Unit]
Description=rpi_remote service
After=multi-user.target
[email protected]
[Service]
User=${USER}
Type=simple
Environment="LC_ALL=C.UTF-8"
Environment="LANG=C.UTF-8"
ExecStart=${HOME}/.local/bin/rpi-remote
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target" | sudo tee /etc/systemd/system/rpi-remote.service
sudo systemctl daemon-reload
sudo systemctl enable rpi-remote.service
sudo systemctl start rpi-remote.service
Config file path: ~/.config/rpi_remote/config.ini
This file automatically generated when the service starts. See the example below.
[connection]
server_host = localhost
server_port = 80 # 443 in case of https
ssl = true # true/false
ssh_username = root
ssh_port = 22
period_time_sec = 30
client_name = test_client
disk_path = /media/HDD
journalctl -fu rpi-remote