Difference between revisions of "IoTGateway/AWS/Greengrass"
From ESS-WIKI
Daniel.hung (talk | contribs) (Created page with "This article is written based on AWS (Amazon Web Services) Greengrass 1.0.0, and the target device is Advantech RSB-4760 (IoTGateway/BSP/Linux#APQ8016|Qualcomm APQ8016 platf...") |
Daniel.hung (talk | contribs) |
||
Line 2: | Line 2: | ||
== Set Up Environment == | == Set Up Environment == | ||
+ | |||
+ | This section is referred to the [http://docs.aws.amazon.com/greengrass/latest/developerguide/prepare-annapurna.html AWS Greengrass document] and [http://docs.aws.amazon.com/cli/latest/userguide/awscli-install-linux.html AWS CLI document]. | ||
=== Debian 9 (Stretch) === | === Debian 9 (Stretch) === | ||
+ | |||
+ | 1. Add ggc_user and ggc_group using the following commands: | ||
+ | |||
+ | sudo useradd ggc_user | ||
+ | sudo groupadd ggc_group | ||
+ | |||
+ | 2. Install missing dependencies using the following commands: | ||
+ | |||
+ | apt-get update | ||
+ | apt-get install sqlite3 | ||
+ | |||
+ | 3. Set up cgroups | ||
+ | |||
+ | wget [https://raw.githubusercontent.com/tianon/cgroupfs-mount/master/cgroupfs-mount https://raw.githubusercontent.com/tianon/cgroupfs-mount/master/cgroupfs-mount] | ||
+ | chmod 777 cgroupfs-mount | ||
+ | sudo bash ./cgroupfs-mount | ||
+ | |||
+ | 4. Install Pip | ||
+ | |||
+ | curl -O [https://bootstrap.pypa.io/get-pip.py https://bootstrap.pypa.io/get-pip.py] | ||
+ | python get-pip.py --user | ||
+ | |||
+ | # Add an export command to your profile script, e.g. ~/.profile | ||
+ | export PATH=~/.local/bin:$PATH | ||
+ | |||
+ | # Load the profile into your current session | ||
+ | source ~/.profile | ||
+ | |||
+ | # Verify that pip is installed correctly | ||
+ | pip --version | ||
+ | |||
+ | 5. Installing the AWS CLI with Pip | ||
+ | |||
+ | pip install awscli --upgrade --user | ||
+ | |||
+ | # Verify that the AWS CLI installed correctly | ||
+ | aws --version | ||
== Set Up an AWS Greengrass Core Device == | == Set Up an AWS Greengrass Core Device == |
Revision as of 09:22, 5 September 2017
This article is written based on AWS (Amazon Web Services) Greengrass 1.0.0, and the target device is Advantech RSB-4760 (Qualcomm APQ8016 platform).
Contents
Set Up Environment
This section is referred to the AWS Greengrass document and AWS CLI document.
Debian 9 (Stretch)
1. Add ggc_user and ggc_group using the following commands:
sudo useradd ggc_user sudo groupadd ggc_group
2. Install missing dependencies using the following commands:
apt-get update apt-get install sqlite3
3. Set up cgroups
wget https://raw.githubusercontent.com/tianon/cgroupfs-mount/master/cgroupfs-mount chmod 777 cgroupfs-mount sudo bash ./cgroupfs-mount
4. Install Pip
curl -O https://bootstrap.pypa.io/get-pip.py python get-pip.py --user # Add an export command to your profile script, e.g. ~/.profile export PATH=~/.local/bin:$PATH # Load the profile into your current session source ~/.profile # Verify that pip is installed correctly pip --version
5. Installing the AWS CLI with Pip
pip install awscli --upgrade --user # Verify that the AWS CLI installed correctly aws --version