Skip to content

How To Connect Via VNC

oznu edited this page Jun 10, 2020 · 6 revisions

The Homebridge Raspberry Pi Image is built on Raspbian Lite and is intended to be used as a "headless" server - this means there is no "Desktop" to connect to by default. This article will show you how to setup the Raspbian Desktop with VNC for remote access.

Setup

To get started run:

sudo hb-config

This will bring up this screen, select Extra Packages:

hb-config-home

Choose the RealVNC Server option:

If you don't see the RealVNC Server option you may need to update hb-config. You can do this by selecting Update on the previous screen.

hb-config-extra-packages-real-vnc

Select the Enable option:

hb-config-vnc-enable

The Raspbian OS Desktop and RealVNC server will now be installed and configured. Once configured you will see this screen which contains the IP addresses and hostnames you can use in the RealVNC Viewer.

hb-config-vnc-success

Connect With RealVNC Viewer

Download and install RealVNC Viewer. Once installed enter the hostname or ip address of your Raspberry Pi plus the port 5912.

For example: homebridge.local:5912.

hb-config-vnc-connect-real-vnc

Accept the warning that may appear, then enter your pi user credentials, these are the same credentials you would use to SSH into your Raspberry Pi.

The default username is pi with password raspberry.

hb-config-vnc-connect-real-vnc-credentials

Once connected you will see the Raspbian Desktop:

hb-config-vnc-connect-real-vnc-desktop

Install Chromium Web Browser

Raspbian Lite does not come with a web browser, if you need one, you can install the Chromium browser by entering the following commands at the terminal:

sudo apt update
sudo apt -y install chromium-browser

Further Reading

See https://www.raspberrypi.org/documentation/remote-access/vnc/