[PLUG] Remote Xnest over SSH uHOWTO
Karl M. Hegbloom
karlheg at pdxlinux.org
Mon Dec 23 20:55:05 UTC 2002
Log into the remote machine, with "ssh -X".
Run "xauth list" and "echo $DISPLAY".
Get the magic cookie for your DISPLAY, and run:
xauth add localhost:N MIT-MAGIC-COOKIE ...
... replacing N with an arbitrary display number for the Xnest's
display, and the ... with the cookie listed previously.
Run:
Xnest :N -cookie ... >/dev/null 2>&1 </dev/null &
... and wait for it to appear.
Now you can connect to it like:
xterm -display localhost:N
You could run an entire Gnome session on it if you wanted to. If that
remote host is running GDM, KDM, or XDM, you could probably run:
Xnest :N -query locahost
... and not need the Xauth magic and the -cookie argument to Xnest.
More information about the PLUG
mailing list