Raspberry Pi: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 50: Line 50:
== References ==
== References ==
* [https://blogs.msdn.microsoft.com/david/2017/07/20/setting_up_raspian_and_dotnet_core_2_0_on_a_raspberry_pi/ Setting up Raspian and .NET Core 2.0 on a Raspberry Pi]
* [https://blogs.msdn.microsoft.com/david/2017/07/20/setting_up_raspian_and_dotnet_core_2_0_on_a_raspberry_pi/ Setting up Raspian and .NET Core 2.0 on a Raspberry Pi]
* [https://buildthings.wordpress.com/raspberry-pi-bind9-dns-ddns-dynamic-dns-dnssec-keygen-nsupdate-ddnsclient-on-off-switch-ham-radio-arduino-attiny-remote-base/ Raspberry Pi Bind9 DNS/DDNS (Dynamic DNS) Server]
* [https://www.hanselman.com/blog/InstallingTheNETCore2xSDKOnARaspberryPiAndBlinkingAnLEDWithSystemDeviceGpio.aspx IoT with System.Device.Gpio by .Net Core 2.2]
* [https://www.hanselman.com/blog/InstallingTheNETCore2xSDKOnARaspberryPiAndBlinkingAnLEDWithSystemDeviceGpio.aspx IoT with System.Device.Gpio by .Net Core 2.2]
* [https://domoticproject.com/configuring-dns-server-raspberry-pi/ Configuring a DNS Server in Raspberry Pi]
* [https://domoticproject.com/configuring-dns-server-raspberry-pi/ Configuring a DNS Server in Raspberry Pi]

Revision as of 18:43, 30 July 2019

Dotnet Core

sudo su
mkdir -p /opt/dotnet
chown pi /opt/dotnet
sudo apt-get udpate
sudo apt-get install curl libunwind8 gettext apt-transport-https
sudo apt-get install libicu63 libssl1.1
cd /opt/dotnet
# download from http://cdn.chorke.org/soft/rpix/dotnet/
sudo tar zxf dotnet-sdk-2.2.102-linux-arm.tar.gz -C /opt/dotnet/
sudo tar zxf dotnet-runtime-2.1.9-linux-arm.tar.gz -C /opt/dotnet/
sudo tar zxf aspnetcore-runtime-2.2.1-linux-arm.tar.gz -C /opt/dotnet/
echo 'export DOTNET_ROOT=opt/dotnet' >> ~/.bash_profile
echo 'export PATH=$PATH:$DOTNET_ROOT' >> ~/.bash_profile
printenv
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
dotnet --info
dotnet --help

Core Project

cd ~/Documents
mkdir HelloWorld
cd HelloWorld

dotnet new console
dotnet publish -r linux-arm
bin/Debug/netcoreapp2.2/linux-arm/publish/HelloWorld
# Hello World!

dotnet publish -r win-arm
bin/Debug/netcoreapp2.2/win-arm/publish/HelloWorld
# Hello World!

References