<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ghuiber</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ghuiber"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Ghuiber"/>
	<updated>2026-05-03T20:04:07Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=UPS_setup&amp;diff=32995</id>
		<title>UPS setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=UPS_setup&amp;diff=32995"/>
		<updated>2011-02-10T05:05:04Z</updated>

		<summary type="html">&lt;p&gt;Ghuiber: Adding an uninterruptible power supply (UPS) to your Amahi server&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Powering Amahi (Fedora 12, Intel Atom D510MO) with APC Back-UPS ES 550 and [http://www.networkupstools.org/index.html NUT] ==&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
The original NUT instructions that this article 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.&lt;br /&gt;
&lt;br /&gt;
First, do this:&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
#yum -y install nut nut-client&lt;br /&gt;
}}&lt;br /&gt;
Next, you will need to configure three files in /etc/ups: ups.conf, upsd.users, and upsmon.conf. They will look almost identical to Selinger's:&lt;br /&gt;
{{Code|Code=&lt;br /&gt;
/usr/etc/ups.conf:&lt;br /&gt;
----------------------------------------------------------------------&lt;br /&gt;
[apc]&lt;br /&gt;
        driver = usbhid-ups&lt;br /&gt;
        port = auto&lt;br /&gt;
        desc = &amp;quot;APC Back-UPS ES 550&amp;quot;&lt;br /&gt;
&lt;br /&gt;
/usr/etc/upsd.users:&lt;br /&gt;
----------------------------------------------------------------------&lt;br /&gt;
[admin]&lt;br /&gt;
        password = password1&lt;br /&gt;
        actions = SET&lt;br /&gt;
        instcmds = ALL&lt;br /&gt;
[monuser]&lt;br /&gt;
        password = password2&lt;br /&gt;
        upsmon master&lt;br /&gt;
&lt;br /&gt;
/usr/etc/upsmon.conf:&lt;br /&gt;
----------------------------------------------------------------------&lt;br /&gt;
MONITOR apc@localhost 1 monuser password2 master&lt;br /&gt;
MINSUPPLIES 1&lt;br /&gt;
SHUTDOWNCMD &amp;quot;/sbin/shutdown -h +0&amp;quot;&lt;br /&gt;
POLLFREQ 5&lt;br /&gt;
POLLFREQALERT 5&lt;br /&gt;
HOSTSYNC 15&lt;br /&gt;
DEADTIME 15&lt;br /&gt;
POWERDOWNFLAG /etc/killpower&lt;br /&gt;
RBWARNTIME 43200&lt;br /&gt;
NOCOMMWARNTIME 300&lt;br /&gt;
FINALDELAY 5&lt;br /&gt;
}}&lt;br /&gt;
The next step is to start the UPS service:&lt;br /&gt;
{{Code|&lt;br /&gt;
# upsdrvctl start&lt;br /&gt;
# service ups stop&lt;br /&gt;
# service ups start&lt;br /&gt;
}}&lt;br /&gt;
At this point, you should see something like this in your terminal:&lt;br /&gt;
{{Code|&lt;br /&gt;
Starting UPS driver controller:                            [  OK  ]&lt;br /&gt;
Starting upsd:                                             [  OK  ]&lt;br /&gt;
Starting UPS monitor (master):                             [  OK  ]&lt;br /&gt;
}}&lt;br /&gt;
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:&lt;br /&gt;
{{Code|&lt;br /&gt;
echo &amp;quot;Starting UPS driver, daemon, and monitor.&amp;quot;&lt;br /&gt;
/sbin/upsdrvctl start&lt;br /&gt;
/usr/sbin/upsd&lt;br /&gt;
/usr/sbin/upsmon&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Ghuiber</name></author>
		
	</entry>
</feed>