My TightVNC Server on Raspberry Pi seems can not handle copy/paste between its and my local clipboards. What can I do?


First install autocutsel (sudo apt-get install autocutsel)

Then open your /home/pi/.vnc/xstartup (nano /home/pi/.vnc/xstartup) and put autocutsel -fork on it like this:


xrdb $HOME/.Xresources
xsetroot -solid grey
autocutsel -fork
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work

Then it will work after restart of the vnc server

To Stop VNC Server:

vncserver –kill :1 (pick your display)

To Start VNC Server:

vncserver :1 –geometry 1024x600 –depth 24


| improve this answer | |
  • Perfect solution, thank you very much (reboot was required) – sweetlilmre Nov 26 '13 at 12:16
  • 1
    @sweetlilmre, no, reboot not required if you manually run autocutsel -fork – SAMPro Jul 18 '16 at 11:53
  • I have an Odroid running Ubuntu Mate 16.04. I had an odd issue that this fixed. I could cut and paste from emacs to an xterm within the same VNC server. And I could cut and paste from an xterm to another app running on the host (which happens to be a Mac). But I could not cut and paste from emacs to an app on the Mac. Running autocutsel -fork fixed my issue. – pedz Dec 6 '17 at 22:16

I had to make sure my autocutsel comes FIRST in the xstartup for copy/past to work

# Makes copy/past work - must come before RANDR 'fix'
#vncconfig -iconic &
autocutsel -s CLIPBOARD -fork
autocutsel -s PRIMARY -fork

# Get's rid of RANDR missing errors
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.