14

Is there a way to save/detach an xterm (or another window), and reopen/load/reattach it on a different X session on the same machine ?

What I'm trying to achieve is "move" running xterms between two VNC sessions running on a machine.

No, I'm not looking for screen :)

I do not want to use screen, because then I will need to use a separate screen session for each xterm. Using multiple tabs in screen does not work fine for my case, as I need to look at multiple xterms at once - not switch between the tabs.

NX is another option which came up, but it requires privileges on the server to install the s/w. I am looking for some solution using X, or some option in one of the window managers directly. fvwm / xfce / gnome would be good, but other WMs having this facility are welcome too.

Abhinav
  • 2,040

9 Answers9

10

I know this post is old but...

http://xpra.org/ Xpra is 'screen for X'

...Crazy how many people seemed to have answered without actually reading your question. Xpra will not only let you move applications from one display to another on any machine, it will allow you to totally shut disconnect the apps from any real display and then re-attach later.

4

Not quite what you've asked for, but screen may do what you want.

This shares at the shell level rather than the X-window level, so you could have two xterms (on different Xservers, so long as they were on the same box), running screen -x, which would show the same sh sessions.

This wouldn't work for non-terminal things.

EDIT: xpra is probably what you want.

Greg
  • 315
2

You can use screen within an xterm. This is a program that allows you to attach and detach terminal sessions. So you would start an xterm, start screen within the xterm, and use the xterm as normal. To move the session, you would detach from the session within screen and exit the xterm. Start up another xterm somewhere else, and reattach to the existing screen session.

If you want to do it with any X program, you can use NX. It works like screen, in that you are able to detach/attach to a X server. It also understands the X11 protocol, so it does a good job at speeding up X over slow networks.

KeithB
  • 10,386
2

CryoPID used to be able to move GTK+ applications (like gnome-terminal) between X servers. It's been unmaintained for a while, so it might not work at the moment, but some people have picked it up and started working on it again.

TRS-80
  • 3,473
1

As shipped? No. There used to be a "xmovex" application which would sometimes kinda do what you are asking, but it wasn't very popular and didn't work very well.

There are a couple of ways to get close to what you want:

  • run the desktop in a vnc session then connect to that from everywhere;
  • share your desktop through x11vnc;
  • look into nx and freenx.
1

No. Out of the box X does not have this facility. If you want to do this the best way is to use XVNC which is an x server that renders to a VNC virtual frame buffer. Then you can connect to your X session using a VNC client.

1

Have you looked into xmove?

http://en.wikipedia.org/wiki/Xmove

0

If you only care about the command-line session inside the xterm, use screen

Roalt
  • 463
0

I wonder if you are looking for export display handling.

nik
  • 57,042