At Fri, 6 Dec 2002 12:08:04 +1100, mick wrote:
> Being a GUI lover and having more than enough monitor acreage, I was
> hoping I would be able to get mandrake's GUI on my RedHat 7.3
> desktop in a small window that I could drag around.
the usual remote-Xwindows use is to display individual apps remotely.
so you would run any X program on your mandrake box and they would
appear on the redhat desktop, looking just like any other program.
rarely would you want to export "the whole desktop" (ie:
windowmanager, background and all).
this is very simple to do, all you have to do is start a shell on the
mandrake box (remotely from the redhat box, presumably) and then do:
(tell the X clients where to connect to)
mandrakebox% export DISPLAY=redhatbox.hostname.or.ip:0
(give the mandrake X clients the right "password" to be able to
access the redhat X server. this is unnecessary if using shared home
directories, since its all stored in ~/.Xauthority)
redhatbox% xauth list $DISPLAY
(copy the big hex number after MIT-MAGIC-COOKIE-1 to the clipboard)
mandrakebox% xauth add redhatbox.hostname.or.ip:0 MIT-MAGIC-COOKIE-1
pastebighexnumberfromabovecommand
(environment setup, now run whatever you want)
mandrakebox% xterm &
mandrakebox% mozilla &
there are various wrappers to automate the first two steps, the
easiest (and best imo) is probably rstart/rstartd. "ssh -X" is
another popular choice but on a private LAN, tunnelling through the
ssh connection adds unnecessary overhead.
if you really want to export the entire desktop, you could use
something designed for that, like VNC (see vncserver/xvncviewer).
if you simply want to start an entire login (windowmanager, etc)
running on the remote machine (rather than run single apps. this is
basically the extreme "thin client" or "dumb terminal" setup), then
you want to get xdm on the remote box to "manage" the X server on your
local box. "XDMCP" is the magic phrase to look for in the xdm docs
and "-query", "-broadcast" or "-indirect" are the magic options to the
Xserver. if you want to display this in a window on an existing
desktop, rather than on its own Xserver/virtual console, then run
xnest and get the remote xdm to manage that
("xnest -query redhatbox.hostname" iirc).
what you asked for is probably that last answer, what you wanted is
probably the first answer ;)
feel free to ask for clarification of any of the above. i brushed
over large parts very quickly.
--
- Gus
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug