remote X

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kurt Granroth
Date:  
Subject: remote X
Am 25. Jul, 2003 schw=C3=A4tzte Craig White so:
> I have VNC up, running and working just fine but I think that I would
> like to play with xwindows without the VNC. I am considering that this
> is a trusted network...
>
> I have tried...
>
> on server - 'xhost + 192.168.2.100
>
> and from client - logged in via ssh as a user and then...
>
> 'xterm -display 192.168.2.100'
>
> and gotten an error (something like, unable to open display)


Ignoring the better option of using xauth and ssh for the moment, here is a=
=20
step by step xhost example.

Assume remote machine is called 'remote' (ip: 192.168.1.100) and local mach=
ine=20
is 'local' (ip: 192.168.1.200). You are running X on 'local' and want to=20
start up an xterm on 'remote' and have it display on 'local's X display.

On 'local', run the following command:

local% xhost +192.168.1.100

On 'remote', run the following command:

remote% export DISPLAY=3D"192.168.1.200:0"
remote% xterm

=2DOR-

remote% xterm -display 192.168.1.200:0

Note the trailing :0. That is *critical*.