This guide is for the wslg feature of windows 11.
Check for display:
1 | $ echo $DISPLAY |
if not, change it with:
1 | $ export DISPLAY=:0 |
check for X11 display socket
1 | $ ls -la /tmp/.X11-unix |
This is setup during WSL’s INIT.
If doesn’t exist, re-create it to try things out:
1 | $ sudo rm -r /tmp/.X11-unix |
Check whether X11 server is running:
1 | $ ls /tmp/.X11-unix |