[CentOS] How to export X displays
John R Pierce
pierce at hogranch.com
Wed Oct 10 03:05:16 UTC 2007
techlists at comcast.net wrote:
> -------------- Original message ----------------------
> From: Ow Mun Heng <Ow.Mun.Heng at wdc.com>
>
>> n Wed, 2007-10-10 at 02:14 +0000, techlists at 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]
More information about the CentOS
mailing list