Run and Debug WPF and Winforms .NET in Linux on a Remote Machine
WANT TO SUPPORT?
💰 Patreon: / agiledevart
---
00:00 Introduction
01:42 VirtualBox Guest Additions and Folder Sharing
03:19 SSH Server Setup
04:13 SSH Key-Based Authentication
06:22 X11 Forwarding
07:15 Debugger on Linux
07:45 Debug with VS Code
09:54 Debug with Visual Studio
---
⌨️ Wine installation:
sudo dpkg --add-architecture i386
wget qO https://dl.winehq.org/wine-builds/win... | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/winehq.key.gpg
sudo apt-add-repository "deb http://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main"
sudo apt update
sudo apt install --install-recommends winehq-stable
wine --version
winecfg
sudo apt install winetricks
winetricks dotnet45
winetricks win7
wget "https://download.visualstudio.microso..."
wine64 windowsdesktop-runtime-5.0.6-win-x64.exe
⌨️If you encounter visual glitches or just a black window, you'll probably need to disable hardware acceleration:
wine reg add "HKCU\\SOFTWARE\\Microsoft\\Avalon.Graphics" /v DisableHWAcceleration /t REG_DWORD /d 1 /f
⌨️ VirtualBox Guest Additions and Folder Sharing
sudo apt-get update
sudo apt-get install build-essential gcc make perl dkms
sudo usermod -a -G vboxsf `whoami`
⌨️ SSH
sudo apt install openssh-server
sudo systemctl status ssh
⌨️ SSH Key-Based Authentication (Powershell)
ssh-keygen -t rsa -b 4096 -f $env:USERPROFILE\.ssh\id_rsa -C "agiledevart@vbox"
.\puttygen.exe $env:USERPROFILE\.ssh\id_rsa
.\pscp.exe -P 22 $env:USERPROFILE\.ssh\id_rsa.pub agiledevart@localhost:/home/agiledevart/.ssh/authorized_keys
.\pageant.exe $env:USERPROFILE\.ssh\id_rsa.ppk
⌨️ X11 Forwarding and Remote Execution (Powershell)
& $env:ProgramFiles\VcXsrv\vcxsrv.exe -multiwindow -clipboard -wgl
.\plink.exe agiledevart@localhost -X -C -T -batch wine64 /media/MVC/bin/Debug/net45/MVC.exe
●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●
👨👩👧👦 Social:
◆ Twitter: / agiledevart
●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●
🎮🕹️🐭 Snappy Mouse Run:
◆ Facebook: / snappymouserun
◆ App Store: https://itunes.apple.com/us/app/snapp...
◆ Google Play: https://play.google.com/store/apps/de...
◆ Amazon Store: http://www.amazon.com/gp/mas/dl/andro...
●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●
#linux #dotnet #debug