Steps:
1. Log in to your Pi and install the Tight VNC Package: # sudo apt-get install tightvncserver
2. Next Run TightVNC Server which will prompt you to enter a Password and an optional View Only Password: $ tightvncserver Once that is done you can start a VNC server from the shell prompt. This example starts a session on VNC display zero (:1) with full HD resolution: $ vncserver :0 -geometry 1920x1080 -depth 24 (If fonts appear the wrong size, add '-dpi 96' to the end.)
3. Install autocutsel to use copy and paste:
$ sudo apt-get install autocutsel
$ autocutsel -fork
You can add autocutsel -fork command to the file .profile.
4. You could create a script to save start vncserver each reboot called vncboot into directory /etc/init.d:
#!/bin/sh
### BEGIN INIT INFO
# Provides: tightvncserver
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start vnc server
# Description:
### END INIT INFO
case "$1" in
start)
su pi -c 'vncserver :1 -geometry 1920x1080 -depth 24 > /dev/null 2>&1'
echo "VNC Started"
;;
stop)
pkill Xtightvnc
echo "VNC Terminated"
;;
*)
echo "Usage: /etc/init.d/tightvnc {start|stop}"
exit 1
;;
esac
5. Modify the file permissions so it can be executed:
# chmod 755 vncboot
6. Enable dependency based boot sequencing:
# update-rc.d /etc/init.d/vncboot defaults
If enabling dependency based boot sequencing was successful, it says: "update-rc.d: using dependency based boot sequencing". But if it says: "update-rc.d: error: unable to read /etc/init.d//etc/init.d/vncboot", then try the following command: $ update-rc.d vncboot defaults
Reboot your Raspberry PI and you should find a vncserver already started.
7.- Install Tight VNC on your desktop.