wsld
wsld copied to clipboard
Connection refused while initiating application
Hi @nbdd0121, I am having issues with running Terminator GUI via WSL2 Ubuntu.
Here is my setup:
- Start VcXSrv on windows host with
vcxsrv.exe :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto - Start the
wsldhost --daemonwith in Windows CMD as admin, and verified that it is running on the port 6000 - Inside WSL via windows CMD
export DISPLAY=:0and startwsldprocess in background. - But I can't get any response for
xset q, it just waits. - And also when initiating the application I get the following error:
C:\>wsl.exe bash -c "DISPLAY=:0 terminator"
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
You need to run terminator in an X environment. Make sure $DISPLAY is properly set
I can see the correct PID in /tmp/.X0-lock for the wsld process I started. And the /tmp/.X11-unix/X0 also have correct permissions(777):
Thanks!
I have no immediate clue of what's wrong there. Maybe try deleting files in /tmp and try again as WSL doesn't clean up the temporary files automatically.