To add this a auto start process do the following steps:
DEBIAN VNC SERVER INSTALL
Note that you have to do the “step 4” every time you restart your Beagle Bone Black. In this tutorial we will set up a Debian 8 server, install the XFCE desktop environment on it, and connect it to via VNC.
Now use a vnc viewer like Real VNC to connect to your Beable Bone Black on its IP address (e.g. 192.168.7.2) on the 5900 port. Just remember to switch to “debian” user before doing that. Do the following stepsĥ.
DEBIAN VNC SERVER UPDATE
I will use the following commands to update the various packages before starting to do the vnc related installation:Ĥ. SSH to the board using the “192.168.7.2” IP address (or any assigned address if there is any) use root and root for username and password.Ģ. These are the steps I took to install and enable the vnc server on the Beagle Bone Black running on Debian distribution ġ. This process works for both Beagle Bone Black Rev A and C hardware revisions, as long as they are running the Debian distribution recommended by Beagle Bone foundation ( Check here for more information). Having a VNC server running on your Beagle Bone Black will give you the means to connect to the board’s graphical interface over IP connection, eliminating the need of using (micro) HDMI cable and dedicated HDMI capable monitor/TV. It is implemented in a client/server model. It is, in essence, a remote display system which allows you to view a computing desktop environment not only on the machine where it is running, but from anywhere on the Internet and from a wide variety of machine architectures. vncserver is a Perl script which simplifies the process of starting an Xvnc server. VNC stands for Virtual Network Computing. This is a very good blog to just do that. vncserver is used to start a VNC (Virtual Network Computing) desktop.
Upon successful authentication, you should see the remote desktop ( Figure C).Before starting here I would recommend to go over some basic stuff. On Debian based Linux systems do: sudo apt installDEBIAN VNC SERVER PASSWORD
Once connected, you'll be prompted to enter the VNC password you created. To update or change your VNC password you should use vncpasswd command. Start your VNC client tool and enter localhost:5901 as the address for the VNC server. /.vnc/passwdis the default location where the VNC password is stored.The password is stored at this location when the vncserver starts for a first time. Once that authenticates, the secure tunnel is running (you won't get the prompt back). You will be prompted for the remote user's password. Where USER is the remote username used to start and configure the VNC server, and SERVER_IP is the IP address of the remote server. On the local desktop create the SSH tunnel with the command: ssh -L 5901:127.0.0.1:5901 -C -N -l USER SERVER_IP I'll connect to the remote Linux server using a local Linux machine. We're going to use SSH tunneling to the server (for a secure connection). However, Im open to suggestions, Im happy to try any VNC programme, I just want to get something working. You should now see reported that the new 'X' desktop is at HOSTNAME:1 (where HOSTNAME is the hostname of the remote server). Ive never used a VNC or any remote login programme before So Im trying to use TigerVNC. Restart the VNC server with the command: vncserver Change the execution permissions of the file with the command: sudo chmod +x ~/.vnc/xstartup In this file, paste the following contents: #!/bin/bash Now kill the VNC server with the command: vncserver -kill :1 Configure the VNC serverīefore restarting the VNC server, you'll want to create a new configuration file.