Controlling two machines with x2vnc

My regular work machine is a laptop with Gentoo Linux. However, for ocassional use, I also have a desktop machine under my desk running Windows. So far, using it involved keeping a second keyboard and mouse somewhere on my desk, and dragging them out whenever I wanted to use the Windows machine (I have a dual-input display, so that was no problem). Highly inconvenient.

Enter x2vnc. This program allows you to control a remote computer through VNC by simply moving the cursor off the edge of your screen. It works beautifully. So here’s what I had to do:

1. Install RealVNC on the Windows machine.
2. Configure RealVNC to accept connections only from my laptop’s IP address, without authentication.
3. emerge x2vnc on my linux machine.
4. Run x2vnc win.machine.ip.address:0 on my laptop.

That’s it! Now when I move the cursor off the right edge of the screen in my Linux machine, control passes to the Windows box. A nice side effect is that the keyboard and mouse mappings are preserved, so the Control key is where I expect it to be in the Windows side as well, and my mouse wheel works propely in Windows (for some reason with its own mouse I never could get it to work).

Incredibly neat!

Advertisements

One response to “Controlling two machines with x2vnc

  1. Pingback: Tadek’s Blog » Blog Archive » BrT » Controlling two machines with x2vnc

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s