This tutorial is about properly setting up WSL2 X11 forwarding on Windows and Linux distro
- Add the following to your
~/.bashrc:export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 export LIBGL_ALWAYS_INDIRECT=1
- Enable Public Access on your X11 server for Windows.*
- Add a separate inbound rule for TCP port 6000 to the windows firewall in order to allow WSL access to the X server, as described by the wsl-windows-toolbar-launcher people.
Comments
Post a Comment