Skip to content

cdundee/RaspberryPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

RaspberryPi

Install .NET Core to RaspberryPi

Download Linux ARM 32-bit SDK as well as the ASP.NET Runtime so those are packages available for any web apps you make. Link to download (.NET Core 3.1): https://dotnet.microsoft.com/download/dotnet-core/3.1

First run

sudo apt-get install curl libunwind8 gettext

Download .NET Core

wget https://download.visualstudio.microsoft.com/download/pr/b68cde83-05c7-4421-ad9a-3e6f2cc53824/876dbfc9b4521d3ca89a226c6438ffc1/aspnetcore-runtime-3.1.3-linux-arm.tar.gz
wget https://download.visualstudio.microsoft.com/download/pr/c11e9248-404f-4e5b-bd99-175079419d6f/83902a43e06f9fb4e45a4c6a6d5afc0b/dotnet-runtime-3.1.3-linux-arm.tar.gz
wget https://download.visualstudio.microsoft.com/download/pr/21a124fd-5bb7-403f-bdd2-489f9d21d695/b58fa90d19a5a5124d21dea94422868c/dotnet-sdk-3.1.200-linux-arm.tar.gz

Run (first time only)

mkdir -p $HOME/dotnet && tar zxf dotnet-runtime-3.1.2-linux-arm.tar.gz -C $HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet 
export PATH=$PATH:$HOME/dotnet

or

tar zxf dotnet-runtime-3.1.3-linux-arm.tar.gz -C $HOME/dotnet

Run to extraxt tar

tar zxf aspnetcore-runtime-3.1.3-linux-arm.tar.gz -C $HOME/dotnet

Run to extraxt tar

tar zxf dotnet-sdk-3.1.200-linux-arm.tar.gz -C $HOME/dotnet

Check installation

dotnet --info

Publish your project to the Pi

dotnet publish -r linux-arm
cd bin\Debug\netcore3.1\linux-arm\publish
scp -r . [email protected]:/home/pi/Desktop/pitest

xxx.xxx.xxx.xxx is the ip of your Pi

From the Pi, I'll need to "sudo chmod +x" the pitest application to make sure it is executable.

About

Install .NET Core to RaspberryPi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published