[Nut-upsuser] [NUT-upsuser] tcp-wrapper not found
Andrew Min Chang
laplacezhang at 126.com
Fri Mar 16 03:15:32 UTC 2012
Actually I have two questions for a same reason: I want to share my NUT to my LAN, or read UPS from remote device.
/**************** firstly *****************/
I downloaded tcp-wrapper, but NUT could not detected it.
Previously I successfully configured and make NUT into my embedded system. It worked and UPS is recognized.
I downloaded tcp-wrapper (Ver 7.6, most files in the package are modified in 1997 or even earlier) and made it. It does not contained ./configure, and no "install" rule in Makefile, so I do not quite clear of whether I configured it right.
I make tcp-wrappers as:
# make \
# cp libwrap.a /lib
# cp tcpd.h /usr/include -f
And configure NUT as:
--with-usb-libs='-L/lib -lusb' \
--with-user=root --with-group=root \
Then error occured.
Three log file including configure.log attached.
And is my configuration of tcp-wrapper right? I would confure something like libusb (--with-usb-libs, --with-usb-includes, etc) but there is only one configuration of libwrap (--with-wrap) and no more could be set.
How should I correctly configure libwrap?
Or I still need nore library? Currectly I only have libusb.
/**************** secondly *****************/
NUT User Manual tells much about standalone mode of UPS support, but the one with server, it tells little. What I learned from several documents are:
1. upsd is a server, this "server" serves "client" but the common meaning of "net server". Which means upsd could not be seen by other device within the same LAN.
2. The real "net server" of UPS are drivers, such as usbhid-ups. The permission of access from network are done by tcp-wrapper.
3. If a slave device B wants to connect to a master device A with UPS plugged into, it just needs to run upsd with a "LISTEN <IP of A>" in upsd.conf
Are they right?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nut-upsuser