In this guide we will explain how to enable VNC remote control for a Raspberry Pi. This will allow you operate the Pi as a headless unit. Headless means it does not have a keyboard, mouse or monitor attached to the Pi. If you connect your Pi to your network via WiFi then the only cable you will have connected to your Pi will be the power cord.
As with all Pi guides the first step is to make sure the Pi has the latest updates and the latest kernel. Enter the following commands at a command prompt.
sudo apt-get update
sudo apt-get upgrade
Now we need to install the VNC server and the VNC viewer. Enter the following command at a command prompt.
sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer
Enabling VNC Server graphically
- On your Raspberry Pi, boot into the graphical desktop.
- In the taskbar right click the VNC icon
- Select Options
- Ensure encryption is set to Always on
- Ensure Authentication is set to VNC Password
- Set the VNC password and confirm the password.
Enabling VNC Server at the command line
You can enable VNC Server at the command line using raspi-config:
- Choose Option 5 Interfacing Options
- Select P3 VNC
- Enter Yes to the question about enabling VNC
- Say OK to the confirmation screen
- Exit raspi-config by choosing Finish
Now we need to open a terminal window to enter a command at the Command Line Interface (CLI). Enter the following command at a command prompt.
Look for your IP address of your Pi.
Now back on your PC or other device we need to install the VNC viewer client.
Open the application and enter the address you gathered in Step 4.