I'm trying to configure an Xming display on my WSL2, and after an amount of troubleshooting attempts, I'm quite clueless.
For details:
System: WSL2 on Windows10Pro
Xming: installed. Some hopefully relevant lines from log:
What I've tried: (on WSL2 terminal)
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
export LIBGL_ALWAYS_INDIRECT=1
As shown here
export DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):0.0
As shown ni subsequent link here
export DISPLAY=172.27.16.1 (/:0/:0.0)
as taken from the Xming log.
Results so far: in all cases I get
No protocol specified
Error: Can't open display: 172.27.16.1:0
or alike
Any advice?