Open utterances-bot opened 3 years ago
QXcbConnection: Could not connect to display :0
This is very cool, thanks for sharing how to do this!
I ran into the same issue as @techiemoore and found the solution:
I don't know if things with WSL2 changed since the blogpost, but export DISPLAY=:0
is insufficient. What worked for me was export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0
On top of this you need to make sure xming is running without access control otherwise you will get an authorization error. This could be a security risk so be careful.
Glad you found it useful! 👍 The article could use an update since these days I think you can just use WSLg to handle the whole X server export shebang.
Oh yes please! I'm using WSLg and I'm not able to run the terminal, and I'm a newbie at Linux :D
Ask and thou shalt receive: https://tvc-16.science/cool-retro-term-wsl2.html is a new updated (and much shorter) article that uses WSL2+WSLg.
You rock, thank you!
Blogopolis - Running cool-retro-term in Windows through WSL
https://tvc-16.science/cool-retro-term-wsl.html