2006-09-11

On windows, X clipboard selection, vnc, and cut-and-paste

I use a VNC client on MS Windows XP to connect to a VNC server on a Linux host -- and the general lack of ability to cut and paste to/from the Windows applications from/to the Linux X applications via VNC i s more than bothersome!!!

I have had this problem with both RedHat 9 and RHEL4.

Looking for background I found a fredesktop.org write up on the behavior of the text selection and its being copied to the clipboard buffer as described by ICCCM for X applications.

This set of keywords lead me to find autocutsel -- an application meant to manage changes for the clipboards of Windows and X via the VNC client. You should run this application as a service on X startup - invoking 'autocutsel -fork'.

Still, I know for certain that the X clipboard was not managed by the RealVNC server (version 4.1.2 was the last tried - they may have fixed it since) as needed for autocutsel. So, finally, I changed the server on the RHEL4 box from the default (version number looks like its from RealVNC) to the VNC server provided by TightVNC.

All is right again in the world. Cut-and-paste Copy-and-paste from/to X to/from Windows all works as expected. Yeah!

At some point maybe i'll try something that others have buzzed about in the past: Synergy.