How to run a Streamr Node on a Raspberry Pi
Hi everyone, I’m Paolo Campitelli and this is my first post on Medium. I’m a Computer Engineer (I work in the UN as a Product Manager), Crypto enthusiastic and heavy metal lover.
Today I will explain you how to install a Streamr node on a Raspberry Pi 4.
The easiest way is to install it using Docker. Unfortunately no arm/v7 containers are available (only x86 and arm64) so we have to use a NodeJS.
First step: upgrade your pi:
sudo apt update && sudo apt upgrade && sudo apt autoremove
Next create the streamr directory:
mkdir ~/.streamrDocker
Next install nvm and npm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm install --lts
Next install the streamr-broker testnet:
npm install -g streamr-broker@testnet
Next run the the init. If it is the first time you need to generate the Etherium key otherwise just import the old one. The default configuration is the right one. The config file will be stored in the .streamr folder.
streamr-broker-init
We are done! Let’s start the Broker node!
streamr-broker
Enjoy! Once your node is running, remember to check it on the Network Explorer. Please follow me and let me know in the comments section if everything works correctly!
Update 08/10/2021:
If you need to update Streamr, accordingly to the official documentation, simply run:
npm install -g streamr-broker@testnet
and restart it:
streamr-broker