<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"> Hi, all!<br><br>Actually I have two questions for a same reason: I want to share my NUT to my LAN, or read UPS from remote device.<br><br>/**************** firstly *****************/<br>I downloaded tcp-wrapper, but NUT could not detected it. <br><br>Previously I successfully configured and make NUT into my embedded system. It worked and UPS is recognized. <br>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. <br><br>I make tcp-wrappers as:<br># make \<br>REAL_DAEMON_DIR=/mnt/tmp \<br>CC=arm-mv5sft-linux-gnueabi-gcc \<br>EXTRA_CFLAGS=-DSYS_ERRLIST_DEFINED \<br>linux >libwrap_make.log<br># cp libwrap.a /lib<br># cp tcpd.h /usr/include -f<br><br>And configure NUT as:<br>./configure \<br>--includedir=/usr/include \<br>--prefix=/usr/local/ups \<br>--exec-prefix=/usr/local/ups \<br>--bindir=/bin \<br>--sbindir=/sbin \<br>--sysconfdir=/etc \<br>--localstatedir=/var \<br>--libdir=/lib \<br>--build=i386 \<br>--host=arm-mv5sft-linux-gnueabi \<br>--libexecdir=/usr/local/usb \<br>--includedir=/usr/local/usb/include \<br>--with-usb-libs='-L/lib -lusb' \<br>--with-usb-includes=-I/usr/local/usb/prefix/include \<br>--with-user=root --with-group=root \<br>--with-usb=yes \<br>--with-wrap=yes \<br>--with-serial=no >>NUT_configure.log<br><br>Then error occured.<br><br>Three log file including configure.log attached. <br>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. <br>How should I correctly configure libwrap?<br>Or I still need nore library? Currectly I only have libusb.<br><br>/**************** secondly *****************/<br>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: <br>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.<br>2. The real "net server" of UPS are drivers, such as usbhid-ups. The permission of access from network are done by tcp-wrapper.<br>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<br><br>Are they right? <br><br><br><br><br>Thank you!<br>--<br>Andrew Chang<br>2012-03-16<br><br><br><br><br><br><br></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>