Skip to content

Manual Installation

jack edited this page Apr 1, 2024 · 2 revisions

📥 Download

First, you will need the binary file. You can either download the pre-built binaries or download it using cargo.

Pre-built binaries

Pre-built binaries are available for download on the releases page

To be able to run the binary anywhere on your system, you can move it to /usr/local/bin:

sudo mv rustberry-poe-monitor /usr/local/bin

Cargo

Install with cargo:

cargo install rustberry-poe-monitor

📝 Configuration

You should be able to run the binary file now:

rustberry-poe-monitor

There are 2 CLI arguments available:

  • --temp-on - The temperature at which the fan should turn on (default: 60)
  • --temp-off - The temperature at which the fan should turn off (default: 50)

Example:

rustberry-poe-monitor --temp-on 65 --temp-off 55

To run the program on startup, you can create a systemd service:

sudo nano /etc/systemd/system/rustberry-poe-monitor.service

Paste the following into the file (replace yourUser with your actual user name):

[Unit]
Description=RustBerry PoE Monitor
After=network.target

[Service]
ExecStart=/home/yourUser/.cargo/bin/rustberry-poe-monitor
User=yourUser
Restart=always
RestartSec=30

[Install]
WantedBy=multi-user.target

Then enable the service:

sudo systemctl daemon-reload
sudo systemctl enable rustberry-poe-monitor.service
sudo systemctl start rustberry-poe-monitor.service
Clone this wiki locally