# install apt-get install -y apcupsd # configure sed -i 's|UPSCABLE smart|UPSCABLE usb|g' /etc/apcupsd/apcupsd.conf sed -i 's|UPSTYPE apcsmart|UPSTYPE usb|g' /etc/apcupsd/apcupsd.conf sed -i 's|DEVICE /dev/ttyS0|DEVICE|g' /etc/apcupsd/apcupsd.conf sed -i 's|ISCONFIGURED=no|ISCONFIGURED=yes|g' /etc/default/apcupsd # start apcupsd demon service apcupsd start # get status apcaccess # get run test apctest # monitor tail -f /var/log/apcupsd.events # OPTIONAL: configure /etc/apcupsd/apccontrol
Links
http://www.apcupsd.com/manual/manual.html
http://www.linuxcertif.com/man/8/apcaccess/