How to install VNC on Beaglebone Black
A short step through on how to install VNC on Beaglebone Black.
Step 1 - SSH into your Beaglebone
SSH into your Beaglebone.
1
ssh [email protected]
(Or whatever your BBB IP address is)
Step 2 - Install x11vnc
Install x11vnc.
Angstrom:
1
opkg install x11vnc
Debian:
1
sudo apt-get install x11vnc
Step 3 - Start the VNC server
Start the VNC server
Angstrom:
1
x11vnc -bg -o %HOME/.x11vnc.log.%VNCDISPLAY -auth /var/run/gdm/auth-for-gdm*/database -display :0 -forever
Debian:
1
x11vnc -bg -o %HOME/.x11vnc.log.%VNCDISPLAY -auth /var/run/lightdm/root/:0 -forever
Step 4 - Create a script file to make life easier
Create a script file to make life easier to start the VNC server.
1
nano startVNC.sh
Add this to the file:
1
2
#!/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:
1
chmod a+x startVNC.sh
Execute the script:
1
./startVNC.sh
This post is licensed under CC BY 4.0 by the author.