PDA

View Full Version : Integrating NUT with HAL



Onehand
2nd March 2009, 10:07 PM
I'm trying to set up the nut-hal integration. I've used yumex to install Nut & Hal. I'm following document nut-hal.txt. It calls for instsllation of libhal-dev & libdbus-dev. I can't find these files with yumex. Have they been superseded? The next step says to do a "./configure --with-hal && make" from within the nut directory. i get a msg. "no such file or directory'. Also there are 3 nut folders present. Which one are we concerned with here?

leigh123linux
2nd March 2009, 10:15 PM
Try



su
yum install dbus-devel hal-devel

Onehand
3rd March 2009, 11:58 AM
Thanx Leigh!

O.K. They're installed. I'm still wondering about which nut folder to do the ./configure within.

leigh123linux
3rd March 2009, 01:11 PM
What's wrong with the pre-compiled rpm's ?


[root@localhost leigh]# yum info nut-hal nut nut-cgi nut-client nut-xml
Loaded plugins: refresh-packagekit
Excluding Packages from Fedora 10 - x86_64
Finished
Excluding Packages from Fedora 10 - x86_64 - Updates
Finished
Available Packages
Name : nut
Arch : x86_64
Version : 2.2.2
Release : 4.fc10
Size : 1.3 M
Repo : updates
Summary : Network UPS Tools
URL : http://www.networkupstools.org/
License : GPLv2+
Description: These programs are part of a developing project to monitor the
: assortment of UPSes that are found out there in the field. Many
: models have serial ports of some kind that allow some form of state
: checking. This capability has been harnessed where possible to
: allow for safe shutdowns, live status tracking on web pages, and
: more.

Name : nut-cgi
Arch : x86_64
Version : 2.2.2
Release : 4.fc10
Size : 55 k
Repo : updates
Summary : CGI utilities for the Network UPS Tools
URL : http://www.networkupstools.org/
License : GPLv2+
Description: This package includes CGI programs for accessing UPS status via a
: web browser.

Name : nut-client
Arch : i386
Version : 2.2.2
Release : 4.fc10
Size : 94 k
Repo : updates
Summary : Network UPS Tools client monitoring utilities
URL : http://www.networkupstools.org/
License : GPLv2+
Description: This package includes the client utilities that are required to
: monitor a ups that the client host has access to, but where the UPS
: is physically attached to a different computer on the network.

Name : nut-client
Arch : x86_64
Version : 2.2.2
Release : 4.fc10
Size : 96 k
Repo : updates
Summary : Network UPS Tools client monitoring utilities
URL : http://www.networkupstools.org/
License : GPLv2+
Description: This package includes the client utilities that are required to
: monitor a ups that the client host has access to, but where the UPS
: is physically attached to a different computer on the network.

Name : nut-hal
Arch : x86_64
Version : 2.2.2
Release : 4.fc10
Size : 166 k
Repo : updates
Summary : UPS Monitoring Software
URL : http://www.networkupstools.org/
License : GPLv2+
Description: This package contains the HAL enabled version of the drivers. You
: can use this for most USB connected UPSes that are powering a
: single system with a graphical desktop.

Name : nut-xml
Arch : x86_64
Version : 2.2.2
Release : 4.fc10
Size : 38 k
Repo : updates
Summary : XML UPS driver for the Network UPS Tools
URL : http://www.networkupstools.org/
License : GPLv2+
Description: This package adds the netxml-ups driver, that allows NUT to monitor
: a XML capable UPS.

[root@localhost leigh]#

Try



yum install nut-hal nut

Onehand
4th March 2009, 06:35 PM
Thanx Leigh,

I tried your rpm install proc. It says that nut, nut-cgi, & nut-client are installed o.k., but no packages available for nut-hal or nut-xml.

I'm running FC8 and previously used yumex to install nut, etc.

P.S: After shutting down Firefox after posting this, my upper panel is now displayed on the left side & inverted. ???

Onehand
4th March 2009, 08:10 PM
O.K. Leigh, I got the rpm's downloaded & extracted to a unique folder. Now, I guess, to install, just move the extracted folders to "filesystem"? Or should I use "yum localinstall xxxxx.xxxx.rpm"?

Update: I tried yum localinstall & get an error "cannot open file . . . ."

