Skip to content

Instantly share code, notes, and snippets.

@Typiqally
Last active November 14, 2019 09:51
Show Gist options
  • Save Typiqally/76221c37360350e9f862f48ac14ba98e to your computer and use it in GitHub Desktop.
Save Typiqally/76221c37360350e9f862f48ac14ba98e to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "\033[0;32mDownloading and installing Docker...\033[0m"
curl -sSL get.docker.com | sh && sudo usermod pi -aG docker
echo "\033[0;32mDownloading and installing SSL library 1.0.2...\033[0m"
sudo apt-get install libssl1.0.2 -y
echo "\033[0;32mDownloading the Microsoft repository configuration...\033[0m"
curl https://packages.microsoft.com/config/debian/stretch/multiarch/prod.list > ./microsoft-prod.list
echo "\033[0;32mInstalling the Microsoft repository configuration...\033[0m"
sudo cp ./microsoft-prod.list /etc/apt/sources.list.d/
echo "\033[0;32mDownloading the Microsoft GPG public key...\033[0m"
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
echo "\033[0;32mInstalling the Microsoft GPG public key...\033[0m"
sudo cp ./microsoft.gpg /etc/apt/trusted.gpg.d/
echo "\033[0;32mPerforming a system update...\033[0m"
sudo apt-get update -y && sudo apt-get upgrade -y
echo "\033[0;32mInstalling the IoT Edge security daemon...\033[0m"
sudo apt-get install iotedge -y
#!/bin/sh
echo "\033[0;32mDownloading the Microsoft repository configuration...\033[0m"
curl https://packages.microsoft.com/config/debian/stretch/multiarch/prod.list > ./microsoft-prod.list
echo "\033[0;32mInstalling the Microsoft repository configuration...\033[0m"
sudo cp ./microsoft-prod.list /etc/apt/sources.list.d/
echo "\033[0;32mDownloading the Microsoft GPG public key...\033[0m"
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
echo "\033[0;32mInstalling the Microsoft GPG public key...\033[0m"
sudo cp ./microsoft.gpg /etc/apt/trusted.gpg.d/
echo "\033[0;32mPerforming a system update...\033[0m"
sudo apt-get update -y && sudo apt-get upgrade -y
echo "\033[0;32mInstalling the Moby engine and the Moby command-line interface...\033[0m"
sudo apt-get install moby-engine moby-cli -y
echo "\033[0;32mPerforming a system update...\033[0m"
sudo apt-get update -y && sudo apt-get upgrade -y
echo "\033[0;32mInstalling the IoT Edge security daemon...\033[0m"
sudo apt-get install iotedge -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment