- Setup Ubuntu x86_64 18.04
- Disable UEFI Safe Boot in BIOS (for NVIDIA module signing, may not be necessary)
Download the latest driver for your NVIDIA: https://www.nvidia.com/Download/index.aspx?lang=en-us
git clone https://github.com/arut/nginx-rtmp-module | |
sudo apt-get install -y build-essential libpcre3 libpcre3-dev libssl-dev | |
wget https://nginx.org/download/nginx-1.16.1.tar.gz | |
tar zxf nginx-1.16.1.tar.gz | |
cd nginx-1.16.1 | |
./configure \ | |
--sbin-path=/usr/local/nginx/nginx \ | |
--conf-path=/usr/local/nginx/nginx.conf \ |
# Set device connection string here | |
DEVICE_CONNECTION_STRING='' | |
echo "Checking if IoT Edge is setup on this Edge VM..." | |
if ! sudo systemctl is-active --quiet iotedge ; then | |
echo "IoT Edge is not active (or unknown), installation process starting..." | |
echo "Installing IoT Edge..." | |
echo "Installing Moby runtime..." |
# The docker group grants privileges equivalent to the root user | |
sudo usermod -aG docker $USER | |
newgrp docker | |
docker run hello-world |
# Assumes python3/pip3 installed | |
pip3 install --upgrade iotedgehubdev |
# Ubuntu 18.04 already has python3 | |
# Print python3 version | |
python3 -V | |
# Install pip3 | |
apt update | |
apt -y upgrade | |
apt install -y python3-pip |
# Run as root, sets up stable version of Docker CE | |
# Bash version of : https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-engine---community-1 | |
# Quickly run script via: curl <gist raw link> | bash | |
# Update apt package index | |
apt-get update -y | |
# Install packages to allow apt to use a repository over HTTPS | |
apt-get install -y \ | |
apt-transport-https \ |
Download the latest driver for your NVIDIA: https://www.nvidia.com/Download/index.aspx?lang=en-us
# Run using: | |
# $ curl url/path/to/this/gist | sh | |
# Tooling | |
sudo apt-get update | |
sudo apt-get install -y vim git | |
# Install docker | |
curl -sSL https://get.docker.com | sh | |
sudo usermod -aG docker pi |
Note: This guide assumes Azure CLI 2.0 is installed and familiarity with Azure concepts.
The APP_ID_URI
needs to match what is expected in client request calls.
$ az ad sp create-for-rbac --name [APP_ID_URI] --password [PASSWORD]
for (i = 0; i < 100; i++) { | |
console.log(i); | |
if(i % 5 === 0){ | |
console.log("Fizz"); | |
} | |
} |