Situation: From Windows I connect to a remote Linux using putty with X11 port forwarding. Xming is able to display the desktop session in ONE Windows window.

If I connect from Linux with "ssh -Y host" I can start remote X programs that use the local X server to display their content. Several programs get each one it's own window.

Question is: Is there any possibility to encapsulate a complete remote desktop session (with window manager and all the other stuff) into a single lokal X window? Like the "one window" behavior you can get with Xming?

link|improve this question
feedback

2 Answers

up vote 2 down vote accepted

It's possible to have this if you launch a second X11 server in a "single window" mode. (In other words, exactly like you're doing it on Windows.) Use Xephyr or Xnest for this:

Xephyr :42 &
DISPLAY=:42 ssh -Y host

The X11 server determines how windows are displayed: you can run X11 fullscreen, you can contain the entire X11 screen within a single window of an already-running GUI, you can make X11 windows integrate to the already-running GUI. XWin and Xming have all three modes, while Linux has Xorg, Xephyr/Xnest and things like Xpra for each mode.

On Windows, the default GUI is only accessible through Windows API, so a X11 server needs to be started separately – in this case, you're starting Xming, in a "single window" mode.

On Linux, X11 is already running full-screen and ssh just connects to it. If you want to contain some programs to a single window, you also need to start a X11 server in a "single window" mode – only instead of Xming they're called Xephyr or Xnest.

link|improve this answer
Thanks. Xephyr works as expected. I will try out Xpra as well. – Uwe Dec 2 '11 at 19:06
@Uwe: You don't need Xpra - it will not work the way Xming and Xephyr do. I just included it for comparison. But an alternative to Xephyr is Xnest. – grawity Dec 2 '11 at 19:15
feedback

What you want is to start VNC or NX (in full desktop mode, not seamless) and start a full desktop session in it. This can be achieved from the command line, but it can be a bit tedious which is why there are tools like winswitch which make it easy for you to link up PCs and start sessions (just point and click).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.