Minimal X Applications Needed To Export To Remote Server?

Home » CentOS » Minimal X Applications Needed To Export To Remote Server?
CentOS 7 Comments

I’m running a piece of network backup software called ‘bacula’, on a minimal CentOS 6.4 install. I got everything working pretty well, but there’s one piece giving me some problem– a component which gives status info via a GUI. In the past, on previous installations, I could SSH to the bacula server with the -X option, and run the application (called ‘bat’), and it would display back.  I’d have to make sure the sshd_config permits Xforwarding, but that was all.

On my new CentOS 6.4 minimal, I always get:

bat: cannot connect to X server I tried the usual tricks of exporting the display to my system where I want to see the GUI, which shouldn’t be necessary anyway due to the ‘ssh -X’, but I thought I’d give it a shot.  Still no go.

I figured something was missing, since it is a minimal install, with no X.   So I installed ‘xlogo’, thinking maybe all the X stuff needed to display that would be installed.  By installing xlogo, I got a bunch of X stuff, including:

xorg-x11-apps-7.6-6.el6.x86_64

I also have:

libXau-1.0.6-4.el6.x86_64
libX11-1.5.0-4.el6.x86_64
libXrender-0.9.7-2.el6.x86_64
libXcursor-1.1.13-2.el6.x86_64
libXft-2.3.1-2.el6.x86_64
libXxf86vm-1.1.2-2.el6.x86_64
libXi-1.6.1-3.el6.x86_64
libXmu-1.1.1-2.el6.x86_64
libXaw-1.0.11-2.el6.x86_64
libX11-common-1.5.0-4.el6.noarch libXext-1.3.1-2.el6.x86_64
libXfixes-5.0-3.el6.x86_64
libXdamage-1.1.3-4.el6.x86_64
libXrandr-1.4.0-1.el6.x86_64
libXinerama-1.1.2-2.el6.x86_64
libXv-1.0.7-2.el6.x86_64
libXt-1.1.3-1.el6.x86_64
libXpm-3.5.10-2.el6.x86_64

But I still get the error.

Anyone know which package/rpm/lib I am missing?

Thanks!

Regards, Joseph Spenner

7 thoughts on - Minimal X Applications Needed To Export To Remote Server?

  • Did you try -Y instead of -X? It has never been clear to me which things need -Y so I generally just use -Y all the time. Also adding
    -v or -vv to the SSH args will sometimes show the details about what is failing. You probably need the xorg-x11-xauth package if you don’t have it.

  • You’ve probably already checked, but does the sshd_config deny X11 forwarding?

    Did you allow the remote via xhost on your local X server?

    Does your desktop require x11 magic cookies or other auth mechanism?

    You can test by temporarily installing tigervnc-server on the remote and connecting. If you can run it there it should work remotely.

  • Joseph Spenner wrote:
    minimal CentOS 6.4 install. some problem– a component which gives status info via a GUI. with the -X option, and run the application (called ‘bat’), and it would display back.  I’d have to make sure the sshd_config permits Xforwarding, but that was all. want to see the GUI, which shouldn’t be necessary anyway due to the ‘ssh
    -X’, but I thought I’d give it a shot.  Still no go. X.   So I installed ‘xlogo’, thinking maybe all the X stuff needed to display that would be installed.  By installing xlogo, I got a bunch of X stuff, including:

    I’d start out with yum groupinstall “X Window System”

    mark

  • At a minimum I would install xorg-x11-xauth, xorg-x11-tools, xorg-x11-apps, and xorg-x11-xterm. Also make sure you configure X11Forwarding to yes in sshd_config.

  • have it.

    Les:
      Thanks for the tip!   xorg-x11-xauth got me closer!  The xlogo does show up!
    However, when I run ‘bat’, I get the gui with a bunch of little squares instead of fonts/text:

    http://img835.imageshack.us/img835/7935/62gh.png

    So, looks like I need some font stuff!   Is there a package/RPM to get all those?

    Thanks for the help.  This is great!

    Regards, Joseph Spenner

  • I got the fonts.  All I did was:

    # yum install xorg-x11-fonts-*

    And all is good.

    Thanks for all the help everyone!

  • I find that I need these additional packages to run gui X-windows apps from remote systems.

    yum install xorg-x11-xauth dejavu-sans-fonts.noarch

LEAVE A COMMENT