./install-dotnet.sh
Start the configuration utility:
sudo raspi-config
Select point 5: "Interfacing options" Select point 2: "SSH" and "Yes" to enable the daemon to run at startup Select point 5: "I2C" and "Yes" to enable
sudo leafpad /etc/samba/smb.conf
(add a share for the 'pi' user)
Get the IP address of the Raspberry PI device
hostname -I
In Windows Explorer, navigate to \\(IP address) and enter the credentials added to the Samba configuration.
First, install the tool globally:
dotnet tool install -g dotnet-sshdeploy
Next, add the following (properly adjusted) to the first property group of the project file:
<SshDeployHost>raspberrypi</SshDeployHost>
<SshDeployTargetPath>/home/pi/publish/web</SshDeployTargetPath>
<SshDeployUsername>pi</SshDeployUsername>
<SshDeployPassword>(your password)</SshDeployPassword>
Deployment is done in the following way:
dotnet-sshdeploy.exe push
When deployment succeeds, the web app can be started in the Raspberry PI:
cd /home/pi/publish/web
dotnet web.dll