Created
January 10, 2018 10:40
-
-
Save dryliketoast/80013389fa2ab07931aac89e9c03257c to your computer and use it in GitHub Desktop.
tightvnc-copy-paste
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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