Install the netFIELD Linux extension and onboard your device
Now that you have a clean Raspberry Pi with Raspbian Linux and a netFIELD user account, we can install the netFIELD environment on your Raspberry and onboard the device to https://netfield.io
Follow the following steps to download the installer script:
- Power up your Raspberry Pi and login into the Linux shell
Run the shell command “sudo -i” to switch to the root user
Run the shell command “apt update” to update the package sources list of the package manager to the latest state
Run the shell command "sudo git clone https://github.com/hilschernetiotedge/netFIELD-extension-linux.git" to download the installer script from GitHub
Run the installer script to onboard your Raspberry Pi device
The installer script is now available on your Raspberry Pi device in the folder “netFIELD-extension-linux” of the root user’s home directory.
The installer script can be invoked with two commands: “onboard” and “offboard”. There are two different options for authentication: either authentication with username and password (options “-u <username>” and “-p <password>”) or authentication with an API key (option “-a <apikey>). We will use the installer script with username and password in this example.
Run the following commands to onboard your device to netFIELD Cloud:
Run “cd netFIELD-extension-linux” to switch to the directory that contains the installer script
Run the script to onboard the device (using username and password: "sudo ./netfield-extension-linux-installer.sh -u <username> -p <password> onboard" (please replace the placeholders with your actual username and password in the placeholders)
When you run the installer script for the first time, it downloads and installs some required packages to your device. Afterwards, it establishes a connection to the netfield.io server and onboards your device. You should see a success message in the console.