Initial Installation
Qibixx' Applications, which are used on small embedded controllers (typically Raspberry Pi or Barionet), are based on the Barix Flexa system architecture. To use them on a vanilla (uninitialised) controller, you will need to install the Flexa base system.
Flexa is a Barix software delivery and device management system which allows easy appplication loading and management of Barix Barionet or Raspberry PI devices.
In an essence, if you want to use a Flexa Application on Barionet or Raspberry PI, you just need to register your device with its RegID on the Portal where the software is managed (typically: Linuquick or Qibaccount), eventually configure some parameters for your specific device (on the linuquick portal, not on the device), that's it. The device will find the selected portal and application and start working after a reboot!
Typically, if the device is a Raspberry Pi aquired from Qiba Shop or a Barionet, Flexa software should already be installed on the device. Additionally, when these devices are shipped, they should be accompanied by their regId, which you can use to register it on the portal.
Install Flexa on Barionet
Newer Barionets have flexa image pre-installed. If you have an older device and still want to use flexa, you will need to contact Barix or Qiba (contact@qiba.pt), depending on where the device was acquired, to obtain a RegID for your device.
Installation
The Barionet needs to be online (view of the internet) for this to work
You can either use this 1 line command:
- wget http://flexaa1ec.blob.core.windows.net/firmwares/Flexa%20Base/finstall.tar && tar xof finstall.tar && chmod +x install && ./install
Or follow the instructions if you prefer to copy the file from your computer to the device:
- get the "finstall.tar" file here. This archive contains everything needed to install flexa
- scp the finstall.tar file into the Barionet. Example: scp finstall.tar root@192.168.3.192:/root
- ssh into the device. Example: ssh -l root 192.168.3.192
- when logged into the device, install the content from the archive. Example: tar xof finstall.tar
- Make an install script executable. Example: chmod +x install
- start the install script. Example: ./install
If no RegID is present on the device, the script will ask you for one, simply paste in the RegID provided by Barix.
Raspberry Pi running Raspbian or Ubuntu
We support Raspbian and Ubuntu, with our Flexa scripts. In order to get the regID for your Raspberry, you will need to contact Barix or Qiba (contact@qiba.pt).
Installation
Raspberry needs to be online (view of the internet) for this to work
You can either use this 1 line command:
- sudo wget http://flexaa1ec.blob.core.windows.net/firmwares/Flexa%20Base/finstall.tar && sudo tar xof finstall.tar && sudo chmod +x install && sudo ./install
Or follow the instructions if you prefer to copy the file from your computer to the device:
- get the "finstall.tar" file here. This archive contains everything needed to install flexa
- scp the finstall.tar file into the Barionet. Example: scp finstall.tar root@192.168.3.192:/root
- ssh into the device. Example: ssh -l root 192.168.3.192
- when logged into the device, install the content from the archive. Example: sudo tar xof finstall.tar
- Make an install script executable. Example: sudo chmod +x install
- start the install script. Example: sudo ./install
During installation you will be asked to input a RegID, simply copy the one you received from Barix or Qiba (it should have a "$" dollar sign as a first character)
Once the install script is finished, the device will reboot. That's all you have to do on the device to "flexa enable" it.
The device will now, with every boot, check on the flexa registry if it has been assigned a project (through a portal) or an app on linuquick, and if so, it will download updates automatically and run that app.