These instructions explain how to view and control your Raspberry Pi’s graphical desktop from a remote location using RealVNC.
Enabling VNC on the Pi
In a terminal window on your Raspberry Pi, run the following commands:
Then select 5 Interfacing Options > P3 VNC > Yes
You have now enabled VNC on your Raspberry Pi.
If you are using a non-Raspbian Debian OS
In a terminal window on your Linux PC, run the following commands:
sudo apt-get update
sudo apt-get install realvnc-vnc-server
To use Flash VNC
If you wish to use the Flash (browser) VNC option on Windows or Screen Sharing on Mac, then "VNC authentication" mode needs to be set. You can use RealVNC server with RealVNC viewer without configuring VNC authentication. The default setting “UNIX Authentication” should work OK.
Open your Raspberry Pi’s GUI (either using the hardware video output connected to a monitor or using RealVNC viewer with the Pi's LAN address). Now, to set the VNC authentication mode, click on the VNC icon in the upper right hand corner.
Next, click the 3-line button in the right hand corner, and click “Options”.
Under “Security”, change the “UNIX Authentication” to “VNC password”. Setting this password allows Flash VNC and Mac screen sharing to work.
To set this password, Go to “Users & Permissions”. Then click “Password” on the right-hand side. Then enter a password. You will use this when using Flash VNC and Mac Screen Sharing.
Then click “Ok”.
* If the screen is too zoomed in to select “Ok” you must zoom out. You can do this by entering the command sudo raspi-config into the terminal of your Pi. Then select 7 Advanced Options > A5 Resolution > DMT Mode 85
Adding a remote.it Service Attachment for RealVNC
Run the remote.it configuration script:
Log into your remote.it account by selecting "1". In the next menu, select the "1" to attach or install a service. Then select "3" for VNC.
Install a new remote.it Service Attachment for VNC using the default port of 5900. If the port in use is not 5900, you will have the opportunity to change this during the installation.
When you’ve successfully added the remote.it Service Attachment for RealVNC, the Main Menu will include an entry for vncserver-x11-c as shown below.
Making a VNC connection using remote.it
To connect, sign in to your remote.it account and locate the device. Click on the highlighted Device Name to open the Device Services dialog:
Now click on the name of the Service you just installed in the Device Services List.
Click on the service name to initiate the connection. In a few seconds you’ll see a dialog box similar to this:
For Option 1:
Close the menu by clicking the “X” in the upper right corner. You may see a dialog asking whether you wish to allow Flash to run. You should allow Flash to run. Next, enter your VNC password and click on “Send” to continue.
For Option 2:
Click on the link provided in the second option, which will open a Safari Window. Allow Screen Sharing to occur. Enter your VNC password when prompted.
For Option 3:
Start the TightVNC viewer application, then copy and paste the address from the remote.it dialog option #3 to the “Remote Host” field as shown below. Now, click on “Connect”.
When you see the VNC Authentication dialog, enter your VNC password and click on “OK” to continue.
Now you are controlling your Raspberry Pi’s GUI!