Changes

From Amahi Wiki
Jump to: navigation, search
273 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.==
FirstThe software APC Back-UPS comes with does not work in Linux. Instead, you need to use NUT or apcupsd. Google will turn up evidence that both work, do this:{{Code|Code=yum -y install nut nut-client}}but NUT seems to be the preferred one.
Next, you will need to configure three files in The original instructions that this guidance is based on came from [http://www.mscs.dal.ca/etc~selinger/ups: ups.conf, upsd/backups.users, html here] and upsmon[http://billauer.confco. They will look almost identical to Selinger's:{{Code|Code=vi il/blog/2010/etc01/fedora-mustek-powermust-600-ups-nut-howto/upshere]. 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.conf}}
{{Text|Text='''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 /etc/ups/upsd.users
}}
 {{Text|Text=<pre>
[admin]
password = password1
password = password2
upsmon master
}}</pre>
vi /etc/ups/hosts.conf
{{Code|Code=<pre>vi /etc/upsMONITOR apc@localhost "UPS on HDA"</upsmon.conf}}pre>
{{Text|Text= vi /etc/ups/upsmon.conf <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
}}
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:
{{Code|Code=
vi /etc/rc.local
}}
{{Text|Text= vi /etc/rc.local <pre>
echo "Starting UPS driver, daemon, and monitor."
/sbin/upsdrvctl start
/usr/sbin/upsd
/usr/sbin/upsmon
}}</pre>
12,424

edits