Often all you need to control your Raspberry Pi is an SSH connection, however sometimes it is useful to be able to remotely control your RPi using the mouse and seeing just what you would see on the screen of your RPi.
VNC (Virtual Network Connection) is a standard for doing just this. To use it, you have to install some software on your Pi. There are a number of VNC server applications, and the one we are going to use is called “tightvnc”.
We can install the VNC server software using the SSH connection that we established earlier.
sudo apt-get install tightvncserver
Then we run VNC server:
vncserver :1 -geometry 1024x768 -depth 24
on mac: open screen sharing and type:
vnc://192.168.10.70:5901(replace the above IP address with your own RPi’s)
If you’d like to run VNC Server automatically when your RPi starts up, look at the following tutorial https://learn.adafruit.com/adafruit-raspberry-pi-lesson-7-remote-control-with-vnc/running-vncserver-at-startup