« HOWTO: Put grub back when Windows screws it upHOWTO: Configure Automatic login. »

HOWTO get x2x working.

10/07/08

Permalink 02:09:13 pm, by richard Email , 262 words   English (GB)
Categories: Ubuntu Linux, Network and Connectivity, Installation and Configuration

HOWTO get x2x working.

So you have two Linux hosts both running X. You also hove two screens and want to control both with one mouse and keyboard. Yes you can do this with a KVM but with a KVM you cannot simply copy/paste between the two machines as well. With x2x you can simply move the mouse to one side of the screen and keep on going and it appears automatically on the other screen.

Follow up:

This is one of those setups that is so so simple the SECOND time around . Now I have it working its really very simple to explain.

Make sure x2x is loaded on both machines, (may only be needed on the 'to'). X2x was working so I stopped playing around and didn't tidy up.

Install command
sudo apt-get install x2x

Then on the 'from' host where the keyboard and mouse are create a little script. The script allows you to start up x2x in the sessions config so it is always running and saves having to remember the command if you need to start it up manually.

Command
ssh -X to_hostname /usr/X11R6/bin/x2x -west -to :0 &  

In my case I'm connecting to a host called to_host and when I move my mouse off the left hand side of the monitor or west, The mouse appears on the to_hosts screen and I'm controlling that host now.

Copy and paste just works out of the box.

The above all works upto Karmic when there is a bug "somewhere" See this post for a hack to get it going again.

https://bugs.launchpad.net/ubuntu/+bug/471726

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
What can birds and aeroplanes both do?
antispam test