Computing/NUT: Difference between revisions
From Cricalix.Net
mNo edit summary |
mNo edit summary |
||
| Line 3: | Line 3: | ||
=== Installation === | === Installation === | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
dnf install nut | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 17:17, 2 April 2026
Network UPS
Installation
dnf install nut
Configuration
For the Eaton Pro UPS, /etc/ups/ups.conf
[eaton650]
driver = "usbhid-ups"
port = "auto"
/etc/ups/upsd.conf
LISTEN * 3493
All other files were left at defaults from the RPM installs, bar this detritus from a polkit adventure - it may or may not still apply
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.systemd1.manage-units" &&
subject.user == "nut") {
return polkit.Result.YES;
}
});udev
ATTR{idVendor}=="0463", ATTR{idProduct}=="ffff", MODE="664", GROUP="nut"Runtime
systemctl start nut-serverThe script behind nut-server will spin up new systemctl services to handle the UPS.
Troubleshooting
Previous attempts got stuck on custom UPS definitions in systemd, with permissions not setting up correctly etc. Ended up blowing everything away and restarting from scratch with the NUT enumerator approach.