<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.hermann-uwe.de" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Uwe Hermann - How to hijack an already running X11 application via ssh -X? - Comments</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x</link>
 <description>Comments for &quot;How to hijack an already running X11 application via ssh -X?&quot;</description>
 <language>en</language>
<item>
 <title>A year later, did you</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-43083</link>
 <description>&lt;p&gt;A year later, did you succeed? My findings after trying the solutions offered here:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;xmove&lt;/strong&gt; to old or something, does not work: &quot;gethostbyname failed: No such file or directory&quot; as well as X authorization issues.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;vnc&lt;/strong&gt; does work, but only on the whole screen, not on application level, or is this somehow possible?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;gtk-demo&lt;/strong&gt; indeed shows it can be done if the application supports it itself. probably the most promising solution if it becomes a standard.&lt;/p&gt;
</description>
 <pubDate>Wed, 02 May 2007 09:47:27 +0200</pubDate>
 <dc:creator>Hugo</dc:creator>
 <guid isPermaLink="false">comment 43083 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>Moving from one Display to another needs toolkit support</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16318</link>
 <description>&lt;p&gt;some programms/toolkits support moving applications from one Xserver to another.&lt;br /&gt;
I think gtk has the needed lowlevel stuff.&lt;/p&gt;
&lt;p&gt;try installing gtk2.0-examples (for debian based systems) and run gtk-demo, select Change Display and push windows from that demo to other xservers.&lt;br /&gt;
It works for me... But i don&#039;t know any application that exposes that functionality in it&#039;s normal user interface. (xemacs can do something  similar but not quite the same).... &lt;/p&gt;
&lt;p&gt;It seems all that&#039;s missing is some nice way to force applications to call gtk_window_set_display(...) at the right time... maybe some clever gtk plugin/module anyone?  (or for the wicked: maybe gdb ist enough? XD)&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 23:13:02 +0200</pubDate>
 <dc:creator>textshell</dc:creator>
 <guid isPermaLink="false">comment 16318 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>x11vnc</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16199</link>
 <description>&lt;p&gt;http://karlrunge.com/x11vnc/&lt;br /&gt;
works fine for me with script #1.&lt;br /&gt;
( just a bit of setup to do the first time with vnc passwords, etc... )&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 16:18:33 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 16199 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>VNC</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16118</link>
 <description>&lt;p&gt;You may install a vnc server and log in to that X session over vnc. This worked for me using Windows and/or Debian GNU Linux.&lt;/p&gt;
&lt;p&gt;Give it a try.&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 10:08:31 +0200</pubDate>
 <dc:creator>emodul</dc:creator>
 <guid isPermaLink="false">comment 16118 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>xmove</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16110</link>
 <description>&lt;p&gt;The only thing I found was running xmove &lt;strong&gt;before&lt;/strong&gt; launching any application. xmove creates a virtual X display (For example :1), and allows to move any app between real X displays.&lt;/p&gt;
&lt;p&gt;However, it is no really moving the app, only redirecting its display...&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 09:45:21 +0200</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 16110 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>Try xmove</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16109</link>
 <description>&lt;p&gt;Hi Uwe,&lt;/p&gt;
&lt;p&gt;You could try xmove. From the desription:&lt;br /&gt;
&quot;allows you to move programs between X Window System displays&quot;&lt;/p&gt;
&lt;p&gt;Gregor&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 09:44:22 +0200</pubDate>
 <dc:creator>Gregor Jasny</dc:creator>
 <guid isPermaLink="false">comment 16109 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>VNC</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16100</link>
 <description>&lt;p&gt;Another option is VNC. It is possible to run a VNC server that connects to the remote X11 server, and serves it up over the RFB protocol. GNOME and KDE both have built in software to do this (GNOME&#039;s is called vino).  If you use another desktop environment then you can run x0rfbserver to do the same.&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 09:24:41 +0200</pubDate>
 <dc:creator>Sam Morris</dc:creator>
 <guid isPermaLink="false">comment 16100 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>xmove</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16094</link>
 <description>&lt;p&gt;An alternative would be xmove, however that requires you to start the applications under a virtual DISPLAY and then select where it is drawn.&lt;br /&gt;
It doesn&#039;t support some of the extensions that gnome etc seem to require either - NX is almost certainly a better choice, but just in case...&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 09:10:54 +0200</pubDate>
 <dc:creator>Adrian Bridgett</dc:creator>
 <guid isPermaLink="false">comment 16094 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>Vino</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16093</link>
 <description>&lt;p&gt;If you are using GNOME i think Vino does allmost what you want, but with vnc.&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 09:06:35 +0200</pubDate>
 <dc:creator>Jimmy</dc:creator>
 <guid isPermaLink="false">comment 16093 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>Probably impossible</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16092</link>
 <description>&lt;p&gt;Notice that your old application:&lt;br /&gt;
- runs on the remote host&lt;br /&gt;
- displays on the remote host&#039;s X server&lt;br /&gt;
while the new application (the one in ssh -X):&lt;br /&gt;
- runs on the remote host&lt;br /&gt;
- displays on the local host&#039;s X server&lt;/p&gt;
&lt;p&gt;So this probably makes it impossible to do what you want.&lt;/p&gt;
&lt;p&gt;The only solution would be to use the X equivalent of GNU screen, which must be either freenx (as already pointed out) or vnc.&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 08:35:16 +0200</pubDate>
 <dc:creator>Snark</dc:creator>
 <guid isPermaLink="false">comment 16092 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>VNC for :0</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16091</link>
 <description>&lt;p&gt;Run one of the VNC servers that serves the currently display, such as x0rfbserver (package rfb) or x11vnc, using DISPLAY=:0, then run an appropriate vnc viewer.  ssh -X not needed, though you may want to tunnel the VNC connection.&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 08:31:19 +0200</pubDate>
 <dc:creator>Josh Triplett</dc:creator>
 <guid isPermaLink="false">comment 16091 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>xmove</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16070</link>
 <description>&lt;p&gt;Not quite ssh, but when last I asked this question I was pointed to &lt;a href=&quot;http://packages.debian.org/unstable/x11/xmove&quot;&gt;xmove&lt;/a&gt;, which didn&#039;t work out for me. But maybe you&#039;re more lucky.&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 07:30:28 +0200</pubDate>
 <dc:creator>Meep</dc:creator>
 <guid isPermaLink="false">comment 16070 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>.Xauthority</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16063</link>
 <description>&lt;p&gt;I think if you grab your .Xauthority file on your home box and move it local or integrate its authorization info into your local .Xauthority, you can begin to screw with it. But I may just be talking out of my butt here.&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 06:38:56 +0200</pubDate>
 <dc:creator>Ryan</dc:creator>
 <guid isPermaLink="false">comment 16063 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>xmove</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16057</link>
 <description>&lt;p&gt;You can use xmove, and application that allow the user to move applications from one X Display to another one.   It exists as Debian package.  It has a restriction: xmove should be running before you want to move the application.  That is all.&lt;/p&gt;
&lt;p&gt;There is another project under work, where you can move process between computers (in a similar fashion of xmove).  This is being developed using the same code base of swsusp: if you can save a portion of memory to hibernate, you can restore that &quot;image saved&quot; in another computer with similar installation.&lt;/p&gt;
&lt;p&gt;I do not remember the name of that project and I am too tired to look at the bookmarks at this hour of the day.&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 06:26:14 +0200</pubDate>
 <dc:creator>Germán Poó-Caamaño</dc:creator>
 <guid isPermaLink="false">comment 16057 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>xmove?</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comment-16046</link>
 <description>&lt;p&gt;Never tested it, but it seems to do something similar to what you want:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://packages.debian.org/unstable/x11/xmove&quot;&gt;http://packages.debian.org/unstable/x11/xmove&lt;/a&gt;&lt;/p&gt;
</description>
 <pubDate>Wed, 12 Apr 2006 05:58:01 +0200</pubDate>
 <dc:creator>Anderson Lizardo</dc:creator>
 <guid isPermaLink="false">comment 16046 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>How to hijack an already running X11 application via ssh -X?</title>
 <link>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x</link>
 <description>&lt;p&gt;Dear &lt;a href=&quot;http://en.wikipedia.org/wiki/Lazyweb&quot;&gt;Lazyweb&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I have always wondered whether it is possible to &quot;hijack&quot; an already running X11 application on a remote server...&lt;/p&gt;
&lt;p&gt;Say I have a box at home which has a running X11 server with many applications, e.g. Firefox, xchat, xmms, whatever. Now, say I&#039;m somewhere else with my laptop and login with &quot;&lt;code&gt;ssh -X&lt;/code&gt;&quot; into my home box. I can now start X11 applications and they will be shown on my laptop screen. So far so good.&lt;/p&gt;
&lt;p&gt;But... how can I get one of the applications that were already running &lt;em&gt;before&lt;/em&gt; I logged in from remote to be displayed on my laptop screen? Is it possible? How?&lt;/p&gt;
&lt;p&gt;Just curious.&lt;/p&gt;
</description>
 <comments>http://www.hermann-uwe.de/blog/how-to-hijack-an-already-running-x11-application-via-ssh-x#comments</comments>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/1320">display</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/1318">hijack</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/1321">lazyweb</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/1319">login</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/1322">remote</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/104">server</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/967">ssh</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/968">x11</category>
 <pubDate>Wed, 12 Apr 2006 03:36:35 +0200</pubDate>
 <dc:creator>Uwe Hermann</dc:creator>
 <guid isPermaLink="false">878 at http://www.hermann-uwe.de</guid>
</item>
</channel>
</rss>
