How to share Windows clipboard with Linux using TightVNC

clipboardvnc

I'm connecting to my Debian squeeze server through the Windows TightVNC viewer and tightvncserver on Linux. I have put the following line in my ~/.vnc/xstartup file:

autocutsel -fork

However, this only seems to allow 1-way clipboard synchronization; the remote Linux content can be copied to the Windows clipboard, but not the other way around.

Is there some way I can copy Windows clipboard content and paste it in Linux through TightVNC?

Best Answer

With the unlikely name of vncconfig on Linux, you can get bidirectional cutbuffer/clipboard interaction.

From the manual entry of vncconfig:

vncconfig is used to configure and control a running instance of Xvnc, or any other X server with the VNC extension. Note that it cannot be used to control VNC servers prior to version 4.

When run with no options, it runs as a kind of "helper" application for Xvnc. Its main purpose when run in this mode is to support clipboard transfer to and from the VNC viewer(s). Note that without a running instance of vncconfig there will be no clipboard support. The vncconfig command puts up a window with some checkboxes which can be used to disable clipboard transfers if required. The -nowin flag can be used if you always want clipboard support but don't wish to clutter the desktop with this window Alternatively the -iconic option can be used to make it iconified by default.

Note: The DISPLAY environment variable or the -display option will be used to identify the display/window in which to be active.

Using TightVNCon Windows, make sure that the option Disable clipboard transfer is not checked. This option is accessible when you launch TightVNC.

You will see the Startup Window.

TightVNC Startup Window

(click on Options) then make sure that Disable clipboard transfer is not checked.

Disable clipboard transfer

Related Question