Difegue / TVC-16

Pelican sources for TVC-16. https://tvc-16.science/blogopolis-docker.html
2 stars 0 forks source link

https://tvc-16.science/cool-retro-term-wsl.html #10

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Blogopolis - Running cool-retro-term in Windows through WSL

https://tvc-16.science/cool-retro-term-wsl.html

techiemoore commented 3 years ago

QXcbConnection: Could not connect to display :0

neverchatter commented 2 years ago

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.

Difegue commented 2 years ago

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.

Danita commented 1 year ago

Oh yes please! I'm using WSLg and I'm not able to run the terminal, and I'm a newbie at Linux :D

Difegue commented 1 year ago

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.

Danita commented 1 year ago

You rock, thank you!