medley icon indicating copy to clipboard operation
medley copied to clipboard

Running on Windows using unix socket with WSL

Open masinter opened this issue 3 years ago • 0 comments

This belongs in documentation somewhere:

Using X11 with WSL 2 on Windows 10, there was a problem that whenever the system went to sleep, it would break the connection to the X server running on the same machine.

I found in some help file the following incantation:

  1. Use the X410 X-server on the Windows side. This is available from the windows app store.
  2. on the WSL side, using a debian-based distro ("pengwin"), sudo apt install socat
  3. run
socat -b65536 UNIX-LISTEN:/tmp/.X11-unix/X0,fork,mode=777 VSOCK-CONNECT:2:6000 &

when you start WSL.

masinter avatar Jul 21 '22 18:07 masinter