-
Notifications
You must be signed in to change notification settings - Fork 10
Developer Feature Notes
Damian edited this page Oct 3, 2023
·
5 revisions
Publish app as a single file
dotnet publish -c Release -o publish -r linux-x64 -p:PublishReadyToRun=true -p:PublishSingleFile=true
This command is used to execute the app on the remote machine and display it on your local machine
Requires
- Install
vcxsrv
on your local Windows machine - On Remote Linux device:
sudo apt-get install libgbm1 libgl1-mesa-dri libegl1-mesa libinput10
sudo nano /etc/ssh/sshd_config
- Enable:
X11Forwarding yes
X11UseLocalhost yes
sudo systemctl restart sshd
Steps:
The following steps are used to launch the app from a Virtual Machine running from the same machine.
- Start, VCXSrv (XLaunch)
- Local Terminal:
$env:DISPLAY="localhost:0"
- Local Terminal:
ssh USERNAME@ipaddress-Y
(_-X also works) - Launch the app:
dotnet VSLinuxDbg/SampleApp/SampleApp.dll
Possible Errors:
-
connect localhost port 6000: Connection refused
- Caused by VPN and IT permissions
Test Later:
DISPLAY=IPADDRESS:0 dotnet VSLinuxDbg/TestApp/TestApp.dll
Copyright 2023 Xeno Innovations, Inc.