A few days ago, stefan demoed x2x to me, and i’ve fallen in love with it since. If you’re not regularly working with multiple machines (like a desktop and a laptop next to it) it probably won’t be of much use, but if you do, this little program allowes you to forward mouse and keyboard events from one X server to another simply by leaving the screen with the mouse (it also allows relaying of the PRIMARY selection between displays). So i’ve put my old laptop next to the desktop screen now and use it as some kind of screen extension, mostly for IM/IRC. Here’s the ssh command i’m using from the desktop machine to spawn the forwarding without doing insecure xhost hackery:
Note that the ssh user@remotehost -X 'DISPLAY=remotehost:0.0 x2x -from $DISPLAY -east' </dev/null &
$DISPLAY is evaluated by the ssh shell and will expand to the display of the forwarded X connection, instead of the display value x2x is started with.
- This blog is mostly about technical stuff related to my projects.My homepage has contacts and a project list.
-
Blogroll
-
Categories
-
Recent Posts
-
Recent Comments
-
Archives
- September 2009 (1)
- April 2009 (1)
- October 2008 (2)
- September 2008 (1)
- July 2008 (1)
- June 2008 (3)
- May 2008 (1)
- April 2008 (2)
- February 2008 (1)
- October 2007 (2)
- September 2007 (3)
- August 2007 (2)
- July 2007 (2)
- June 2007 (4)
- April 2007 (3)
- March 2007 (1)
- January 2007 (2)
- December 2006 (2)
- November 2006 (2)
- October 2006 (1)
- September 2006 (2)
- August 2006 (1)
- July 2006 (1)
- June 2006 (1)
- May 2006 (2)
- April 2006 (3)
- February 2006 (2)
- January 2006 (1)
- December 2005 (3)
- November 2005 (2)
- September 2005 (1)
- August 2005 (3)
- July 2005 (6)
- June 2005 (12)
4 Comments
And if you want the thing to support multiple pltforms including mac os x and windows (and added bonus of a shared clipboard) you may want to look at http://synergy2.sf.net
If you use both -from and -to options for x2x, you won’t need to obfuscate the command line by overriding $DISPLAY.
There’s also x2vnc if you want to go cross-platform. I haven’t used synergy. (No preview button? Pity.)This is so cool. Thanks :-)
I have really fallen in love with x2x. For some reason two big LCDs are not enough for me–my thirst for more screen space was slaked by x2x. I don’t use it as I would use two machines but rather to create the illusion that my primary computer has three displays. Of course, I do it in a completely insecure way, so I’ll have to try out your SSH command.