Installing AWS IoT Greengrass newer version - FreeWaveTechnologies/ZumIQ GitHub Wiki
Installing AWS IoT GreenGrass on a ZumLink or ZumIQ, running IQ2
Introduction
This procedure has been tested on a ZIQ-PE2. I assume it will work on any ZumLink or ZumIQ device.
The ZumLink or ZumIQ must be running IQ2 (kernel 4.14 or newer) and the associated developer environment.
This procedure is vastly simplified from the earlier procedure. Greengrass v1.10.x is already on the Zum's flash disk. Installation takes only two steps: installing the AWS certificates, and installing Greengrass from flash. The two steps can be accomplished in either order.
But First: Configure AWS Greengrass on AWS IoT and Download the Certificates
(These instructions are copied from https://docs.aws.amazon.com/greengrass/latest/developerguide/gg-config.html)
- Sign in to the AWS Management Console at https://console.aws.amazon.com.
- Click
IoT Core
to open the AWS IoT console. - Click
Greengrass
in the left margin. - Choose
Create a Group
, then chooseUse easy creation
. - Use a meaningful group name, like 'zum_devices'. It will give you a default name for the AWS IoT GG core, like 'zum_devices_Core'. Choose Next.
- On the next page,
Run a scripted easy Group creation
, just clickCreate Group and Core
. - On the
Connect your Core device
page, click BOTH:
Download these resources as a tar.gz
(AND write down the filename!)Choose a root CA
(AND write down the filename!)- DO NOT CLICK
Choose your platform.
- Click
Finish
at the bottom of the page. This takes you to the Configuration page for your GG group.
Install the certificates on ZumLink
- Drag and drop the downloaded tar.gz file to the ZumLink in Windows Explorer.
- Or, if on Linux, use
scp
to copy the tar.gz file to the /ptp directory. - Login as devuser and execute the following two commands.
cd /ptp
sudo tar xzvf the-name-of-your-tar.gz-file -C /greengrass
Install Greengrass Core on the Zumlink.
- While logged in as devuser, execute the following two commands.
cd ~/bin
./install-greengrass.sh
Verify that Greengrass is running
You can verify that Greengrass is running by executing either of these commands.
ps -ef | grep greengrass
sudo systemctl status greengrass