Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
••••••••••••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

How-To: C# (ASP.NET and .NET Core) on OpenWRT

Summary original guide (Alpine): https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#manual-install dl:…

Beitrag
0
Seite
0
↗ Quelle (reddit.com)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!

Summary

Dotnet doesn't target OpenWRT. However, it does target Alpine.

This is important, because a lot of packages for Alpine also work for OpenWRT.

Both OSes use musl instead of glibc, so the above sentence is kind of a general rule of thumb.

Notable occurrences where this rule isn't true include this problem that previously prevented you from running dotnet on OpenWRT: - see: https://github.com/dotnet/sdk/issues/24448

To check your musl compatibility, use ldd:

``` root@openwrt:~# ldd

musl libc (x86_64) Version 1.2.4 Dynamic Program Loader Usage: ldd [options] [--] pathname ```

Since OpenWRT 23.05.3 supports 1.2.4, we should be able to use Alpine's dotnet build, so let's give it a try.

The Alpine Guide (Adapted)

To install dotnet, we will be operating mostly out of the official guide for installing it manually with some modifications for OpenWRT: - see: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#manual-install

First, we need to add the libicu dependency: opkg update && opkg install icu-full-data73

Second, we will download, extract and install the package to OpenWRT.

Before running (and adapting) the following on your router, it is recommended to download the tar.gz in a desktop environment such as Windows to verify the directory structure of the archive. Not all tar.gz files are the same. The following is a general script for downloading and installing tar.gz files on Linux systems, but it should be adapted for changes in the archive structure.

```

Change this if the structure of the tar.gz archive ever changes

FILES_TO_BE_INSTALLED="" # in a lot of archives, the install files are actaully in a subdir named after the package (package.tar.gz/package/ instead of package.tar.gz/*)

Download URL

URL=https://download.visualstudio.microsoft.com/download/pr/f733297a-2aac-4016-b91b-8820ecd145e6/c89c3f08433123f07f03341870ec16e1/dotnet-sdk-8.0.203-linux-musl-x64.tar.gz

Download and extract destination name

DOWNLOAD=dotnet

Install path:

INSTALL="/usr/lib/dotnet"

cd $(mktemp -d)

Download and extract:

wget $URL -O "$DOWNLOAD.tar.gz" mkdir $DOWNLOAD tar -xzvf "$DOWNLOAD.tar.gz" -C $DOWNLOAD

Install:

mkdir -p "$INSTALL" cp -R \ ./$DOWNLOAD/$FILES_TO_BE_INSTALLED \ $INSTALL

chmod +x any files as necessary

export PATH="$PATH:$INSTALL:$INSTALL/tools" echo "export PATH=\"\$PATH:$INSTALL:$INSTALL/tools\"" >> /etc/profile

dotnet --version ```

One thing to note is that the above script diverges a bit from the script in the official docs. Both my script and the microsoft script do the same thing with only one change, and that change is where we install dotnet to: "/usr/lib/dotnet" instead of "~/.dotnet".

The rest of it the script adds variables for easier script reading. Either script can be used. This is the general workflow I use to install linux software without a package manager, so this was a matter of copy and paste for me from prior installation work.

submitted by /u/anonhostpi
[link] [comments]
🔍 CTI & Forensik

Cyber Threat Intelligence & Forensik

Bedrohungsgraph · ATT&CK-Mapping · Exploit-Belege
IoC Intelligence
1 Indikatoren · Defanged · STIX 2.1
c89c3f08433123f07f03341870ec16e1
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
3 Knoten · 2 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How-To: C# (ASP.NET and .NET Core) on OpenWRT

Thematisch verwandte Begriffe: HowTo, ASPNET, Core, OpenWRT · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag