remote X

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
Subject: remote X
On 25 Jul 2003, Craig White wrote:

> Anyway, what I have done this far is...
>
> from cli on client...
> Server - logged in via ssh, as root 'xhost + 192.168.2.100'
>             su - username then 'xterm -display 192.168.1.100'


Don't use just an IP address (as explained earlier). You must include the
displaynumber (optionally followed by screennumber). See X manual page.

> got the message unable to open display
>
> tried 'echo $DISPLAY 192.168.2.100'
> and 'echo $DISPLAY 192.168.2.100:0'
> and 'echo $DISPLAY 192.168.2.100:1'
>
> none workee


Why are you doing those echo statements?

> I don't get it.


Try:

export DISPLAY=192.168.2.100:0 # if using a bourne shell
xeyes # or xterm


Jeremy C. Reed
http://www.reedmedia.net/