Posso mover um aplicativo em execução para um servidor X diferente? [duplicado]

16

Existe alguma maneira de abrir um programa gráfico (por exemplo, o gedit) ao usar o encaminhamento do X11 através do SSH e transferir a conexão do servidor X de volta ao servidor X no host SSH?

    
por KG6ZVP 26.08.2014 / 20:40

1 resposta

23

Se você olhar para a página da Wikipedia sobre o assunto, há vários aplicativos mencionados.

Xmove

trecho

xmove is a computer program that allows the movement of X Window System applications between different displays and the persistence of X applications across X server restarts.[4] It solves a problem in the design of X, where an X client (an X application) is tied to the X server (X display) it was started on for its lifetime. Also, if the X server is shut down, the client application is forced to stop running.

xmove lets the client disconnect from its current X server, and connect to a new one, at any time. The transition is completely transparent to the client. xmove works by acting as a proxy between the client and server. It is a "pseudoserver" which stores enough server state so that clients can connect to a new server without being disrupted.

Xpra

trecho

xpra or X Persistent Remote Applications is a tool which allows you to run X clients usually on a remote host and then direct their display to your local machine without losing any state.1

It differs from standard X forwarding in that it allows disconnection and reconnection without disrupting the forwarded application. It differs from VNC and similar remote display technologies in that xpra is rootless: i.e., applications forwarded by xpra appear on your desktop as normal windows managed by your window manager, rather than being all "trapped in a box together". Xpra also uses a custom protocol that is self-tuning and relatively latency-insensitive, and thus is usable over worse links than standard X.

Guiado

trecho

guievict is a computer program which enables the GUI of any application for XFree86 implementation of X Window to be transparently migrated to or replicated on another display. Unlike some program providing similar functionalities, it requires neither prearranging steps such as re-linking the application program binary nor re-directing the application process's window system communication through a proxy like xmove does.

Guievict is based on a small X server extension that enables an application to retrieve its window state from the X server and a library of GUI migration functionality that is injected in the application process at run time. Code injection or runtime code-patching can be done via the DynInst API. However, guievict contains its own implementation to avoid requiring users to install DynInst.

Dos 3 destes, o Guievict soa como o que você está procurando, principalmente que ele pode verificar o estado do aplicativo X AppX e migrá-lo para outro servidor X, onde ele pode ser restaurado.

    
por 26.08.2014 / 23:39