Post

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 install VNC Server

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

1
sudo apt-get install tightvncserver

Step 2 - Start the VNC Server

Make a script file to start the VNC server:

1
nano startVNC.sh

Enter the following:

1
2
#!/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

Make the file executable:

1
chmod +x startVNC.sh
This post is licensed under CC BY 4.0 by the author.