Last active
July 8, 2018 07:05
-
-
Save xtellurian/64397e466cf9cd39bc52ddf1f10fc8d2 to your computer and use it in GitHub Desktop.
DEPRECATED - This gist helps you setup a raspberry pi for IoT Edge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this last to setup and start IoT Edge Runtime | |
set -x | |
set -e | |
echo "Setting up IoT Edge runtime" | |
if [ -z $1 ] | |
then | |
echo "Usage: ./setup-iotedge.sh <Connection-String>" | |
exit 1 | |
fi | |
echo "Using Connection-String $1" | |
sudo iotedgectl setup --connection-string $1 --auto-cert-gen-force-no-passwords | |
sudo iotedgectl start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this second to install the required dependencies | |
set -x | |
set -e | |
echo "Installing Dependencies" | |
sudo pip install --upgrade setuptools pip | |
sudo apt install python2.7-dev libffi-dev libssl-dev -y | |
curl -sSL https://get.docker.com | sudo -E sh # install docker | |
sudo usermod -aG docker pi # Give pi User Permission to Run Docker | |
sudo pip install -U azure-iot-edge-runtime-ctl # install runtime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this first to update the OS | |
set -x | |
set -e | |
echo "Updating OS" | |
sudo apt-get update -y | |
sudo apt-get dist-upgrade -y | |
echo "You should probably reboot now" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment