Results 1 to 6 of 6

Thread: Tripp-lite PowerAlert RPM - can't convert with Alien

  1. #1
    Join Date
    Oct 2010
    Beans
    7

    Tripp-lite PowerAlert RPM - can't convert with Alien

    We got a big Tripp-Lite SmartOnline UPS in a while ago. Turns out the official Linux support for it is only in Fedora and OpenSUSE. I tried converting the .rpm packages of their management software and ran into the following problems:
    Code:
    error: cannot open Packages database in /home/jamie/.rpmdb
    Tried creating the folder and got:

    Code:
    error: cannot open Packages database in /home/jamie/.rpmdb
    error: cannot open Packages index using db3 - No such file or directory (2)
    So no go. It's 64-bit Ubuntu 10.10 and the RPMs are 32-bit. (And I have no idea if the PowerAlert tools will run sans GUI on the servers it will be powering anyway.)

    Anyone know what's wrong with Alien? I downloaded it from apt and as far as I can tell all the dependencies are in place.

    Anyone have experience getting PowerAlert to run on Ubuntu? I called their tech support and got the company line, no help there.

    I will try nut next, but I'm pesimistic - it had driver issues with the smaller Cyberpower UPSes that the workstations are running on (but Cyberpower at least has working .deb binaries!).

  2. #2
    Join Date
    Oct 2010
    Beans
    7

    Re: Tripp-lite PowerAlert RPM - can't convert with Alien

    one-week bump.

  3. #3
    Join Date
    Jun 2006
    Location
    Roanoke, VA
    Beans
    152
    Distro
    Ubuntu Development Release

    Re: Tripp-lite PowerAlert RPM - can't convert with Alien

    I'd love to know this as well...
    Ubuntu 11.04 on Work PC, Thinkpad T60, Media PC, and Asus Netbook
    Admin for Ubuntu SERVER 11.04 (x3 production boxes), SERVER 10.10 (x2 production boxes), Ubuntu SERVER 10.04.2 (x3 production boxes)

  4. #4
    Join Date
    Jun 2012
    Beans
    1

    Re: Tripp-lite PowerAlert RPM - can't convert with Alien

    Here's how I got this working:

    Download the Fedora RPM.
    Convert it to a gzipped tarball with alien --to-tgz pal-app-12.04.0053-1.i386-fedora.rpm
    Unzip it: tar -zxvf pal-12.04.0053.tgz
    Copy files across: cp -rpf var/* /var
    cp etc/init.d/pald /etc/init.d

    The pald init file does not work since it is looking for Redhat/Fedora init functions. I modified it thus:

    Code:
    #!/bin/bash
    prog=pald
    
    start() {
        echo -n $"Starting $prog: "
        start-stop-daemon --start --exec /var/tripplite/poweralert/engine/$prog --pidfile /var/run/${prog}.pid --make-pidfile
        RETVAL=$?
        echo
        [ "$RETVAL" = 0 ]
    }
    
    stop() {
        echo -n $"Stopping $prog: "
        start-stop-daemon --stop --name $prog 
        RETVAL=$?
        echo
        [ "$RETVAL" = 0 ] && rm -f /var/run/${prog}.pid
    }
    
    restart() {
        stop
        start
    }
    
    # See how we are called.
    case "$1" in
        start)
            start ;;
    
        stop)
            stop ;;
    
        restart)
            restart ;;
    
        *)
            echo $"Usage: $0 {start|stop|restart}"
            exit 1
    esac
    
    exit $RETVAL
    I created a symlink to the init file: ln -s /etc/init.d/pald /etc/rc5.d/S80pald

    The GUI monitoring software is in /var/tripplite/poweralert/console/pal_console.sh. You will need a relatively recent Java JRE. It seems to be working as expected so far. The only oddity is that the PID stored in /var/run/pald.pid does not match that returned by ps. I assume this is because the daemon forks itself into the background twice so it can release its controlling TTY and/or make itself a session group leader (an old daemon trick).

  5. #5
    Join Date
    Nov 2007
    Location
    Boston, USA
    Beans
    524
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Tripp-lite PowerAlert RPM - can't convert with Alien

    Quote Originally Posted by DavidAGG View Post
    Here's how I got this working:

    Download the Fedora RPM.
    Convert it to a gzipped tarball with alien --to-tgz pal-app-12.04.0053-1.i386-fedora.rpm
    Unzip it: tar -zxvf pal-12.04.0053.tgz
    Copy files across: cp -rpf var/* /var
    cp etc/init.d/pald /etc/init.d

    The pald init file does not work since it is looking for Redhat/Fedora init functions. I modified it thus:

    Code:
    #!/bin/bash
    prog=pald
    
    start() {
        echo -n $"Starting $prog: "
        start-stop-daemon --start --exec /var/tripplite/poweralert/engine/$prog --pidfile /var/run/${prog}.pid --make-pidfile
        RETVAL=$?
        echo
        [ "$RETVAL" = 0 ]
    }
    
    stop() {
        echo -n $"Stopping $prog: "
        start-stop-daemon --stop --name $prog 
        RETVAL=$?
        echo
        [ "$RETVAL" = 0 ] && rm -f /var/run/${prog}.pid
    }
    
    restart() {
        stop
        start
    }
    
    # See how we are called.
    case "$1" in
        start)
            start ;;
    
        stop)
            stop ;;
    
        restart)
            restart ;;
    
        *)
            echo $"Usage: $0 {start|stop|restart}"
            exit 1
    esac
    
    exit $RETVAL
    I created a symlink to the init file: ln -s /etc/init.d/pald /etc/rc5.d/S80pald

    The GUI monitoring software is in /var/tripplite/poweralert/console/pal_console.sh. You will need a relatively recent Java JRE. It seems to be working as expected so far. The only oddity is that the PID stored in /var/run/pald.pid does not match that returned by ps. I assume this is because the daemon forks itself into the background twice so it can release its controlling TTY and/or make itself a session group leader (an old daemon trick).
    This isn't working for me. My x64 Ubuntu server 12.04 will not run the pald executable.... presumably because it is a 32bit exec on a 64bit system. Installing ia32libs seemed way overkill. Any suggestions?

    Edit: I punted on there stuff and went with nut along with the tripplite_usb driver which is working great.
    Last edited by HDave; March 25th, 2013 at 06:47 AM.

  6. #6
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    14,846
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Tripp-lite PowerAlert RPM - can't convert with Alien

    Thanks for sharing,please do not post in threads that have not had activity for a year or longer, since this is an old thread it has been closed.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •