How to install VNC on Beaglebone Black

Beaglebone Black

A short step through on how to install VNC on Beaglebone Black.

Step 1.

SSH into your Beaglebone.

ssh [email protected]

(Or whatever your BBB IP address is)

Step 2

Install x11vnc.


opkg install x11vnc


sudo apt-get install x11vnc

 Step 3

Start the VNC server


x11vnc -bg -o %HOME/.x11vnc.log.%VNCDISPLAY -auth /var/run/gdm/auth-for-gdm*/database -display :0 -forever


x11vnc -bg -o %HOME/.x11vnc.log.%VNCDISPLAY -auth /var/run/lightdm/root/:0 -forever

 Step 4

Create a script file to make life easier to start the VNC server.


Add this to the file:

x11vnc -bg -o %HOME/.x11vnc.log.%VNCDISPLAY -auth /var/run/lightdm/root/:0 -forever

Save the file using commands Ctrl+o press Enter and the Ctrl+x.

Make the script executable:

chmod a+x

Execute the script:




2 thoughts to “How to install VNC on Beaglebone Black”

  1. Hi

    I understand these frist step, but how i get to open the screnn and seen my beaglebone desktop? thanks four your anwser…

Leave a Reply

Your email address will not be published. Required fields are marked *