-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL2 + Windows Not Working #325
Comments
Thank you for the report! Could you please run some tests to encircle the issue?
Both
x11docker has option |
@mviereck IIRC, some time ago you decided to stop supporting vcxsrv on WSL, because of authentication issues. The last "official" statement I remember was that vcxsrv was supported on MSYS2 only, and Cygwin/X was to be used on either Cygwin or WSL. Did it change? |
It was a bit different: VcXsrv provides OT: That being said, maybe the MSYS2 developer could be asked if he would provide |
Thanks for clarifying. Would you mind pointing me to the source of the |
That one looks right. |
@kiwidoggie Could you please have a look and run the tests of my first answer? |
Ubuntu 20.04
kuser@godiwik-laptop:/mnt/c/Users/godiwik$ runx -- xterm runx note: Windows firewall settings can forbid application access runx note: If you get application error messages like 'Cannot open display' DISPLAY=192.168.1.213:1555 XAUTHORITY=/home/kuser/runx_Xauthority ``runx --no-auth -- xterm` runx note: Windows firewall settings can forbid application access runx WARNING: Option --no-auth: Cookie authentication is disabled! DISPLAY=192.168.1.213:191
kuser@godiwik-laptop:/mnt/c/Users/godiwik$ x11docker --no-auth x11docker/fvwm xterm Failed to connect to bus: No such file or directory x11docker note: WSL2 support is experimental and barely tested yet. x11docker WARNING: Option --no-auth: SECURITY RISK! Image x11docker/fvwm not found locally. Using default tag: latest When running XLaunch outside in Windows-Land, and specifying --display 1337, or 1337.0 (the number I picked manually I get this) |
ok, the first two tests failed because
The third test shows an unexpected IP adress |
Seems to be attempting to connect to the Hyper-V adapters (I do have Hyper-V installed) maybe? |
Yes. That is odd because x11docker should find This is the related code in runx, can you test it? It should print
|
I modified the script, and it prints correctly it seems like:
Testing with xterm only
|
That looks right and x11docker in WSL2 should work as expected.
You modified the script? Did you have an outdated version of runx? Your initial post said I've taken the code from current runx v0.4.2, did it look different in your runx? |
Oh, I thought when you were asking to print the hostip, I was supposed to modify the script. I just found the
and added
That's the only modification that I did, but I will revert it. There's no changes otherwise. |
There has been a related ticket in runx: mviereck/runx#6 Please update x11docker with |
I've published release v6.7.0 containing the IP fix in x11docker. Commands like this should work now in WSL2:
|
I currently have been having non-stop issues on my Windows 10 machine, although this works near flawlessly on Linux.
After installing x11docker in WSL2 (Ubuntu 20.04 LTS), and installing VcXsrv on Windows. When launching any application (like telegram desktop, chromium, any example on the README.md) that the VcXsrv server starts on Windows, has a random port and then will close/shut down, and inside of WSL2 returns back to CLI. Before I was getting an error about could not connect to X server, and now not even that happens.
[173:173:0221/040852.601553:ERROR:browser_main_loop.cc(1438)] Unable to open X display
when trying to launch chromium gets printed on the WSL2 command line.
If I use XLaunch and leave the server open, I don't see any way to provide which display to try and connect to (it always starts a new one with runx). There are no errors, or logs anywhere so I'm kind of at a loss on what to do next.
Is there a way to provide the display number instead of launching a new one to runx? I'll be happy to provide any additional details, but here's the generic "dump" of information.
And I know that support for WSL2 is iffy, but hopefully I can help find a solution, but if not I can always run a VM :)
Windows 10 20H2 (OS Build 19042.804)
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
x11docker --version
6.6.2
runx version v0.4.2
vcxsrv-64.1.20.9.0
Firewall: Off (for testing)/VcXsrv was added
The text was updated successfully, but these errors were encountered: