Changes

From Amahi Wiki
Jump to: navigation, search
317 bytes added ,  03:46, 23 June 2020
== Powering Amahi (Fedora 12, Intel Atom D510MO) with APC Back-UPS ES 550 and [http://www.networkupstools.org/index.html NUT] =={{NeedsUpdate}}
The APC Back-UPS ES 550 is a consumer-grade UPS: the software it comes with does not work in Linux. Instead, you need to use NUT or apcupsd. Google will turn up evidence that both work.
The original NUT instructions that this article is based on came from == Powering Amahi (Fedora 12/14) with APC Back-UPS and [http://www.mscsnetworkupstools.dal.ca/~selinger/upsorg/backupsindex.html here] and [http://billauer.co.il/blog/2010/01/fedora-mustek-powermust-600-ups-nut-howto/ hereNetwork UPS Tools (NUT)]. The former, by Peter Selinger, are closest to this case, but a lot of the work he had to do is now done for you out of the box. The latter are for a different UPS, but are also fresher.==
First, do this:{{Code|Code=yum The software APC Back-y install nut nut-client}}NextUPS comes with does not work in Linux. Instead, you will need to configure three files in /etc/ups: upsuse NUT or apcupsd.conf, upsd.usersGoogle will turn up evidence that both work, and upsmon.conf. They will look almost identical but NUT seems to Selinger's:{{Code|Code=vi /usr/etc/upsbe the preferred one.conf}}
{{Text|Text=The original instructions that this guidance is based on came from [http://www.mscs.dal.ca/~selinger/ups/backups.html here] and [http://billauer.co.il/blog/2010/01/fedora-mustek-powermust-600-ups-nut-howto/ here]. The former, by Peter Selinger, are closest to this case, but a lot of the work he had to do is now done for you out of the box. The latter are for a different UPS, but are also fresher.  '''NOTE:''' This will be a future Amahi Web Application. To use the web monitoring capability, see [http://www.amahi.org/apps/ups-monitor UPS Monitor].  First, do this as [http://wiki.amahi.org/index.php/Open_Terminal_as_root root user]:  yum -y install nut nut-client Next, you will need to configure four files in /etc/ups: ups.conf, upsd.users, hosts.conf, and upsmon.conf. They will look almost identical to Selinger's (password1 and password2 can be changed to anything):  vi /etc/ups/ups.conf <pre>
[apc]
driver = usbhid-ups
port = auto
desc = "APC Back-UPS ES 550"}}</pre>
{{Code|Code=vi /usretc/etcups/upsd.users}}
{{Text|Text=<pre>
[admin]
password = password1
password = password2
upsmon master
}}</pre>  vi /etc/ups/hosts.conf <pre>MONITOR apc@localhost "UPS on HDA"</pre>
{{Code|Code= vi /usretc/etcups/upsmon.conf}}
{{Text|Text=<pre>
MONITOR apc@localhost 1 monuser password2 master
MINSUPPLIES 1
NOCOMMWARNTIME 300
FINALDELAY 5
}}</pre>  
The next step is to start the UPS service:
{{Code| upsdrvctl start service ups stop service ups start}}
At this point, you should see something like this in your terminal:
If you do not, it may be because upsdrvctl refuses to cooperate at first. A reboot will fix that problem. The final step is to make sure that the UPS services start when the server does. For that, the /etc/rc.local file must be edited as follows:
vi /etc/rc.local <pre>echo "Starting UPS driver, daemon, and monitor."{{Code|
/sbin/upsdrvctl start
/usr/sbin/upsd
/usr/sbin/upsmon
}}</pre>
12,424

edits