Run Blazor on a Raspberry Pi Zero 2 W with Meadow!

00:00 Introduction & Overview
00:24 Raspberry Pi Zero 2 W Overview
01:13 Preparing the Raspberry Pi (OS Install)
02:22 Customizing OS Settings & Enabling SSH
04:42 Troubleshooting WiFi Connection
07:12 Connecting via SSH
08:39 Installing .NET 9 with Script
09:50 Controlling the Onboard LED
12:46 Creating the Blazor Project
13:09 Adding Meadow & Coding the App
20:53 Publishing & Transferring the App
23:57 Running the App on Raspberry Pi
24:27 Blazor App in Action (LED Toggle)
25:27 Reflections & Developer Journey
27:02 Bonus: Playing Around
You'll learn how to:
Set up Raspberry Pi OS Lite with custom settings
Connect via SSH and Wi-Fi
Install .NET 9 on Raspberry Pi using a community script
Create a Meadow-based Blazor app that controls GPIO
Deploy your Blazor app and toggle the LED using a web interface
๐ฆ Tools used: Raspberry Pi Imager, Visual Studio, Meadow Framework, WinSCP
๐งช Want to see SSH deployment in a future video? Let me know in the comments!
๐ Like, share, and subscribe if you enjoy tinkering with Blazor!
Links and commands
Raspberry pi imager:
https://www.raspberrypi.com/software/
WinSCP:
https://winscp.net/eng/index.php
Turn on Wifi:
sudo nmcli radio wifi on
sudo nmcli dev wifi connect "wifi-ssid" password "network-password"
Login using SSH
ssh username@raspberrypi.local
From Pete Gallager:
https://www.petecodes.co.uk/install-and-use-microsoft-dot-net-9-with-the-raspberry-pi/
wget -O - https://raw.githubusercontent.com/pjgpetecodes/dotnet9pi/main/install.sh | sudo bash
sudo reboot
Disable trigger:
echo none | sudo tee /sys/class/leds/ACT/trigger
Turn on or of the Led:
echo 1 | sudo tee /sys/class/leds/ACT/brightness
echo 0 | sudo tee /sys/class/leds/ACT/brightness
Run Blazor:
sudo dotnet BlazorPi.dll --urls http://0.0.0.0:80