How to install VNC server on Raspberry PI

This is a short note on how to install VNC server on Raspberry PI.

Raspberry PI B+
Raspberry PI B+

Step 1

The VNC server is not installed by default in Raspbian, so first install using apt-get:

sudo apt-get install tightvncserver

Step 2

Make a script file to start the VNC server:

nano startVNC.sh

Enter the following:

#!/bin/sh
vncserver :0 -geometry 1920x1080 -depth 24 -dpi 96

Save the file; Ctrl+o , Enter and the Ctrl+x.

Step 3

Make the file executable:

chmod +x startVNC.sh

Leave a Reply

Your email address will not be published.