Greetings; I found pdf user manual which explains a few things that might help. However, for a ubuntu flavor, the various .conf etc files seem to be in /etc/nut. But this pdf says they are in /usr/local/ups/etc, and yes indeed there are some there, with the .sample files being owned by root, and the rest are user 503, whoever he may be. Are these just a sample storage in case one needs to start from square #0 again? Or what? Then on down the page it says it should start by using upsdrvctl start, I get sudo upsdrvctl start Network UPS Tools - UPS driver controller 2.4.3 Network UPS Tools - Generic HID driver 0.34 (2.4.3) USB communication driver 0.31 Using subdriver: Belkin HID 0.12 Broadcast Message from gene at coyote (somewhere) at 19:16 ... Communications with UPS myups at localhost established Broadcast Message from gene at coyote (somewhere) at 19:16 ... Communications with UPS myups at localhost established Broadcast Message from gene at coyote (somewhere) at 19:16 ... Communications with UPS myups at localhost established But why do I get 3 of them? So I go thru htop, after issueing stops to upsdrvctl and nut, then restart the driver, then nut, and now my log is being spammed by: Oct 18 19:25:51 coyote kernel: [117004.485575] usb 1-10: usbfs: process 29641 (usbhid-ups) did not claim interface 0 before use Oct 18 19:25:54 coyote kernel: [117007.499806] usb 1-10: usbfs: process 29668 (usbhid-ups) did not claim interface 0 before use Oct 18 19:25:54 coyote kernel: [117007.499850] usb 1-10: usbfs: process 29668 (usbhid-ups) did not claim interface 0 before use about 1/second. Issueing the stop commands, I am told: Can't open /var/run/nut/usbhid-ups-3493.pid: No such file or directory by upsdvrctl. And it leaves usbhid-*** running and I have to kill it as root. So whats next? I don't seem to be getting very far in this maze. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS
Hi Gene, On Oct 18, 2014, at 7:35 PM, Gene Heskett <gheskett at wdtv.com> wrote:> Greetings; > > I found pdf user manual which explains a few things that might help. > > However, for a ubuntu flavor, the various .conf etc files seem to be in > /etc/nut.We have an open ticket about that[*]; basically, the official NUT documentation needs to be a bit more explicit that the paths are what you would get with a vanilla source install, and that distributions will most likely be different. [*] https://github.com/networkupstools/nut/issues/152> But this pdf says they are in /usr/local/ups/etc, and yes indeed there are > some there, with the .sample files being owned by root, and the rest are > user 503, whoever he may be.If it's the same "coyote" machine from 2010, the archives indicate that you installed from source at one point. The Ubuntu packages shouldn't have written to /usr/local.> Are these just a sample storage in case one needs to start from square #0 > again? Or what?Yes, but the paths in those files are from the source install. I forget what Ubuntu did with the 10.04 packages, but it probably shipped *.sample files in either /etc/nut or /usr/share/doc/nut/examples.> Then on down the page it says it should start by using upsdrvctl start, I > get > sudo upsdrvctl start > Network UPS Tools - UPS driver controller 2.4.3 > Network UPS Tools - Generic HID driver 0.34 (2.4.3) > USB communication driver 0.31 > Using subdriver: Belkin HID 0.12 > > Broadcast Message from gene at coyote > (somewhere) at 19:16 ... > > Communications with UPS myups at localhost established > > > > Broadcast Message from gene at coyote > (somewhere) at 19:16 ... > > Communications with UPS myups at localhost established > > > Broadcast Message from gene at coyote > (somewhere) at 19:16 ... > > Communications with UPS myups at localhost established > > But why do I get 3 of them?Good question, but it's going to be hard to tease apart the Ubuntu .deb install and the source install. Note that some versions of /etc/init.d/nut (provided by Ubuntu) will start the driver as well as upsd and upsmon, so the separate "upsdrvctl start" is not necessary. Do you have anything else installed to /usr/local? If not, it might be easier to move that directory aside. Then again, if you installed from source, it was probably due to something not being in the Ubuntu packages.> So I go thru htop, after issueing stops to upsdrvctl and nut, then restart > the driver, then nut, and now my log is being spammed by: > Oct 18 19:25:51 coyote kernel: [117004.485575] usb 1-10: usbfs: process > 29641 (usbhid-ups) did not claim interface 0 before use > Oct 18 19:25:54 coyote kernel: [117007.499806] usb 1-10: usbfs: process > 29668 (usbhid-ups) did not claim interface 0 before use > Oct 18 19:25:54 coyote kernel: [117007.499850] usb 1-10: usbfs: process > 29668 (usbhid-ups) did not claim interface 0 before use > about 1/second.With usbhid-ups, this tends to only happen when multiple drivers are running.> Issueing the stop commands, I am told: > Can't open /var/run/nut/usbhid-ups-3493.pid: No such file or directory > by upsdvrctl. And it leaves usbhid-*** running and I have to kill it as > root. > > So whats next? I don't seem to be getting very far in this maze. > > Cheers, Gene Heskett > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author) > Genes Web page <http://geneslinuxbox.net:6309/gene> > US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser-- Charles Lepple clepple at gmail
On Sunday 19 October 2014 22:03:23 Charles Lepple did opine And Gene did reply:> Hi Gene, > > On Oct 18, 2014, at 7:35 PM, Gene Heskett <gheskett at wdtv.com> wrote: > > Greetings; > > > > I found pdf user manual which explains a few things that might help. > > > > However, for a ubuntu flavor, the various .conf etc files seem to be > > in /etc/nut. > > We have an open ticket about that[*]; basically, the official NUT > documentation needs to be a bit more explicit that the paths are what > you would get with a vanilla source install, and that distributions > will most likely be different. > > [*] https://github.com/networkupstools/nut/issues/152 > > > But this pdf says they are in /usr/local/ups/etc, and yes indeed > > there are some there, with the .sample files being owned by root, > > and the rest are user 503, whoever he may be. > > If it's the same "coyote" machine from 2010, the archives indicate that > you installed from source at one point. The Ubuntu packages shouldn't > have written to /usr/local. > > > Are these just a sample storage in case one needs to start from > > square #0 again? Or what? > > Yes, but the paths in those files are from the source install. I forget > what Ubuntu did with the 10.04 packages, but it probably shipped > *.sample files in either /etc/nut or /usr/share/doc/nut/examples. > > > Then on down the page it says it should start by using upsdrvctl > > start, I get > > sudo upsdrvctl start > > Network UPS Tools - UPS driver controller 2.4.3 > > Network UPS Tools - Generic HID driver 0.34 (2.4.3) > > USB communication driver 0.31 > > Using subdriver: Belkin HID 0.12 > > > > Broadcast Message from gene at coyote > > > > (somewhere) at 19:16 ... > > > > Communications with UPS myups at localhost established > > > > > > > > Broadcast Message from gene at coyote > > > > (somewhere) at 19:16 ... > > > > Communications with UPS myups at localhost established > > > > > > Broadcast Message from gene at coyote > > > > (somewhere) at 19:16 ... > > > > Communications with UPS myups at localhost established > > > > But why do I get 3 of them? > > Good question, but it's going to be hard to tease apart the Ubuntu .deb > install and the source install. > > Note that some versions of /etc/init.d/nut (provided by Ubuntu) will > start the driver as well as upsd and upsmon, so the separate > "upsdrvctl start" is not necessary. > > Do you have anything else installed to /usr/local? If not, it might be > easier to move that directory aside. Then again, if you installed from > source, it was probably due to something not being in the Ubuntu > packages. > > > So I go thru htop, after issueing stops to upsdrvctl and nut, then > > restart the driver, then nut, and now my log is being spammed by: > > Oct 18 19:25:51 coyote kernel: [117004.485575] usb 1-10: usbfs: > > process 29641 (usbhid-ups) did not claim interface 0 before use > > Oct 18 19:25:54 coyote kernel: [117007.499806] usb 1-10: usbfs: > > process 29668 (usbhid-ups) did not claim interface 0 before use > > Oct 18 19:25:54 coyote kernel: [117007.499850] usb 1-10: usbfs: > > process 29668 (usbhid-ups) did not claim interface 0 before use > > about 1/second. > > With usbhid-ups, this tends to only happen when multiple drivers are > running.The stop command should kill it, doesn't, I have to go find it with htop and nuke it from there. This is nut-2.7.2, and the kit was unpacked on 6/26/2014, so it is a local build. But then oldtimers has hit, and according to synaptic, 2.4.3 from ubuntu repos was also installed. So I have a flustercluck at best, and have removed the ubuntu version, and will reinstall from my later src. I'll advise how that turns out in due time. Thanks for your patience Charles. Darn, the docs I pulled and printed 2-3 days ago are for 2.6.0. I'll check my src tree. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS
On Sunday 19 October 2014 22:03:23 Charles Lepple did opine And Gene did reply:> Hi Gene, > > On Oct 18, 2014, at 7:35 PM, Gene Heskett <gheskett at wdtv.com> wrote: > > Greetings; > > > > I found pdf user manual which explains a few things that might help. > > > > However, for a ubuntu flavor, the various .conf etc files seem to be > > in /etc/nut. > > We have an open ticket about that[*]; basically, the official NUT > documentation needs to be a bit more explicit that the paths are what > you would get with a vanilla source install, and that distributions > will most likely be different. > > [*] https://github.com/networkupstools/nut/issues/152Trouble is shooting back already: ./configure --with-usb --with-cgi --with-doc bails out: checking for gd version via gdlib-config... none found checking for gd include flags... checking for gd library flags... -L/usr/X11R6/lib -lgd -lpng -lz -ljpeg - lfreetype -lm -lXpm -lX11 checking for gd.h... no checking for gdfontmb.h... no checking for library containing gdImagePng... no configure: error: libgd not found, required for CGI build And gdlib does not appear to be available from the repo's. I'd like to have the CGI scripts working so I can read it with a browser. Ideas? This time of the night I'm not even fresh enough to say I am fresh out. Thanks Charles. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS