Pac Manager on CentOS 7.1

This one is a sweet dependency hell, however, it is possible to get Pac Manager running using CentOS repo:s only (incl. epel) and one wget from cpan.

Since I’m running FreeBSD and Os X on my workstations and I have found that Pac Manager is the only really good connection manager I have encountered, I decided to set it up on a CentOS 7 vm and forward X over ssh to my FreeBSD workstation (Sure you can port the application, but for now this is the easy way).

So, this guide will show you how to get it running under a minimal CentOS 7 installation.  I’ve only tried with Pac Manager v but could probably work with other versions as well.

I’ve sourced parts of the solution from forums and pac manager discussion board, most of them were broken in one way or another but this one has been refined several times using a clean CentOS 7 installations.

Manual installation

  1. Download pac- from source forge.
  2. tar zvxf pac-
  3. cd pac
  4. The embedded gnome2 vte modules are causing conflicts, removing them will force the application to look system wide instead:
    find . -name “*” -exec rm -v {} +
  5. Perform a bunch of yum installs. 
    First enable epel repo:
    sudo yum install epel-release

    sudo yum install ftp perl-Gtk2.x86_64 unique-devel.x86_64 libglade2-devel.x86_64 perl-Socket6.x86_64 vte-devel.x86_64 GConf2-devel.x86_64 cpan perl-Gtk2 perl-YAML uuid-perl.x86_64 perl-Crypt-CBC.noarch

  6. Install development tools (maybe overkill with group install though):
    sudo yum groupinstall “Development tools”
  7. Bunch of cpan installs.You will be asked a few questions in some of these cpan installs, like

    This module requires X::Z to install itself.
    Install X::Z from CPAN? [n]

    Press Y on these.

    sudo cpan -if Module::Build
    sudo cpan -i IO::Stty
    sudo cpan -i Glib
    sudo cpan -i Expect
    sudo cpan -i Cairo
    sudo cpan -i Pango
    sudo cpan -if Gnome2::GConf
    sudo cpan -i Gtk2
    sudo cpan -i Gtk2::Unique
    sudo cpan -i Net:ARP
    sudo cpan -i Crypt::Rijndael
    sudo cpan -i Crypt::Blowfish
    sudo cpan -i Gtk2::Ex::Simple::List
    sudo cpan -i Gtk2::GladeXML

  8. Install Gnome2 vte:wget
    tar zvxf Gnome2-Vte-0.11.tar.gz
    cd Gnome2-Vte-0.11
    sudo perl Makefile.PL
    sudo make
    sudo make install
  9. Try starting pac now.

    Things needed for x11 forwarding (if you installed CentOS 7.1 minimal)

  1. sudo yum install xorg-x11-xauth dbus-x11
  2. Again, possibly overkill with groupinstall…
    sudo yum groupinstall ‘Fonts’
  3. Now you should be able to start pac manger by running the following command from the pac manager directory (don’t forget to ssh -X user@host):
    dbus-launch ./pac

Sometimes, when running dbus-launcher ./pac I get:

Gtk-WARNING **: cannot open display: localhost:10.0 at /usr/local/lib64/perl5/ line 168.

Log out/in from the SSH session solves this for me.

Scripted Installation

This script will install all dependences, except the ones related to X11 forwarding. Download the script from github: