Menu
AWS Greengrass
Developer Guide

Preparing an Annapurna aarch64 with Ubuntu 14.04

Follow these steps to prepare your Annapurna aarch64 with Ubuntu 14.04 for running the AWS Greengrass core software.

To run the AWS Greengrass core software:

  1. Use the following commands to add a user named ggc_user and a group named ggc_group:

    Copy
    sudo useradd ggc_user sudo groupadd ggc_group
  2. Use the following commands to install missing dependencies:

    Copy
    apt-get update apt-get install sqlite3
  3. Set up cgroups:

    Copy
    # used script from: https://raw.githubusercontent.com/tianon/cgroupfs-mount/master/cgroupfs-mount sudo bash ./script.sh

To use the AWS IoT Device SDK for C++:

  1. Use the following commands to install cmake:

    Copy
    wget https://cmake.org/files/v3.8/cmake-3.8.0.tar.gz tar -zxf cmake-3.8.0.tar.gz cd cmake-3.8.0 ./configure make sudo make install

    cmake is required for using the AWS IoT C++ Device SDK.

  2. Use the following command to install Git:

    Copy
    apt-get install git

    Git is required for using the AWS IoT C++ Device SDK.

  3. Use the following commands to install OpenSSL 1.0.2+:

    Copy
    sudo apt-get install make wget https://www.openssl.org/source/openssl-1.0.2g.tar.gz tar -xzvf openssl-1.0.2g.tar.gz cd openssl-1.0.2g sudo ./config sudo make install sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` openssl version -v

    The last command displays the version of OpenSSL that was installed. It should read 1.0.2.

  4. Install libssl-dev.

    1. Add the following back ports into /etc/apt/sources.list:

      Copy
      deb [arch=i386,amd64] http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse deb [arch=i386,amd64] http://security.ubuntu.com/ubuntu xenial-security main restricted universe multiverse deb [arch=i386,amd64] http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse deb [arch=arm64,armhf,powerpc] http://ports.ubuntu.com/ xenial main restricted universe multiverse deb [arch=arm64,armhf,powerpc] http://ports.ubuntu.com/ xenial-security main restricted universe multiverse deb [arch=arm64,armhf,powerpc] http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse deb-src http://ports.ubuntu.com/ xenial main restricted universe multiverse deb-src http://ports.ubuntu.com/ xenial-security main restricted universe multiverse deb-src http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse
    2. Run the following commands:

      Copy
      sudo apt-get update sudo dpkg --configure -a --force-all (to fix broken libraries) sudo apt-get -f install (to fix broken libraries) sudo apt-get install libssl-dev
    3. Delete the text you added to /etc/apt/source.list.

    4. Use the following command to update apt-get:

      Copy
      sudo apt-get update