.NETCore 3.1 on Raspberry Pi3 - The story so far...

Abbreviated version, hopefully I'll get round to annotating and explaining once I've finished testing everything.

Download ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img.xz and write to SD with Raspberry Pi Imager.
Clone to mSata (PiDesktop) with dd
sudo dpkg-reconfigure keyboard-configuration
and configure for correct keyboard
sudo passwd root
login as root
sudo usermod -l mylinuxuser ubuntu
sudo usermod -m -d /home/mylinuxuser mylinuxuser
logout & login as mylinuxuser and disable the root account
sudo passwd -l root

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apache2 mysql-server
sudo mysql_secure_installation

sudo mysql -p -u root
CREATE USER 'dbadmin'@'localhost' IDENTIFIED BY 'dbadminpassword';
select Host, User, password_expired,authentication_string from mysql.user;
GRANT ALL PRIVILEGES ON *.* TO 'dbadmin'@'localhost' WITH GRANT OPTION;
SHOW GRANTS for 'dbadmin'@'localhost' ;

sudo apt-get install phpmyadmin
echo "" | sudo tee /var/www/html/info.php
wget https://github.com/pi-desktop/deb-make/releases/download/v1.1.0/pidesktop-base-1.1.0.zip
sudo apt install unzip
unzip pidesktop-base-1.1.0.zip
sudo apt-get install python-dev python-rpi.gpio
sudo apt-get install python-rpi.gpio
sudo apt-get install fake-hwclock
sudo dpkg -i pidesktop-base-1.1.0.deb

sudo echo 'datasource_list: [ None ]' | sudo -s tee /etc/cloud/cloud.cfg.d/90_dpkg.cfg
sudo apt-get purge cloud-init
sudo rm -rf /etc/cloud/; sudo rm -rf /var/lib/cloud/
sudo echo 'dtoverlay=i2c-rtc,pcf8563' | sudo -s tee /boot/firmware/usercfg.txt

wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb

Open the Microsoft website (https://dotnet.microsoft.com/download/dotnet-core/) and find the link for the version you want, for the Pi I want an LTS SDK ARM64 binary, so for the SDK 3.1.102
wget https://download.visualstudio.microsoft.com/download/pr/2ea7ea69-6110-4c39-a07c-bd4df663e49b/5d60f17a167a5696e63904f7a586d072/dotnet-sdk-3.1.102-linux-arm64.tar.gz
sudo mkdir /usr/share/dotnet/
sudo tar zxf dotnet-sdk-3.1.102-linux-arm64.tar.gz -C /usr/share/dotnet/
sudo ln -s /usr/share/dotnet /usr/bin/dotnet
export DOTNET_ROOT=/usr/share/dotnet/dotnet
/usr/bin/dotnet/dotnet --info


.NETCore 3.1 on Raspberry Pi3 Last updated 12/03/2020 16:10:55