Using Clipboard with Xfce and TightVNC

2

3

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

Posted 2015-04-15T16:56:36.210

Reputation: 177

Similar question and very relevant topic. – dma_k – 2017-05-08T23:17:29.933

Answers

6

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Θ

Posted 2015-04-15T16:56:36.210

Reputation: 1 157

First you might need to apt-get update and after that apt-get install autocutsel ( https://www.howtoinstall.co/en/debian/jessie/autocutsel )

– jave.web – 2017-03-21T20:04:53.293

Add 2: You don't have to restart server if you want to allow clipboard only in current session - just call /usr/bin/autocutsel -s CLIPBOARD -fork in terminal and that's it. – jave.web – 2017-03-22T03:06:56.620

@jave.web I can't get that to work. I have to run it without -fork in a terminal, and leave the terminal open. (I also run it with -v so that it is verbose, so I can make sure it's working.) – trlkly – 2017-04-28T03:02:02.880

2

For me just this two simple steps worked:

sudo apt install autocutsel
autocutsel -fork

Eduard Florinescu

Posted 2015-04-15T16:56:36.210

Reputation: 2 116

0

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 Windows machines.

On Ubuntu 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)

Aljoscha Vollmerhaus

Posted 2015-04-15T16:56:36.210

Reputation: 61

After installing x11vnc, that is, sorry. I'm using tightvnc as a client here and clipboard works well with x11vnc for the server. – Aljoscha Vollmerhaus – 2015-06-10T09:33:08.850

2Feel free to edit your answer so it is complete. As of now, the answer, does not really answer the author's question. – Ramhound – 2015-06-10T11:27:09.827

Your post needs to be expanded. A good answer includes specific instructions (not just links to them) and an explanation as to how or why the answer addresses the OPs question. Please edit your post to add detail explaining how your solution addresses the OPs question.

– I say Reinstate Monica – 2015-06-10T15:15:28.253