Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Core on Raspbian/ARM?

We know .NET Core supports Linux x64 and x86, MacOS X, Windows... but is it ready to use in Linux for Raspberry Pi? (Raspbian, for example).

like image 899
SuperJMN Avatar asked Jul 01 '16 13:07

SuperJMN


People also ask

Can .NET Core run on Raspberry Pi?

NET Core on Raspberry Pi. . NET Core SDK is available on ARM32/ARM64 which is used by Raspberry Pi but many users have reported it's more convenient to cross build (i.e. dotnet publish -r linux-arm ) binaries from desktop as it allows for much faster iteration cycle.

Can dotnet run on ARM?

The . NET Framework already runs on ARM processors, but it's not the exact same . NET Framework as the version that runs on the desktop.

Can .NET Core be hosted on Linux?

ASP.NET Core is a cross-platform web development framework that supports developing applications on Windows, Mac, Linux, iOS, and Android platforms. Hosting an ASP.NET Core application in Linux is complicated when compared to hosting one in Windows.

Is .NET Core good for Linux?

NET works well on their Linux distributions. Support is provided by those distributions. You can still open issues at dotnet/core if you run into problems.


2 Answers

.NET Core 2.1 supports Raspberry Pi.

Here is how to install .NET Core 2.1 on Raspberry Pi:

$ sudo apt-get -y update
$ sudo apt-get -y install libunwind8 gettext
$ wget https://dotnetcli.blob.core.windows.net/dotnet/Sdk/2.1.300/dotnet-sdk-2.1.300-linux-arm.tar.gz
$ wget https://dotnetcli.blob.core.windows.net/dotnet/aspnetcore/Runtime/2.1.0/aspnetcore-runtime-2.1.0-linux-arm.tar.gz
$ sudo mkdir /opt/dotnet
$ sudo tar -xvf dotnet-sdk-2.1.300-linux-arm.tar.gz -C /opt/dotnet/
$ sudo tar -xvf aspnetcore-runtime-2.1.0-linux-arm.tar.gz -C /opt/dotnet/
$ sudo ln -s /opt/dotnet/dotnet /usr/local/bin
$ dotnet --info
like image 184
1iveowl Avatar answered Sep 17 '22 14:09

1iveowl


According to discussion here sample solution is working on Raspbian. Official instructions are here.

Personally I'm using Ubuntu Server Standard as in this guide but I suppose that is not linux for raspberry as mentioned in your question.

like image 39
Tomas Avatar answered Sep 21 '22 14:09

Tomas