-------------- Original message ---------------------- From: John R Pierce pierce@hogranch.com
techlists@comcast.net wrote:
-------------- Original message ---------------------- From: Ow Mun Heng Ow.Mun.Heng@wdc.com
n Wed, 2007-10-10 at 02:14 +0000, techlists@comcast.net wrote:
I have a CentOS server at home and want to view the X display on a laptop
running Ubuntu, and not having much success.
Here's what's been tried so far:
I ran this command on the CentOS server:
export DISPLAY=192.168.0.18:0.0
ssh -X -Y centos
xclock &
I tried that and am getting this error message. Just ran an nmap scan on
192.168.0.18 and the X server port doesn't appear to be open. How is that enabled?
connect 192.168.0.18 port 6000: Connection refused
its tunnneld from localhost via SSH
you don't mess with setting DISPLAY at all, the ssh -X session should do that for you, DISPLAY will be set to something like...
$ echo $DISPLAY localhost:11.0
[where the :11 will be different for each ssh session]
Thanks to John, Akemi and Ow. That seems to have worked.
One other question. If a program is already running on the remote machine and you want to move the display to the local machine, can that be done?
i.e. I have Thunderbird already running on the remote machine, and would like to move it to the local machine.
Would that work? Or would it be necessary to kill the remote process and re-start it with the tunneled X session?
Thanks,
Paul