Claim your Device¶
The first step to remotely manage your device is to claim it. Claiming is the process of linking a newly flashed device and a Pantacor Hub account.
For this how-to guide, it is assumed that you are registered in Pantacor Hub.
To claim a device, it must meet some pre-requisites:
- The board has to be connected to an internet-facing network.
- The device was not previously claimed.
- One of this must be true:
There are three ways to claim your device, depending on the capabilities of the target image you just installed: automatically, manually from the host and manually from the target.
This process can be done automatically if the pairing option is set in the download Pantavisor image page.
Manually from the Device¶
Manually claiming a device from the device itself will depend on where you are on the device, that is, if you have access to a pvr-sdk container running on top of your Pantavisor-enable device or if you have access to the Pantavisor file system.
This container has the Pantabox tool installed by default. To claim the device, just inspect your device from your host computer and execute the pantabox-claim command. The script will take care of the pairing process.
Getting Credentials from Pantavisor File System¶
The credentials to claim your device are located in these files inside of the Pantavisor file system:
# cat /pv/challenge pleasantly-finer-unicorn # cat /pv/device-id 5b582638c67920b9de2
This information will also be printed in pantavisor log.
You will need to insert those credentials in Pantacor Hub. Just click on the
Devices tab on the left side of the UI and press the blue
Claim a Device button that will appear on the right side.
Manually from the Host¶
As using a CLI tool can be more convenient than doing it from the device itself, we offer the possibility to claim your device using the pvr tool, if the image that you just flashed has the pv-avahi container.
Assuming your computer is in the same local network as your board, just execute this command to discover the device:
pvr device scan
pvr finds a device on the local network, it will present this metadata for you to claim it via the command quoted in the output. Just run that command as-is and your user should now own your device.