7

I'm having major difficulties in getting the clipboard (copy/paste) to work over my VNC connection. Setup:

Server: Ubuntu 14.04 with Xfce and TightVNCServer

Client: Windows 8.1 with TightVNCViewer

The problem is, I can't get the clipboard working to copy/paste from the client into the server. I tried following the advice on this question and installed autocutsel, but that didn't help either. Any advice?

Jordan
  • 237
  • 1
  • 3
  • 12

3 Answers3

11

How did you setup autocutsel? I created a xstartup file under the ~/.vnc directory, with the following content:

#!/bin/sh
/usr/bin/autocutsel -s CLIPBOARD -fork

Then you need to make it executable:

chmod +x ~/.vnc/xstartup

Restart the server and you're done

SΛLVΘ
  • 1,465
5

For me just this two simple steps worked:

sudo apt install autocutsel
autocutsel -fork
1

I'm not using TightVNC, but if that tool is not a requirement you could use x11vnc. I had good success sharing the clipboard with clients.

On Debian based distros, it should be apt-get install x11vnc to install it, then use

x11vnc -xkb ......

to start the Server. (The -xkb option enables the Xservers XKEYBOARD option, without this the clipboard sharing did not work for me)

Gilles Quénot
  • 4,475
  • 1
  • 30
  • 28