Saturday 11 July 2015

Headless firewall-config on RHEL 7.1


The following package dependencies are missing on firewall-config-0.3.9-11.el7.noarch

  • libcanberra-gtk3-0.30-5.el7.x86_64
  • PackageKit-gtk3-module-0.8.9-11.el7.x86_64
  • NetworkManager-glib.x86_64
  • xorg-x11-fonts-ISO8859-1-100dpi
  • xorg-x11-fonts-ISO8859-1-75dpi
  • xorg-x11-fonts-misc
  • xorg-x11-fonts-Type1
  • xorg-x11-font-utils

Without these extra packages running firewall-config over "ssh -Y" fails.

Try this to get it working in one command:

yum install firewall-config xorg-x11-xauth libcanberra-gtk3-0.30-5.el7.x86_64 PackageKit-gtk3-module-0.8.9-11.el7.x86_64 NetworkManager-glib.x86_64 xorg-x11-fonts-ISO8859-1-100dpi xorg-x11-fonts-ISO8859-1-75dpi xorg-x11-fonts-misc xorg-x11-fonts-Type1 xorg-x11-font-utils

============================
The error message was:


# firewall-config

** (firewall-config:1325): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-uu77vqCHr1: Connection refused
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
ERROR:root:Could not find any typelib for NetworkManager
Traceback (most recent call last):
  File "/usr/bin/firewall-config", line 34, in <module>
    from gi.repository import NetworkManager
ImportError: cannot import name NetworkManager