Scripts for enabling gnome desktop in wsl ubuntu.
To make it work you need to have default Ubuntu 18.04 or Ubuntu 20.04 in WSL version 2.
wsl -l -v
VcxSrv needs to be installed in default path e.g. c:\program files\vcxsrv\
To install vcxsrv via https://chocolatey.org
choco install vcxsrv
Run installation script as administrator
Start-Process powershell -verb runas -ArgumentList $("-file " + $(Join-Path (Get-Location) "install.ps1"))
Public TCP Firewall rule for 'VcXsrv windows xserver' needs to be disabled manually.
Start xserver with shortcut Ubuntu.lnk created on your desktop. Disable lock screen in terminal opened from gnome-session execute
gsettings set org.gnome.desktop.lockdown disable-lock-screen true