Skip to content

Instantly share code, notes, and snippets.

@dryliketoast
Created January 10, 2018 10:40
Show Gist options
  • Select an option

  • Save dryliketoast/80013389fa2ab07931aac89e9c03257c to your computer and use it in GitHub Desktop.

Select an option

Save dryliketoast/80013389fa2ab07931aac89e9c03257c to your computer and use it in GitHub Desktop.
tightvnc-copy-paste
https://raspberrypi.stackexchange.com/questions/4474/tightvnc-copy-paste-between-local-os-and-raspberry-pi#4475
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:
#!/bin/sh
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
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment