DEV Community

loading...

Discussion on: Windows 10 as a Linux Window Manager with WSL2

Collapse
fquinner profile image
fquinner Author

That's one of them yeah :). You can also do stdout buffering I haven't decided which is faster but they both work!

Collapse
rwilliams profile image
Ron Williams

Can you point me in the right direction to start playing with stdout buffering?

Thread Thread
fquinner profile image
fquinner Author

Sure, first of all you find one of the socat ports for windows, download it, then run:

socat UNIX-LISTEN:/tmp/.X11-unix/X0,fork EXEC:"/mnt/c/tools/socat/socat.exe - TCP\:localhost\:6000
Enter fullscreen mode Exit fullscreen mode

Original source: github.com/microsoft/WSL/issues/46...

Good luck!

Thread Thread
rwilliams profile image
Ron Williams

Thanks for the tips on this. I got this up and running after a bit of fiddling. I've decided on the socat solution with the WSL1 pass through, as the performance was terrible when using the windows port of socat. Apps load instantaneously and it's robust across sleeps and network connection changes like x11-over-vsock.

Thread Thread
fquinner profile image
fquinner Author

Yeah that's my setup too :). Can't wait to have proper wayland support then we wont need any of that and it'll be even snappier :)