Skip to main content

Installing Box on Raspberry Pi OS

WIP Alert

Please note: these instructions remain a work in progress as the Fula API evolves. Make sure to check back soon for more details!

Pre-requisites​

It is assumed you have taken the necessary steps to appropriately secure the linux environment before installing the Box software.

For example, you should change the default pi user password if starting from the current release of raspberry Pi OS.

You might also create a different user with root priviledges and remove ssh / sudo access for the pi user.

This guide was written using Debian GNU/Linux 11 (bullseye) on a Raspberry Pi 4.

Setup Steps​

  1. Install git to clone the FULA repo.
  > sudo apt update
> sudo apt install git
  1. Install docker and docker-compose according to your linux distro. If you get an error during the install process see troubleshooting below.

  2. Create a non-sudo user for the Box server app and other dependencies to run under and add them to the docker group.

  > sudo adduser -m fuman
> sudo passwd fuman
> sudo usermod -a -G docker fuman

Log in as 'fuman' in a new shell

  > ssh fuman@yourhost
  1. Run docker in rootless mode.

  2. Start Box and it's dependencies.

  > git clone https://github.com/functionland/fula
> docker-compose -f docker-compose.dev.yaml up
  1. Verify you are able to connect to the Box on the rPi from a sample DApp. The most straightforward way to do that is to follow the regular 'getting-started' process. On the step to connect to a Box just enter the PeerId of the Box running on your rPi instead of the one that is running on your local dev. machine.

Troubleshooting​

Ensure the there is a directory matching kernel version in /lib/modules