Install and Configure VNC Server on Rasberry Pi

I am running a Raspbery Pi 3 with Raspbian OS installed on it. It works very well serving my house with a file server, multimedia streaming service (Plex Media Server), Nextcloud, MySQL Server and PostGIS. So, basically my tiny Raspberry Pi handles a lot of things. But I miss one thing. A graphical connection to the Raspberry Pi.

Since I put my Raspberry on top of a shelf, it is a bit difficult to plug a monitor to the HDMI port. So, the easiest way is to remotely connect to the Raspbian OS. And my choice is by using VNC connection. VNC viewer and server can communicate very well to provide a graphical access to the remote computer.

Configure VNC Connection to Raspberry Pi

Log in to the Raspberry host directly or via SSH. If you want to connect from Windows 10 via SSH, you can use Termius or Putty applications.

Termius SSH Client on Windows 10

To connect via SSH, use this format:

ssh username@raspberry-ip-address

For example,

ssh pi@192.168.100.14

Once connected, we can start installing VNC packages.

sudo apt update
sudo apt install realvnc-vnc-server realvnc-vnc-viewer

Next, we can configure the VNC Server using the following command

raspi-config

Next, choose number 5. Interfacing Options as shown below.

And then select P3 VNC from the list and press enter.

Choose Yes to enable the VNC Server

You should see the following notification when VNC server successfully enabled

Connect to Raspberry Pi using VNC Viewer

Now you can connect to the Raspberry Pi using VNC Viewer from other computers. Download and install RealVNC Viewer and install it on your PC.

Enter the IP address of the Raspberry, username and password to connect.

For more information, please visit the Raspberry website below

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

Be the first to comment

Leave a Reply