Add this to your .bashrc
, .zshrc
(or equivalent)
# Get the IP address of the host from /etc/resolv.conf
export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2)
# Set the display path
export DISPLAY=$WSL_HOST:0.0
Now you can use something like MobaXterm for X 11 forwarding and use Linux GUI applications natively in Windows!