Quickest Path to Developing Local on your Raspberry

Hi,

Pantavisor images by default connect to hub and don’t open the local management port needed to interact with your device locally directly by default.

The process of changing that requires some manual interactions after install, which are not needed if you configure the image properly.

To avoid that I have made a custom image link that instructions our image-service to mangle the right configs into the image that will make your Install automatically come up pre-configured and with ports open so you can get started right away.

Once installed, get network like documented here for instance: First Boot - Docs

And off you go.

Try http://IP.OF.YOUR.TARGET:12368/app in your browser to get live logs and more.

And of course pvr clone to your device right away:

pvr clone IP.OF.YOUR.TARGET
cd IP.OF.YOUR.TARGET
pvr app add --from=nginx:latest nginx
pvr add
pvr commit

pvr post -m "add nginx"

I made a further remix of raspberry 64 image ready for local development with connman as the networking container and wrote a tutorial on hackmd that shows how to quickly get this going:

* https://hackmd.io/6gAMFEDYSACz2c0OzlhEdw?both 

Below the inline text:

Quickstart: Local Pantavisor Development on RPI64

Download

wget -O rpi64.img.gz https://bit.ly/pantavisor-rpi64-5_10_y-rc-connman-noremote-dev

Install

gunzip -c rpi64.img.gz | sudo dd of=/dev/sdXXX bs=32M

Boot

Plug SD Card or USB Storage into MMC or USB 3.0 slot and boot system

Network

  • Connect Ethernet cable to your host computer
  • Setup Static IP for host to: 192.168.222.1/24
  • Device will bring up static IP on 192.168.222.2
  • Optional: use connmanctl from within connman container to connect wifi to backhaul (not persistent config())
    • do this if you want internet

SSH Key

  • Use REST API to setup ssh key
curl -XPUT -d @$HOME/.ssh/id_rsa.pub http://192.168.222.2:12368/cgi-bin/user-meta/pvr-sdk.authorized_keys

SSH Into container

ssh -p 8222 connman@192.168.222.2

Clone device with PVR

pvr clone 192.168.222.2 mydevice

PVTX UI

Is available at http://192.168.222.2:12368/app

Questions

Use Forum at community.pantavisor.io