How to Install VNC on Raspberry Pi OS (64 bit)

VNC on Raspberry Pi OS (64 bit)
(Image credit: Tom's Hardware)

Alongside the recent launch of the 8GB Raspberry Pi 4, there was another announcement, a new 64-bit operating system currently in public beta. On face value, this new operating system looks just like its predecessor, Raspberry Pi OS (formerly known as Raspbian). But under the hood we have a more powerful operating system that will offer a performance boost over 32-bit systems on any modern Raspberry Pi.

Despite looking identical to the 32-bit version, there is one application that is missing from the new Raspberry Pi OS 64-bit install, and that is a VNC server, which can be used to remotely control the system desktop, perhaps as part of a headless Raspberry Pi setup. Yes, you can remotely get a terminal window in the 64-bit OS using SSH, but what if you want to get to the GUI from your PC or Mac?

RealVNC comes preloaded on the 32-bit Raspberry Pi OS and has for many years, but at the time of writing, their VNC server isn't available on the 64-bit platform. Fortunately, there's an alternative in TightVNC. Here's how to use it.

Before You Get Started

For purposes of this tutorial, we'll assume that you already have a Raspberry Pi  3 or 4 running Raspberry Pi OS (64-bit), which is currently in beta. If you want to try the 64-bit beta and haven't already, you can download it from here.

How to Install VNC on Raspberry Pi OS (64 bit) 

1. Open a terminal window either directly on the Raspberry Pi or by connecting remotely via SSH.

2.  Update the list of available software for the Raspberry Pi by typing:

sudo apt update

3. Install tightvncserver by typing:

sudo apt install tightvncserver

4. Start the TightVNC server at 720p by typing:

tightvncserver -geometry 1280x720

5. Create a password to use the VNC session, set this to be the same as your pi login. There is no need to set a view only password. 

The Raspberry Pi has now started a VNC server session at raspberrypi.local:1 remember this address as it is needed later.

6. Download and install the RealVNC viewer for your operating system from

(Image credit: Tom's Hardware)

7. Open the VNC Viewer on your PC or Mac and type in the address of the Pi, in this case raspberrypi.local:1 and press Enter to connect. 

(Image credit: Tom's Hardware)

8. Click continue if you encounter a security warning. 

(Image credit: Tom's Hardware)

9. Enter the VNC password and click OK

(Image credit: Tom's Hardware)

10. You can now control your Raspberry Pi remotely. 

VNC on Raspberry Pi OS (64 bit)

(Image credit: Tom's Hardware)

11. Edit crontab via a Terminal to start tightvncserver on boot

sudo crontab -e

12. Add this line to the bottom of crontab.

An open terminal window, being used to edit crontab to setup a vnc server to start on boot.

(Image credit: Future)
@reboot su - pi -c '/usr/bin/tightvncserver -geometry 1280x720'

13. Press CTRL + X, Y then Enter to save and exit. Now when the Pi is booted up, the VNC server will start.

Les Pounder

Les Pounder is an associate editor at Tom's Hardware. He is a creative technologist and for seven years has created projects to educate and inspire minds both young and old. He has worked with the Raspberry Pi Foundation to write and deliver their teacher training program "Picademy".

  • phil6306an
    This process is causing me problems, the VNC server login window that I GET has a username box that defaults to the Pi's user. In the example this is greyed out. If I use either the VNCserver password or the Pi's password I get 'cannot currently show the desktop' in the VNC viewer.

    I appreciate that time has passed since this was written, I wonder if the process to get VNC working on a 64 bit pi 4 has changed, I used a 1/22 image file to create the OS. Any help?