Difference between revisions of "Uninterruptable Power Supply:LatestGeekery"
(Created page with "== Update to the Latest Nut Version From the Geekery == {{Level|Advanced}} {{Warning box|I can provide little feedback if this is without consequence - seems to work currently}}...") |
|||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Update to the Latest Nut Version From the Geekery == | == Update to the Latest Nut Version From the Geekery == | ||
{{Level|Advanced}} | {{Level|Advanced}} | ||
+ | This How to is outdated and is not reflecting exactly what is needed, However good settings are imported by default in sme9 --[[User:Stephdl|Stephdl]] ([[User talk:Stephdl|talk]]) 09:18, 12 February 2015 (CET) | ||
− | + | see [[bugzilla:8793]] and [[bugzilla:8826]] | |
− | |||
=== Install Geekery Repository === | === Install Geekery Repository === | ||
+ | * for sme8 | ||
/sbin/e-smith/db yum_repositories set geekery repository \ | /sbin/e-smith/db yum_repositories set geekery repository \ | ||
Name 'geekery repository' \ | Name 'geekery repository' \ | ||
BaseURL 'http://geekery.altervista.org/geekery/el5/$basearch' \ | BaseURL 'http://geekery.altervista.org/geekery/el5/$basearch' \ | ||
+ | EnableGroups no \ | ||
+ | GPGCheck yes \ | ||
+ | GPGKey http://geekery.altervista.org/download.php?filename=GEEKERY-GPG-KEY \ | ||
+ | Visible no \ | ||
+ | status disabled | ||
+ | |||
+ | After adding it to the database updating the configuration file is required: | ||
+ | signal-event yum-modify | ||
+ | |||
+ | * for sme9 | ||
+ | /sbin/e-smith/db yum_repositories set geekery repository \ | ||
+ | Name 'geekery repository' \ | ||
+ | BaseURL 'http://geekery.altervista.org/geekery/el6/$basearch' \ | ||
EnableGroups no \ | EnableGroups no \ | ||
GPGCheck yes \ | GPGCheck yes \ | ||
Line 18: | Line 32: | ||
=== Update Nut === | === Update Nut === | ||
− | yum --enablerepo=geekery update nut | + | yum --enablerepo=geekery update nut |
If you are installing a USB UPS, softlink this file in udev rules directory: | If you are installing a USB UPS, softlink this file in udev rules directory: | ||
Line 25: | Line 39: | ||
and reload udev rules and trigger device detection with these commands: | and reload udev rules and trigger device detection with these commands: | ||
− | + | * for sme8 | |
udevcontrol reload_rules | udevcontrol reload_rules | ||
udevtrigger | udevtrigger | ||
+ | service nut restart | ||
+ | |||
+ | *for sme9 | ||
+ | udevadm control --reload-rules | ||
+ | service nut restart | ||
+ | |||
+ | === hosts.allow === | ||
+ | |||
+ | NUT uses TCP-Wrappers to provide controlled access to the daemon upsd. To allow this add a fragment to the templates | ||
+ | |||
+ | mkdir -p /etc/e-smith/templates-custom/etc/services | ||
+ | vim /etc/e-smith/templates-custom/etc/services/30Nut | ||
+ | and paste | ||
+ | #Nut Service | ||
+ | nut 3493/tcp # Network UPS Tools | ||
+ | nut 3493/udp # Network UPS Tools | ||
+ | then | ||
+ | mkdir -p /etc/e-smith/templates-custom/etc/hosts.allow/ | ||
+ | mc -e /etc/e-smith/templates-custom/etc/hosts.allow/upsd | ||
+ | |||
+ | Paste in the fragment | ||
+ | { | ||
+ | $DB->hosts_allow_spec('nut','nut'); | ||
+ | } | ||
+ | |||
+ | and expand the template & restart the service (if you have already configured the ups per [[Uninterruptable_Power_Supply]]) | ||
+ | expand-template /etc/hosts.allow | ||
+ | service nut restart | ||
− | + | Then follow the excellent instructions at [[Uninterruptable_Power_Supply]] | |
* The Geekery is referenced at http://www.networkupstools.org/ | * The Geekery is referenced at http://www.networkupstools.org/ |
Latest revision as of 09:20, 12 February 2015
Update to the Latest Nut Version From the Geekery
This How to is outdated and is not reflecting exactly what is needed, However good settings are imported by default in sme9 --Stephdl (talk) 09:18, 12 February 2015 (CET)
see bugzilla:8793 and bugzilla:8826
Install Geekery Repository
- for sme8
/sbin/e-smith/db yum_repositories set geekery repository \ Name 'geekery repository' \ BaseURL 'http://geekery.altervista.org/geekery/el5/$basearch' \ EnableGroups no \ GPGCheck yes \ GPGKey http://geekery.altervista.org/download.php?filename=GEEKERY-GPG-KEY \ Visible no \ status disabled
After adding it to the database updating the configuration file is required:
signal-event yum-modify
- for sme9
/sbin/e-smith/db yum_repositories set geekery repository \ Name 'geekery repository' \ BaseURL 'http://geekery.altervista.org/geekery/el6/$basearch' \ EnableGroups no \ GPGCheck yes \ GPGKey http://geekery.altervista.org/download.php?filename=GEEKERY-GPG-KEY \ Visible no \ status disabled
After adding it to the database updating the configuration file is required:
signal-event yum-modify
Update Nut
yum --enablerepo=geekery update nut
If you are installing a USB UPS, softlink this file in udev rules directory:
ln -s /lib/udev/rules.d/62-nut-usbups.rules /etc/udev/rules.d/62-nut-usbups.rules
and reload udev rules and trigger device detection with these commands:
- for sme8
udevcontrol reload_rules udevtrigger service nut restart
- for sme9
udevadm control --reload-rules service nut restart
hosts.allow
NUT uses TCP-Wrappers to provide controlled access to the daemon upsd. To allow this add a fragment to the templates
mkdir -p /etc/e-smith/templates-custom/etc/services vim /etc/e-smith/templates-custom/etc/services/30Nut
and paste
#Nut Service nut 3493/tcp # Network UPS Tools nut 3493/udp # Network UPS Tools
then
mkdir -p /etc/e-smith/templates-custom/etc/hosts.allow/ mc -e /etc/e-smith/templates-custom/etc/hosts.allow/upsd
Paste in the fragment
{ $DB->hosts_allow_spec('nut','nut'); }
and expand the template & restart the service (if you have already configured the ups per Uninterruptable_Power_Supply)
expand-template /etc/hosts.allow service nut restart
Then follow the excellent instructions at Uninterruptable_Power_Supply
- The Geekery is referenced at http://www.networkupstools.org/
- I used this Howto: http://www.howtoforge.com/network-ups-tools-nut-for-usb-upss-on-centos-5.5
Why
I have a Dell UPS Rack 1920W - if doesn't work on the standard Nut version. After this upgrade it does on the default configuration.