I am using NUT on Linux Mint with no issues. Installed from PPA. However I have tried on 3 occasions to build from source for Solus 3 and have had no luck. Is there a possibility of NUT being built into a Flatpak so all distributions can use it. If it was available on Flathub it would be a simple and foolproof way of installing it. Many thanks for a great application.
On Sep 15, 2017, at 9:51 PM, MTS <mts5204 at bigpond.com> wrote:> > Is there a possibility of NUT being built into a Flatpak so all distributions can use it. > If it was available on Flathub it would be a simple and foolproof way of installing it.From http://flatpak.org/faq.html : "Can Flatpak be used on servers too? "Flatpak is designed to run inside a desktop session and relies on certain session services, such as a dbus session bus and a systemd --user instance. This makes Flatpak not a good match for a server." I am not familiar with Flatpak myself, but given the differences between all of the packages of NUT for various distros (especially in the way that they shut down the system and then the UPS), I don't know if it would be possible to reliably package anything more than the NUT-Monitor GUI for Flatpak.
Charles Lepple
2017-Sep-16 16:28 UTC
[Nut-upsuser] building on Solus (was: Flatpak request)
On Sep 15, 2017, at 11:15 PM, MTS <mts5204 at bigpond.com> wrote:> > Hi, > > I thought it might be problematic. I am really frustrated I cannot get it working on Solus. > I use Solus way more than Mint these days and it would be nice to have NUT working.If you describe the problems you are having when trying to build it, maybe we can help. Please use reply-all to keep the list CC'd.
Hi Charles, Thanks for your help. Seems to be mostly ok except am getting error access denied. See below. I see from searching this is a common error but so far I can't find a fix. This is how I configured things before make and install. created group nut nut:x:103: created system user ups with group nut. ups:x:123:103::/home/ups:/bin/bash Create statepath directory. sudo mkdir -p /var/state/ups sudo chmod 0770 /var/state/ups sudo chown root:nut /var/state/ups ./configure --prefix=/usr --with-usb --with-user=ups --with-group=nut --with-udev-dir=/etc/udev --with-drivers=blazer_usb Had to enable both these services. They weren't enabled by default. sudo systemctl enable nut-server sudo systemctl enable nut-monitor $ sudo /usr/sbin/upsmon -DD Network UPS Tools upsmon 2.7.4 ?? 0.000000??? fopen /var/run/upsmon.pid: No such file or directory ?? 0.000143??? UPS: defender at localhost (master) (power value 1) ?? 0.000270??? Using power down flag file /etc/killpower ?? 0.000422??? debug level is '2' ?? 0.003814??? Trying to connect to UPS [defender at localhost] ?? 0.004327??? Login on UPS [defender at localhost] failed - got [ERR ACCESS-DENIED] ?? 5.004467??? pollups: defender at localhost ?? 5.004630??? parse_status: [OL] ? 10.004764??? pollups: defender at localhost ? 10.004922??? parse_status: [OL] ? 15.005048??? pollups: defender at localhost ? 15.005208??? parse_status: [OL] ? 20.005319??? pollups: defender at localhost ? 20.005485??? parse_status: [OL] ? 25.005600??? pollups: defender at localhost ? 25.005762??? parse_status: [OL] ^C? 25.379863??? Signal 2: exiting ? 25.379899??? Dropping connection to UPS [defender at localhost] upsmon.pid is in /run directory. upsmon is looking for it in /var/run. /var/state/ups contains blazer_usb-defender, blazer_usb-defender.pid and upsd.pid. Any help would be greatly appreciated. On 17/09/17 02:28, Charles Lepple wrote:> On Sep 15, 2017, at 11:15 PM, MTS <mts5204 at bigpond.com> wrote: >> Hi, >> >> I thought it might be problematic. I am really frustrated I cannot get it working on Solus. >> I use Solus way more than Mint these days and it would be nice to have NUT working. > If you describe the problems you are having when trying to build it, maybe we can help. > > Please use reply-all to keep the list CC'd.