How to install edgeSDK on Linux
These instructions will walk you through how to run the edgeSDK on a Linux machine.
This guide assumes that:
- You are running popular Linux Distro such as Ubuntu, Debian or Raspbian.
- You have internet connectivity.
- You have root permissions on your development machine.
Open a new terminal window. This guide will start from the user Downloads directory
Next download the latest Linux package from the edgeSDK release page into the Downloads directory
curl -L https://github.com/mimikgit/edgeSDK/releases/latest/download/edge_linux.zip --output edge_linux.zip
Create opt/mimik/edge directory structure
sudo mkdir -p /opt/mimik/edge
Change directory permissions of the directory created in the last step and verify change is applied
sudo chmod a+w -R /opt/mimik/edge | ls -ld /opt/mimik/edge
Unzip then copy mimik edge package to the directory created in the last step
unzip ~/Downloads/edge_linux.zip -d ~/Downloads/edge_linux && sudo cp -a ~/Downloads/edge_linux/. /opt/mimik/edge/ && ls -la /opt/mimik/edge
Change from current directory to opt/mimik/edge
Add execute permission to the edge file
sudo chmod a+x ./edge | ls -ls ./edge
When the edgeSDK starts on this machine, a series of screen output show the status the status of this particular node. For instance the following message shows that the current machine is acting as a regular node or super node:
You can also use the curl command as below in a new terminal and be able to see the screen log show below:
curl -i http://localhost:8083/mds/v1/nodes
In the first couple of lines of the log, you see the access method e.g. Get, Post, Delete etc. As you see this log is a JSON file that shows the encrypted information about the current node.
Follow this account association guide to link your Developer Account to your edgeSDK. That allows you to discover and make calls to devices that is not limited to your local network.