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.

Angstrom:

opkg install x11vnc

Debian:

sudo apt-get install x11vnc

 Step 3

Start the VNC server

Angstrom:

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

Debian:

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.

nano startVNC.sh

Add this to the file:

#!/bin/bash
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 startVNC.sh

Execute the script:

./startVNC.sh

 

 

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 *