Git Product home page Git Product logo

antminerreset's Introduction

Raspberry pi iot edge on raspian

  1. Start Raspberry Pi Imager

    • select Raspberry Pi Os Lite 32-bit
    • configure hostname
    • enable ssh
    • set password
    • configure wireless lan
    • set timezone Write to SD and put in pi wen finished. I used rpi4iotedge.local as a hostname
  2. ssh [email protected] -sudo raspi-config

    • advance options -> expand file system
    • interface options -> enable SPI and GPIO
    • update
  3. portal.azure.com

    • Create IOT Hub (rpi4iothub)
    • Create Iot Edge Device (rpi4device)
  4. Install IOT Edge https://docs.microsoft.com/en-us/azure/iot-edge/how-to-provision-single-device-linux-symmetric?view=iotedge-2020-11&tabs=visual-studio-code%2Crpios on Raspberry Pi OS

curl https://packages.microsoft.com/config/debian/stretch/multiarch/prod.list > ./microsoft-prod.list sudo cp ./microsoft-prod.list /etc/apt/sources.list.d/

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo cp ./microsoft.gpg /etc/apt/trusted.gpg.d/

  1. Install Container engine from same do on Raspberry Pi OS

sudo apt-get update;
sudo apt-get install moby-engine

  1. Install IoT Edge runtime from doc above

sudo apt-get update;
sudo apt-get install aziot-edge

  1. Created default modules on iot edge device

    • $edgeAgent
    • $edgeHub
  2. provision device with cloud identity in doc above using "Primary Connection String" from IoT Edge device

sudo iotedge config mp --connection-string 'PASTE_DEVICE_CONNECTION_STRING_HERE'

sudo iotedge config apply -c '/etc/aziot/config.toml'

- Test your connectivity between cloud and rpi with
    sudo iotedge check
  1. arm32v7 Remote development requires docker group to run on pi without sudo ssh to pi and: groupadd docker usermod -aG docker $USER newgrp docker -test setting like this docker run hello-world

  2. in vs code user settings from command line pallet add these lines only ip of rpi works for some reason do not try name "azure-iot-edge.executor.env": { "DOCKER_HOST": "ssh://[email protected]" },

  3. during sample build getting internet connectivity errors and not able to restore packages on rpi:

  1. Nuget restore throws errors so trying this dns setting to see if it helps (IT WORKS!)

  2. running powershell from c# https://docs.microsoft.com/en-us/powershell/scripting/developer/hosting/windows-powershell-host-quickstart?view=powershell-7.2

antminerreset's People

Contributors

mharris867 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.