Remote X

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: der.hans
Date:  
Subject: Remote X
Am 17. Sep, 2001 schwätzte Nathan England so:

> That's the part I don't know how to do!!! How do I attach to it?
> So far, the most I can do is ssh into the desktop then run an individual
> program.. I didn't have xhost set, which is why I couldn't do anything
> before, so atleast now I can run individual apps.


If you're using ssh, then you don't need to muck with xhost. Make sure to
use xforwarding for ssh. -X on cl or "ForwardX11 yes" in
/etc/ssh/ssh_config. The ForwardX11 can also be in ~/.ssh/config.

> Well, this is all at home and it's only my laptop/server/desktop on the
> network, so I don't care about security with this. But it's a good idea
> for work.. Though, once I run Xnest, I just get an empty X window.. I
> guess I'm missing something.


Forgot to mention that Xnest doesn't start wm. It should be able to, just
like startx does, but I've not really looked into it.

Provided cookies get set correctly.

Xnest :1 &
/path/to/wm/wm -display :1 &
/usr/bin/X11/xterm -display :1 &

I have some boxen where this works well. On others I have to use '-ac' for
Xnest. Unfortunately that's the equivalent of "xhost +". Haven't looked into
why it doesn't work in those cases.

ciao,

der.hans
--
# home.pages.de/~lufthans/ www.DevelopOnline.com
# I chose to use the kernel sources as my documentation. ;-)
# -- Kevin Buettner