Linux Blog

A Windows Box, A Linux Box, Two Monitors Sharing One Keyboard and Mouse.

Filed under: Quick Linux Tutorials — TheLinuxBlog.com at 7:15 pm on Wednesday, November 7, 2007

If you read my first 60 second tutorial on using one keyboard and mouse on multiple computers you would know that using two linux boxes with one keyboard and mouse is easy. This blog will show you how to do the same thing but with a Linux box and a Windows box.

So lets get started.

The program to use this time is actually a hack of the x2x program. It is called x2vnc and you guessed it, it connects an X keyboard and mouse to a VNC client.

On your Windows desktop download and install the RealVNC server from http://www.realvnc.com/cgi-bin/download.cgi
Make sure that the vnc server is running (You should see a white icon in the tray.)
Find the ip of your Windows box (windows key + r > cmd > ipconfig)

At your linux box do the following:

Download, Compile and install x2vnc:

owen@linux-blog-lappy:~$ wget http://fredrik.hubbe.net/x2vnc/x2vnc-1.7.2.tar.gz
owen@linux-blog-lappy:~$ tar xvzf x2vnc-1.7.2.tar.gz & cd x2vnc-1.7.2/
owen@linux-blog-lappy:~/x2vnc-1.7.2$ ./configure && make && sudo make_install

Launching x2vnc. Once installed The syntax for x2vnc is very simular to that of x2x.

x2vnc [options] host:display

It will either be North, South, East or West. If your windows box is on your right use east.

owen@linux-blog-lappy:~$ x2vnc -east 192.168.X.X:0

Thats all there is to it. You should be able to mouse over the right of your screen and see your mouse cursor on your windows box.

Man Pages for commands in this post »

wget
tar
x2vnc
sudo

1 Comment »

Pingback by The Linux Blog » Easy Keyboard & Mouse Sharing with QuickSynergy

April 6, 2011 @ 6:32 am

[...] written before about using one computers keyboard and mouse across multiple computers by using x2vnc and x2x, there is however another tool called Synergy. I never really messed around with it because [...]

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>