Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Two hosts, both running RHEL6.2. One (hostA) has a X installed, the other (hostB) does not. Installing X on the second host is not an option. Runnning 'echo $DISPLAY' on hostA returns ':10.0'.

On hostA, I've: - xhost +

On hostB, I've: - export DISPLAY=hostA:10.0

Running 'ps -ef | grep nolisten' on hostA shows: me 2400 2398 3 10:47 ? 00:00:01 Xvnc :10 -geometry 1680x1050 -depth 24 -rfbauth /home/me/.vnc/sesman_me_passwd -bs -ac -nolisten tcp -localhost -dpi 96

How do I remove the '-nolisten tcp -localhost' remove Xvnc?

I've followed the points in Karmic Koala (Ubuntu): enable remote x clients through TCP without any luck.

share|improve this question

Connect to hostA from hostB using ssh with X11 forwarding enabled. ssh -Y username@hostA or ssh -X username@hostA should work. From your session, run the X application of your choice.

share|improve this answer
Thanks @ewwhite but it turned out to be hard set in /etc/xrdp/sesman.ini. – user1174838 Feb 21 '12 at 6:34

I am assuming that you wish to have a program running on hostB to display its the UI on hostA, which apparently is running Xvnc (which again means you'd be seeing the actual UI on a vnc client possibly running elsewhere).

You could use ssh X11 forwarding on the lines of what ewwhite had pointed out. However you'd have to connect from hostA (which runs X) to host B (which runs the app that needs X). That is to say, run the command ssh -Y user@hostB on hostA, and in the newly connected ssh session run the application program.

Also, I don't think you'd have to enable TCP listening if you use ssh X11 forwarding. ssh daemon on hostB would use the unix socket to talk to X running locally.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.