Product designers can use Pantavisor and Pantacor Hub to deploy and manage many different types of apps on your IoT devices. Pantavisor is the framework for containerized embedded Linux development that connects devices, modularizes, and containerizes both the embedded firmware user-land, and any apps that you want to run on the device. In this tutorial, we show you how to install Pantavisor on a Raspberry Pi, claim your device and make it accessble from the Pantacor Hub dashboard. Lastly we’ll describe how to prepare and deploy Redis onto the device and then connect to it with a laptop.
Note: Pantacor hub is the only place where Linux firmware and applications can be shared and deployed for any device. Signup for Pantacor Hub.
Make your RPI3 device ready to deploy Redis by following 6 Steps
Step 1: Flash your SD card with the RPi3 initial stable image.
a) Download latest stable RPi3 image:
b) unzip the device image with:
$ unxz rpi3_initial_stable.img.xz
c) Burn image into sd card using Raspberry Pi Imager 1.2
Step 2: Boot your RPi3
a) Insert your SD card and attach the power supply.
Step 3: Sign up to Pantacor Hub
Step 4: Download and install the CLI “pvr”
Note: pvr is a CLI which is used to interact with your device through Pantacor hub platform. With pvr you can share your firmware and projects like a git tree. Move the pvr binary to your bin folder after download.
Install and download PVR:
To install from github source code:
$ go get gitlab.com/pantacor/pvr $ go build -o ~/bin/pvr gitlab.com/pantacor/pvr
Note: You need “GOLANG” to be installed in your system for building pvr from github source code.
Step 5: Detect and Claim your device
a) Connect a LAN cable between your RPI3 & computer/Router.
b) Open your terminal & run
$ pvr device scan
c) Claim your device
$ pvr claim -c merely-regular-gorilla https://api.pantahub.com:443/devices/5f1b9c44e193a5000afa9901
d) Log into Panthub.com and check whether the newly claimed device appeared in the dashboard or not.
Step 6: Clone the device to your computer using the Clone URL of your device
$ pvr clone https://pvr.pantahub.com/sirinibin/presently_learning_pelican/0 presently_learning_pelican
Now your device is ready to deploy your Redis app
Deploy Redis to the device:
Step 1: Add “redis” to the device and deploy
a) Add “redis” app
$ pvr app add redis --from=arm32v7/redis:latest
b) Deploy the changes
$ pvr add . $ pvr commit $ pvr post
Step 2: Access Redis through shell and test
redis-cli -h 10.42.0.231
You are Done!