leigh123linux
4th March 2009, 09:13 PM
O.K. Leigh, I got the rpm's downloaded & extracted to a unique folder. Now, I guess, to install, just move the extracted folders to "filesystem"? Or should I use "yum localinstall xxxxx.xxxx.rpm"?

Update: I tried yum localinstall & get an error "cannot open file . . . ."


What directory did you download them to ? , rpm's don't need manually extracting .

Onehand
5th March 2009, 12:24 AM
I downloaded them to a folder root/downloads/.

leigh123linux
5th March 2009, 12:47 AM
I downloaded them to a folder root/downloads/.


Ok post


ls /root/*ownload*

Onehand
5th March 2009, 02:29 PM
I moved the rpm's & extracted folders into a sub-directory "nut-hal" as there were other downloaded rpms in the folder. Then I tried as below with the result below:

[root@localhost ~]# ls /root/download/*nut-hal*
ls: cannot access /root/download/*nut-hal*: No such file or directory
[root@localhost ~]#

leigh123linux
5th March 2009, 02:43 PM
I moved the rpm's & extracted folders into a sub-directory "nut-hal" as there were other downloaded rpms in the folder. Then I tried as below with the result below:

[root@localhost ~]# ls /root/download/*nut-hal*
ls: cannot access /root/download/*nut-hal*: No such file or directory
[root@localhost ~]#

Don't extract them.


To install use yum



su
yum --nogpgcheck localinstall /path/to/rpm/nut*rpm

Change /path/to/rpm to the real path of the rpm's ( don't extract them )

Onehand
5th March 2009, 04:47 PM
Tried the above with full path. No go. Copied nut rpm to desktop & tried again. Result below. Same result both times.

[root@localhost ~]# yum --nogpgcheck localinstall nut-2.2.2-4.fc8.i386.rpm
Setting up Local Package Process
Cannot open file: nut-2.2.2-4.fc8.i386.rpm. Skipping.
Nothing to do
[root@localhost ~]# yum

leigh123linux
5th March 2009, 05:00 PM
Tried the above with full path. No go. Copied nut rpm to desktop & tried again. Result below. Same result both times.

[root@localhost ~]# yum --nogpgcheck localinstall nut-2.2.2-4.fc8.i386.rpm
Setting up Local Package Process
Cannot open file: nut-2.2.2-4.fc8.i386.rpm. Skipping.
Nothing to do
[root@localhost ~]# yum

Well your not in the right directory.


try



su -
cd Desktop
yum --nogpgcheck localinstall nut*rpm

Onehand
5th March 2009, 05:21 PM
Getting closer . . here's the results:

[root@localhost ~]# su
[root@localhost ~]# cd Desktop
[root@localhost Desktop]# yum --nogpgcheck localinstall nut-2.2.2-4.fc8.i386.rpm nut-xml-2.2.2-4.fc8.i386.rpm nut-hal-2.2.2-4.fc8.i386.rpm nut-devel-2.2.2-4.fc8.i386.rpm nut-debuginfo-2.2.2-4.fc8.i386.rpm nut-client-2.2.2-4.fc8.i386.rpm nut-cgi-2.2.2-4.fc8.i386.rpm
Setting up Local Package Process
Examining nut-2.2.2-4.fc8.i386.rpm: nut-2.2.2-4.fc8.i386
Marking nut-2.2.2-4.fc8.i386.rpm as an update to nut-2.2.0-6.1.fc8.i386
Examining nut-xml-2.2.2-4.fc8.i386.rpm: nut-xml-2.2.2-4.fc8.i386
Marking nut-xml-2.2.2-4.fc8.i386.rpm to be installed
Examining nut-hal-2.2.2-4.fc8.i386.rpm: nut-hal-2.2.2-4.fc8.i386
Marking nut-hal-2.2.2-4.fc8.i386.rpm to be installed
Examining nut-devel-2.2.2-4.fc8.i386.rpm: nut-devel-2.2.2-4.fc8.i386
Marking nut-devel-2.2.2-4.fc8.i386.rpm to be installed
Examining nut-debuginfo-2.2.2-4.fc8.i386.rpm: nut-debuginfo-2.2.2-4.fc8.i386
Marking nut-debuginfo-2.2.2-4.fc8.i386.rpm to be installed
Examining nut-client-2.2.2-4.fc8.i386.rpm: nut-client-2.2.2-4.fc8.i386
Marking nut-client-2.2.2-4.fc8.i386.rpm as an update to nut-client-2.2.0-6.1.fc8.i386
Examining nut-cgi-2.2.2-4.fc8.i386.rpm: nut-cgi-2.2.2-4.fc8.i386
Marking nut-cgi-2.2.2-4.fc8.i386.rpm as an update to nut-cgi-2.2.0-6.1.fc8.i386
Resolving Dependencies
--> Running transaction check
---> Package nut-xml.i386 0:2.2.2-4.fc8 set to be updated
---> Package nut-hal.i386 0:2.2.2-4.fc8 set to be updated
---> Package nut.i386 0:2.2.2-4.fc8 set to be updated
---> Package nut-cgi.i386 0:2.2.2-4.fc8 set to be updated
---> Package nut-debuginfo.i386 0:2.2.2-4.fc8 set to be updated
---> Package nut-client.i386 0:2.2.2-4.fc8 set to be updated
---> Package nut-devel.i386 0:2.2.2-4.fc8 set to be updated
--> Processing Dependency: openssl-devel for package: nut-devel
--> Running transaction check
---> Package openssl-devel.i386 0:0.9.8b-17.fc8 set to be updated
--> Processing Dependency: krb5-devel for package: openssl-devel
--> Processing Dependency: zlib-devel for package: openssl-devel
--> Running transaction check
---> Package krb5-devel.i386 0:1.6.2-14.fc8 set to be updated
--> Processing Dependency: libselinux-devel for package: krb5-devel
--> Processing Dependency: e2fsprogs-devel for package: krb5-devel
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel
---> Package zlib-devel.i386 0:1.2.3-14.fc8 set to be updated
--> Running transaction check
---> Package libselinux-devel.i386 0:2.0.43-1.fc8 set to be updated
--> Processing Dependency: libsepol-devel >= 2.0.10-1 for package: libselinux-devel
---> Package keyutils-libs-devel.i386 0:1.2-2.fc6 set to be updated
---> Package e2fsprogs-devel.i386 0:1.40.4-3.fc8 set to be updated
--> Processing Dependency: device-mapper-devel >= 1.02.02-3 for package: e2fsprogs-devel
--> Running transaction check
---> Package libsepol-devel.i386 0:2.0.15-1.fc8 set to be updated
---> Package device-mapper-devel.i386 0:1.02.22-1.fc8 set to be updated
--> Processing Conflict: nut-hal conflicts nut
--> Finished Dependency Resolution
nut-hal-2.2.2-4.fc8.i386 from nut-hal-2.2.2-4.fc8.i386.rpm has depsolving problems
--> nut-hal conflicts with nut
Error: nut-hal conflicts with nut
[root@localhost Desktop]#

leigh123linux
5th March 2009, 05:24 PM
Try



yum --nogpgcheck localinstall nut-xml-2.2.2-4.fc8.i386.rpm nut-hal-2.2.2-4.fc8.i386.rpm nut-client-2.2.2-4.fc8.i386.rpm nut-cgi-2.2.2-4.fc8.i386.rpm

Onehand
5th March 2009, 06:35 PM
Tried that. Results:


[root@localhost ~]# su
[root@localhost ~]# cd Desktop
[root@localhost Desktop]# yum --nogpgcheck localinstall nut-xml-2.2.2-4.fc8.i386.rpm nut-hal-2.2.2-4.fc8.i386.rpm nut-client-2.2.2-4.fc8.i386.rpm nut-cgi-2.2.2-4.fc8.i386.rpm
Setting up Local Package Process
Examining nut-xml-2.2.2-4.fc8.i386.rpm: nut-xml-2.2.2-4.fc8.i386
Marking nut-xml-2.2.2-4.fc8.i386.rpm to be installed
Examining nut-hal-2.2.2-4.fc8.i386.rpm: nut-hal-2.2.2-4.fc8.i386
Marking nut-hal-2.2.2-4.fc8.i386.rpm to be installed
Examining nut-client-2.2.2-4.fc8.i386.rpm: nut-client-2.2.2-4.fc8.i386
Marking nut-client-2.2.2-4.fc8.i386.rpm as an update to nut-client-2.2.0-6.1.fc8.i386
Examining nut-cgi-2.2.2-4.fc8.i386.rpm: nut-cgi-2.2.2-4.fc8.i386
Marking nut-cgi-2.2.2-4.fc8.i386.rpm as an update to nut-cgi-2.2.0-6.1.fc8.i386
Resolving Dependencies
--> Running transaction check
---> Package nut-xml.i386 0:2.2.2-4.fc8 set to be updated
---> Package nut-hal.i386 0:2.2.2-4.fc8 set to be updated
--> Processing Dependency: libupsclient.so.0 for package: nut
---> Package nut-cgi.i386 0:2.2.2-4.fc8 set to be updated
---> Package nut-client.i386 0:2.2.2-4.fc8 set to be updated
--> Processing Conflict: nut-hal conflicts nut
--> Finished Dependency Resolution
nut-2.2.0-6.1.fc8.i386 from installed has depsolving problems
--> Missing Dependency: libupsclient.so.0 is needed by package nut-2.2.0-6.1.fc8.i386 (installed)
nut-hal-2.2.2-4.fc8.i386 from nut-hal-2.2.2-4.fc8.i386.rpm has depsolving problems
--> nut-hal conflicts with nut
Error: Missing Dependency: libupsclient.so.0 is needed by package nut-2.2.0-6.1.fc8.i386 (installed)
Error: nut-hal conflicts with nut
[root@localhost Desktop]#


I guess I'll have to uninstall previous versions??

leigh123linux
5th March 2009, 06:37 PM
Tried that. Results:


[root@localhost ~]# su
[root@localhost ~]# cd Desktop
[root@localhost Desktop]# yum --nogpgcheck localinstall nut-xml-2.2.2-4.fc8.i386.rpm nut-hal-2.2.2-4.fc8.i386.rpm nut-client-2.2.2-4.fc8.i386.rpm nut-cgi-2.2.2-4.fc8.i386.rpm
Setting up Local Package Process
Examining nut-xml-2.2.2-4.fc8.i386.rpm: nut-xml-2.2.2-4.fc8.i386
Marking nut-xml-2.2.2-4.fc8.i386.rpm to be installed
Examining nut-hal-2.2.2-4.fc8.i386.rpm: nut-hal-2.2.2-4.fc8.i386
Marking nut-hal-2.2.2-4.fc8.i386.rpm to be installed
Examining nut-client-2.2.2-4.fc8.i386.rpm: nut-client-2.2.2-4.fc8.i386
Marking nut-client-2.2.2-4.fc8.i386.rpm as an update to nut-client-2.2.0-6.1.fc8.i386
Examining nut-cgi-2.2.2-4.fc8.i386.rpm: nut-cgi-2.2.2-4.fc8.i386
Marking nut-cgi-2.2.2-4.fc8.i386.rpm as an update to nut-cgi-2.2.0-6.1.fc8.i386
Resolving Dependencies
--> Running transaction check
---> Package nut-xml.i386 0:2.2.2-4.fc8 set to be updated
---> Package nut-hal.i386 0:2.2.2-4.fc8 set to be updated
--> Processing Dependency: libupsclient.so.0 for package: nut
---> Package nut-cgi.i386 0:2.2.2-4.fc8 set to be updated
---> Package nut-client.i386 0:2.2.2-4.fc8 set to be updated
--> Processing Conflict: nut-hal conflicts nut
--> Finished Dependency Resolution
nut-2.2.0-6.1.fc8.i386 from installed has depsolving problems
--> Missing Dependency: libupsclient.so.0 is needed by package nut-2.2.0-6.1.fc8.i386 (installed)
nut-hal-2.2.2-4.fc8.i386 from nut-hal-2.2.2-4.fc8.i386.rpm has depsolving problems
--> nut-hal conflicts with nut
Error: Missing Dependency: libupsclient.so.0 is needed by package nut-2.2.0-6.1.fc8.i386 (installed)
Error: nut-hal conflicts with nut
[root@localhost Desktop]#


I guess I'll have to uninstall previous versions??


Yes.


su
rpm -e nut-2.2.0-6.1.fc8.i386

Onehand
5th March 2009, 07:07 PM
Bingo!

That did it! Thanx for all of the help.

What further configuration is necessary for startup?