PLEASE NOTE: This site is no longer being actively maintained. For frequently updated BeagleBone resources please visit Beaglebone.org.


Overview

A VNC (Virtual Network Connection) allows you to connect to the BeagleBone and view its desktop graphical display remotely, without having a display monitor (or keyboard) connected to the BeagleBone HDMI connector. A virtual connection is made via the network to transfer the display to a host computer. You can then control the BeagleBone as if you were directly connected.
There are two parts to a VNC connection. The BeagleBone needs to allow its display to be served, and the Host computer needs to accept the connection and display the desktop remotely.


What you will need

Steps to follow

STEP 1

Download UltraVNC viewer or simliar program for your Host computer

STEP 2

Install x1vnc for the BeagleBone (if not already install)

- Angstrom:  opkg install x11vnc

- debian: sudo apt-get install x11vnc 

STEP 3

On your BeagleBone enter this command (hint: copy-paste the command)

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

Note the Port assigned (5900)

STEP 4

In UltraVNC enter the VNC Server address for the BeagleBone.
See orange circle below,  then  click [Connect]

STEP 5

You now have access to your BeagleBone Desktop - via a Virtual Network Connection
Angstrom desktop shown here.

STEP 6

Let's make it easier to start VNC, from now on. We will create a script file so that we can start VNC with a single simple command.

Create a file 'startVNC.sh'.
nano startVNC.sh

Enter the following: {debian}
#!/bin/bash
x11vnc -bg -o %HOME/.x11vnc.log.%VNCDISPLAY -auth /var/run/lightdm/root/:0 -forever
Save the file (Ctrl+o, enter, Ctrl+x)

Now we will make the script executable.
chmod a+x startVNC.sh

Whenever you want to start VNC enter the following.
./startVNC.sh
This will start the VNC server from the BeagleBone. Easier to remember !