The BeagleBone black is a great low-cost entry level computer to learn some programming or play around with, however the BeagleBone black's biggest drawback is its lack of a community. With the Raspberry Pi users can find almost any answer to any question. Below I will walk you through how to set up a VNC Desktop on the BeagleBone Black and it will likely work on your Raspberry Pi as well.
So lets get started.
1. As always run sudo apt-get update then sudo apt-get upgrade
2. You will need to install a desktop client. The one I use is xfce4., its lightweight, great for the tiny PC You can pick your own or Install xfce4 with
sudo apt-get install xfce4
3. Now for the VNC server. There is one pre-installed but ill list this here for anyone using a Pi or if the current VNC server in the distro gets removed. Install it with
sudo apt-get install tightvncserver
4. Now we need to run it so it can generate the files. Run it with
Fill in all required fields as well as taking note of your password/etc.
5. Kill the process with
tightvncserver -kill :1
6. When you first ran it, you should have noticed a file location ending in /.vnc/xstartup we need to edit this file, so type
sudo nano (the location the process spit out)/.vnc/xstartup
It should look something like ~/home/user/.vnc/xstartup
7. When nano opens up, add the line
Now hit ctr+x then hit y then hit ENTER (or return)
8. Now to start your VNC server, enter this command and you are all set! (the geometry setting can be changed to fit your screen better but eating more resources eg, (1920x1080)
tightvncserver -geometry 800x600 :1