1

I have an application installed in my RHEL6 box that has a GUI (AppGui.sh). My problem is that a few non-tech users would like to access this GUI remotely. I've tried several guides over the internet but I still cant make it work.

I tried: -Installing X Window System -Enabling FORWARDX11=yes in my sshd_config -Exporting $DISPLAY variable -Connecting through ssh -X user@host (simply stays there)

How can I setup my box from scratch to make this work?

Rhyuk
  • 379
  • 2
  • 7
  • 15

2 Answers2

3

You could do this the easy way with NoMachine (NX). It's basically compressed X11 over SSH. So all you'll need on the remote side is a client (Mac, Windows, Linux) and to install a server piece on the RHEL6 box you're trying to connect to.

Anything else if going to be a bit slow (raw X11 forwarding), choppy (VNC) or a pain to setup (what you're going through now).

ewwhite
  • 194,921
  • 91
  • 434
  • 799
  • Ok will try this now and Ill let you know. – Rhyuk Oct 05 '12 at 13:17
  • Ugh... its giving me errors at the start session... `Oct 5 09:59:06 isvahlrtk01 NXSERVER-3.5.0-11[53330]: ERROR: (exception id 5B3926AB) NX> 596 ERROR: execution of last command failed Oct 5 09:59:06 isvahlrtk01 NXSERVER-3.5.0-11[53330]: ERROR: (exception id 5B3926AB) NX> 596 last command: /usr/bin/xauth -v -f /home/tkadmin/.nx/C-isvahlrtk01-1004-A4C27A6B9F9A3BA43DECD3703AF73C9B/authority source /home/tkadmin/.nx/C-isvahlrtk01-1004-A4C27A6B9F9A3BA43DECD3703AF73C9B/scripts/authority` – Rhyuk Oct 05 '12 at 14:02
  • Ok found the solution for that problem. You need to add your hostname to `/etc/hosts` like this "127.0.0.1 localhost.localdomain localhost my_simple_hostname_here" now to deal with another error. Will keep you posted. – Rhyuk Oct 05 '12 at 14:10
  • @Rhyuk Your `/etc/hosts` should follow [these guidelines](http://serverfault.com/questions/331936/setting-the-hostname-fqdn-or-short-name/331942#331942). – ewwhite Oct 05 '12 at 14:16
  • Good News! Got it working! Bad news, theres a known bug with gnome desktop. Only loads background and the CTRL+ALT+R workaround doesnt work for me :/ – Rhyuk Oct 05 '12 at 14:41
  • Gnome doesn't load and KDE wont install because of a mysql-lib dependency. Ugh... – Rhyuk Oct 05 '12 at 16:04
  • Did you run a `yum groupinstall "KDE Desktop"`? – ewwhite Oct 05 '12 at 16:09
  • Fixed the dependency hell I had. Its working fine now! Thanks a lot! – Rhyuk Oct 08 '12 at 19:47
0

The easiest way for me is to use MobaXterm: you just have to

You have nothing else to do: MobaXterm automatically starts an X11 server and uses X11-Forwarding to display your remote GUI app. This is done without any need for further configuration, so it is very easy.

Didier
  • 136
  • 2