Access your BeagleBone Ubuntu from the Web

Make your BeagleBone accessible from anywhere via the Yaler relay.

Prerequisites

Setting up your device requires a relay domain. Please sign up to get one.

Setting up the hardware

Plug in external power and make sure the BeagleBone is connected to the Internet via Ethernet, Wi-Fi or 3G.

This tutorial is for Ubuntu. Not your OS? See how to access BeagleBone Angstrom or BeagleBone Debian from the Web.

Installing YalerTunnel on Ubuntu

Follow these steps to install YalerTunnel on the BeagleBone.

  1. Open a shell on your BeagleBone (default login is ubuntu, password temppwd), or type
    $ cd ~
  2. Update apt-get with
    $ sudo apt-get update
  3. Download and install make with
    $ sudo apt-get install make
  4. Download and install libssl with
    $ sudo apt-get install libssl-dev
  5. Create a yalertunnel directory
    $ mkdir yalertunnel
    $ cd yalertunnel
  6. Download, unzip and build the YalerTunnel source
    $ wget http://s3.yaler.net/yalertunnel/YalerTunnel2.src.tar.gz
    $ tar xfzmv YalerTunnel2.src.tar.gz
    $ ./configure && make
  7. Done. Now either enable Web access or SSH access or VNC access.


Web access

Prerequisites

A Web server or service has been installed and is running on the BeagleBone.

Enabling Web access on Ubuntu

How to configure YalerTunnel on your BeagleBone to make a local Web service accessible from anywhere.

  1. Download the yalertunnel.conf startup script
    $ sudo wget -O /etc/init/yalertunnel.conf http://s3.yaler.net/beaglebone-ubuntu/yalertunnel.conf
  2. Open the yalertunnel.conf script
    $ sudo nano /etc/init/yalertunnel.conf
    Check the path (default: /home/ubuntu/yalertunnel), set the port of the local Web service (default: 80), and set your relay domain
    1 script
    2         cd /home/ubuntu/yalertunnel/
    3         ./yalertunnel server 127.0.0.1:80 try.yaler.io:80 RELAY_DOMAIN -min-listeners 1
     

    Save changes with CTRL-X, then Y, then RETURN. Do not change the local IP (default: 127.0.0.1), unless the Web service runs on a separate device in the same network.

  3. Reboot your BeagleBone to run the script
    $ sudo reboot
  4. Done. Now, see how to access your device from any Web browser or with Curl or from iOS or from Android (and resolve errors).

Disabling Web access on Ubuntu

How to remove YalerTunnel to disable Web access from anywhere.

  1. Open a shell on your BeagleBone and type
    $ sudo rm /etc/init/yalertunnel.conf
    $ sudo reboot


SSH access

Prerequisites

The SSH daemon sshd is running (per default) on the BeagleBone.

Enabling SSH access on Ubuntu

How to configure YalerTunnel on your BeagleBone to allow SSH access from anywhere.

  1. Download the yalertunnel-ssh.conf startup script
    $ sudo wget -O /etc/init/yalertunnel-ssh.conf http://s3.yaler.net/beaglebone-ubuntu/yalertunnel-ssh.conf
  2. Open the yalertunnel-ssh.conf script
    $ sudo nano /etc/init/yalertunnel-ssh.conf
    Check the path (default: /home/ubuntu/yalertunnel), set the port of the local SSH service (default: 22), and set your relay domain
    1 script
    2         cd /home/ubuntu/yalertunnel/
    3         ./yalertunnel proxy 127.0.0.1:22 try.yaler.io:80 RELAY_DOMAIN
     

    Save changes with CTRL-X, then Y, then RETURN. Do not change the local IP (default: 127.0.0.1), unless the SSH service runs on a separate device in the same network.

  3. Reboot your BeagleBone to run the script
    $ sudo reboot
  4. Done. Now, see how to access your device with Putty or with SSH (for Linux, Mac OS X).

Disabling SSH access on Ubuntu

How to remove YalerTunnel to disable SSH access from anywhere.

  1. Open a shell on your BeagleBone and type
    $ sudo rm /etc/init/yalertunnel-ssh.conf
    $ sudo reboot


VNC access

Prerequisites

A VNC service has been installed and is running on the BeagleBone.

Enabling VNC access on Ubuntu

How to configure YalerTunnel on your BeagleBone to allow VNC access from anywhere.

  1. Download the yalertunnel-vnc.conf startup script
    $ sudo wget -O /etc/init/yalertunnel-vnc.conf http://s3.yaler.net/beaglebone-ubuntu/yalertunnel-vnc.conf
  2. Open the yalertunnel-vnc.conf script
    $ sudo nano /etc/init/yalertunnel-vnc.conf
    Check the path (default: /home/ubuntu/yalertunnel), set the port of the local VNC service (default: 5901), and set your relay domain
    1 script
    2         cd /home/ubuntu/yalertunnel/
    3         ./yalertunnel proxy 127.0.0.1:5901 try.yaler.io:80 RELAY_DOMAIN
     

    Save changes with CTRL-X, then Y, then RETURN. Do not change the local IP (default: 127.0.0.1), unless the VNC service runs on a separate device in the same network.

  3. Reboot your BeagleBone to run the script
    $ sudo reboot
  4. Done. Now, see how to access your device with VNC.

Disabling VNC access on Ubuntu

How to remove YalerTunnel to disable VNC access from anywhere.

  1. Open a shell on your BeagleBone and type
    $ sudo rm /etc/init/yalertunnel-vnc.conf
    $ sudo reboot


To enable Web and SSH or VNC access at the same time, or tunnel another protocol, please get in touch.


Creative Commons License This work by Yaler GmbH is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.