Set Up VNC on Raspberry Pi

Difficulty
Very easy
Steps
8

Sometimes, you'll want to be able to access your Raspberry Pi remotely. 

With VNC built into Raspbian, you can! In this guide, you will learn how to set up RealVNC on the Raspberry Pi and access your Raspberry Pi remotely on the Mac OS. That said, this will also work for Windows or Linux operating systems as there are RealVNC clients for them as well. 

The completion of this guide will enable you to access your Raspberry Pi remotely for future projects.

Step 1  Install Raspbian

The first step is to make sure that you have Raspbian on your microSD card. In this guide, we will use a microSD card already loaded with NOOBS for easy installation of the Raspbian operating system. 

Follow our previous guide on how to create your own NOOBS microSD card as well as how to install Raspbian. 

Step 2  Enable VNC

You will need to first enable VNC on Raspbian.

  1. Click on the Raspberry Pi icon on the top left hand corner of the desktop screen. 
  2. Select Preferences > Raspberry Pi Configuration
  3. Click on Interfaces tab. 
  4. Click on 'Enabled' radio button for VNC.

Step 3  Check IP Address

The next step is to check your credentials on the VNC server. To do so, click on the VNC icon on the top right-hand corner.

Under 'Connectivity', you should see your IP address listed. Note this down as you will need it to remotely connect to your Raspberry Pi for your operating system of choice.

Step 4  Download VNC Viewer

Before accessing VNC Viewer, you will need to have it installed on your operating system of choice. We will be using a Mac OS in this guide, and a VNC Viewer client for the Mac OS. You can get the client for your operating system on the official RealVNC download page.

  1. Select the operating system of your choice
  2. Click on the Download VNC Viewer button
  3. Double click on the downloaded installer to run it

Step 5  Access VNC Viewer

Now with your operating system of choice, open up VNC Viewer. 

In this guide, we are using the Mac OS to access VNC Viewer. 

  1. Press COMMAND+SPACE BAR
  2. Type 'VNC VIEWER' in the search bar and press the 'Enter' key
  3. In 'Enter a VNC Server address or search', type in the IP address you noted down in the previous step
  4. It will prompt you to log in, so enter the password for your Raspberry Pi

Note: If you have not set up a password, please do so by going back into Preferences > System > Change Password 


Step 6  Optimise performance

If performance is slow, you can change the settings on your VNC Viewer by clicking on the cog icon on the top menu bar.

You can change the picture quality and scaling options. Click the 'OK' button to save.

Step 7  Download files to your Raspberry Pi

If you ever want to download files from your computer to the Raspberry Pi. You can do it remotely too! 

  1. On your computer's VNC Viewer client, hover to the top of the screen to access the VNC Viewer menu
  2. Click on 'Transfer files ... ' button
  3. Choose the file(s) you want to send, and click the 'OK' button

Step 8  Send files to your computer from Raspberry Pi

On the other hand, if you'd like to send files from your computer to the Raspberry Pi, you can also do so! 

  1. On your Raspberry Pi, right click on the VNC Viewer icon on the top right-hand corner
  2. Select 'Send files...' button
  3. Then select the file of your choice

This concludes the end of the guide. Now you are able to access your Raspberry Pi via VNC and send files to and from it!