For reference: https://github.com/nbdd0121/x11-over-vsock
- In WSL start
wsld
and setDISPLAY=:0
. - Start x-server (e.g. vxsrv) on TCP port 6000.
- Execute
wsldhost.exe --daemon
with admin privileges.
To run scripts on local machine first set your CurrentUser
execution policy:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Get-ExecutionPolicy -List