Set Up VNC on Raspberry Pi

How to set up a Raspberry Pi headless

Written By: Cherie Tan

Dash icon
Difficulty
Very Easy
Steps icon
Steps
8

Introduction

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. 
  • If you haven't got a NOOBs microSD card, 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. To do so, first, click on the Raspberry Pi icon on the top left hand corner of the desktop screen. 
  • Select Preferences > Raspberry Pi Configuration
  • Click on Interfaces tab. 
  • 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.
  • Select the operating system of your choice
  • Click on the Download VNC Viewer button
  • 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. First, press COMMAND+SPACE BAR
  • Type 'VNC VIEWER' in the search bar and press the 'Enter' key
  • In 'Enter a VNC Server address or search', type in the IP address you noted down in the previous step
  • It will prompt you to log in, so enter the password for your Raspberry Pi
  • 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 Raspberry Pi

  • If you ever want to download files from your computer to the Raspberry Pi. You can do it remotely too. On your computer's VNC Viewer client, hover to the top of the screen to access the VNC Viewer menu.
  • Click on 'Transfer files ... ' button
  • 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. First, on the PIXEL desktop, right click on the VNC Viewer icon on the top right-hand corner
  • Select 'Send files...' button
  • Then select the file of your choice
© 2021 Little Bird Electronics Pty Ltd.
Made with ❤️ in SYD. All prices inc GST. ABN 15 634 521 449. We're 🐥 @lbhq on Twitter.