Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Being a newb I am unsure of how to setup nut to access my ups via the usb cable that is included. All the documentation that I can find only tells you how to use your ups on a serial port. How about a usb port? How do I find the correct device address with usb?
The Nut documentation is below to give you an idea of what they are looking for:
Set ownership data and permissions on your serial or USB ports
that go to your UPS hardware. Be sure to limit access to just
the user you created earlier.
These examples assume the second serial port (ttyS1) on a typical Slackware system. On FreeBSD, that would be cuaa1. Serial ports vary greatly, so yours may be called something else.
chmod 0600 /dev/ttyS1
chown nut:nut /dev/ttyS1
NOTE: if you are using something like devfs, make sure these permissions stay set across a reboot. If they revert to the old values, your drivers may fail to start.
usb 3-1: new low speed USB device using uhci_hcd and address 3
hiddev96: USB HID v1.10 Device [APC Back-UPS ES 350 FW:800.e5.D USB FW:e5] on usb-0000:00:10.1-1
Also, the USB connection to the UPS should fall under Human Interface Devices (HID) and is probably hiddev0 (or hiddev1, ... hiddev15), or at least that’s how it works with apcupsd.
Look around /dev and you should be able to find one or more candidates (e.g., /dev/hiddev0, /dev/usb/hiddev0 or /dev/usb/hid/hiddev0, depending on your OS).
I was never able to get NUT working. Which stinks becuase its got some really cool features. However got apcuspd working mainly due to the fact that in the config if you have a usb connection you just select usb. It does the rest.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.