nbdd0121 / nbdd0121/wsld

Connection refused while initiating application

Open
#23 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
305
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Hi @nbdd0121, I am having issues with running Terminator GUI via WSL2 Ubuntu.

Here is my setup:

  1. Start VcXSrv on windows host with vcxsrv.exe :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl -dpi auto
  2. Start the wsldhost --daemon with in Windows CMD as admin, and verified that it is running on the port 6000
  3. Inside WSL via windows CMD export DISPLAY=:0 and start wsld process in background.
  4. But I can't get any response for xset q, it just waits.
  5. 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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported WSL2 setup with VcXSrv, wsldhost, wsld, DISPLAY=:0, and xset q, then compare it with launching terminator. Investigate why the X11 connection is refused despite /tmp/.X0-lock and /tmp/.X11-unix/X0 being present; done means the connection responds and Terminator starts successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.