What you need is x2vnc.
- Install x2vnc.
Using your distro's package manager, installx2vnc. For example, on ubuntu :sudo apt-get install x2vncdoes the trick. Ifx2vncdoesn't reside within your distro's repositories, you might have to install it directly from the author's site. At the time of publishing, the current version available was 1.7.2 and could be obtained here. - Install a VNC server on the Windows box.
You need to have a VNC server running on the windows box for this to work. There are various free alternatives available; one of which being TightVNC which can be obtained here. Install a VNC server, and start it up on the windows box. - Fire up x2vnc
There are various options available to you when running x2vnc; these can be obtained by runningx2vnc --help; or see the "usage" section here.
The most basic usage is
x2vnc -east[|-west|-south|-north] {hostname/ip address}:{display}
note: The-east / -west / -south / -northparameter to use depends on where the windows box's screen is in relation to your screen. If the screen is to the right or yours, you use-east, and so forth.
note: If your VNC server is password protected, you will be prompted to enter the password directly after executing x2vnc.
Now for the big test, with x2vnc running, move your mouse "out of your screen" to the right (assuming you used the
-east option). The mouse pointer should appear on your windows box's screen. You should notice that when the mouse pointer is visible on the windows box's screen, any keyboard activity (including shortcut key keystrokes) will be directed at the windows box, and visa versa. As you also may have figured out by now, if you have more than one windows box, you could control all of them by running multiple instances of x2vnc.
Finally, if you would like to achieve the same effect with multiple Linux boxes (or anything running an X server), you should check out x2x.

