Last active
November 30, 2021 11:09
-
-
Save xtellurian/a26ea81dcfd46bb7ea056f984b8aba0d to your computer and use it in GitHub Desktop.
Setting up Azure IoT Edge runtime on Linux ARM e.g. Rasperry Pi
This file contains 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
set -e | |
# update OS | |
sudo apt update && sudo apt full-upgrade -y | |
# update some bluetooth drivers | |
sudo apt-get install -y pi-bluetooth bluez bluez-firmware libbluetooth-dev libudev-dev | |
# Download and install the moby-engine | |
curl -L https://aka.ms/moby-engine-armhf-latest -o moby_engine.deb && sudo dpkg -i ./moby_engine.deb | |
# Download and install the moby-cli | |
curl -L https://aka.ms/moby-cli-armhf-latest -o moby_cli.deb && sudo dpkg -i ./moby_cli.deb | |
# Run apt-get fix | |
sudo apt-get install -f | |
# You can copy the entire text from this code block and | |
# paste in terminal. The comment lines will be ignored. | |
# Download and install the standard libiothsm implementation | |
curl -L https://aka.ms/libiothsm-std-linux-armhf-latest -o libiothsm-std.deb && sudo dpkg -i ./libiothsm-std.deb | |
# Download and install the IoT Edge Security Daemon | |
curl -L https://aka.ms/iotedged-linux-armhf-latest -o iotedge.deb && sudo dpkg -i ./iotedge.deb | |
# Run apt-get fix | |
sudo apt-get install -f | |
echo "Configure Security as per link below" | |
echo "https://docs.microsoft.com/en-us/azure/iot-edge/how-to-install-iot-edge-linux-arm#configure-the-azure-iot-edge-security-daemon" | |
echo "Schedule reboots with sudo crontab -e" | |
echo "0 4 * * * /sbin/shutdown -r +5" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment