View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007586 | Kali Linux | Kali Package Bug | public | 2022-02-16 14:50 | 2023-01-24 20:01 |
Reporter | ShadowXT | Assigned To | re4son | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Product Version | 2022.1 | ||||
Summary | 0007586: Using win-kex in WSL kali-linux | ||||
Description | When I use ' kex -- win - s ' as a normal user to experience WSL's Kali desktop experience, the system will always report an error。 The error message is: At the same time, TigerVNC Viewer will also pop up an error box, and the error message displayed is: I've tried many times, but as long as I run this command as root, I won't report such an error and run normally. Win-KeX server sessions: X DISPLAY # RFB PORT # RFB UNIX PATH PROCESS ID # SERVER You can use the Win-KeX client to connect to any of these displays. | ||||
Steps To Reproduce | Failure process: Error connecting to the KeX server. Failure process: Win-KeX server sessions: X DISPLAY # RFB PORT # RFB UNIX PATH PROCESS ID # SERVER You can use the Win-KeX client to connect to any of these displays. | ||||
Additional Information | OS: Kali GNU/Linux Rolling on Windows 10 x86_64 ┌──(shine㉿Shadow)-[~] ┌──(shine㉿Shadow)-[~] | ||||
There appears to be a stale session blocking the port. kex --kill && sudo kex --kill to kill all remnants from earlier sessions and then try again? |
|
I've tried this command, but it still has the same problem ┌──(shine㉿Shadow)-[~] ┌──(shine㉿Shadow)-[~] Error connecting to the KeX server. |
|
Could you please run "kex --status" and "kex --win --status" and post the output? Many thanks |
|
This is the case when an normal user runs two commands:
┌──(shine㉿Shadow)-[~] Error connecting to the KeX server. This is the case when I run two commands after using sudo:
/usr/bin/kex:行266: tasklist.exe:未找到命令 ┌──(shine㉿Shadow)-[~] Win-KeX server sessions: X DISPLAY # RFB PORT # RFB UNIX PATH PROCESS ID # SERVER You can use the Win-KeX client to connect to any of these displays. |
|
I wonder if it's because the Win-Kex socket doesn't have permission to my normal user: This is the file owner I found in the folder where the Win-Kex socket is located: Then go to the new folder pointed to by device X0 ┌──(shine㉿Shadow)-[/mnt/wslg/.X11-unix] The folder name of Win-Kex socket is .X11-UNIX, whose owner is root user, but the owner of X0 file under this folder is normal user. |
|
That's on purpose and not causing it. |
|
Some additional details + a workaround (which may hopefully lead to finding an actual resolution): https://github.com/microsoft/wslg/issues/782#issuecomment-1196513933
It ?appears? kex is not correctly detecting when /tmp/.X11-unix is a mount, that it's a wslg socket, but does when it's a symlink:
After that kex will move it/back it up automatically when starting up, and will work fine.
You can restore it after if you really need to: |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2022-02-16 14:50 | ShadowXT | New Issue | |
2022-02-17 03:48 | re4son | Note Added: 0015758 | |
2022-02-17 03:51 | re4son | Note Edited: 0015758 | |
2022-02-17 05:33 | ShadowXT | Note Added: 0015759 | |
2022-02-17 07:15 | re4son | Note Added: 0015760 | |
2022-02-17 13:32 | ShadowXT | Note Added: 0015761 | |
2022-02-17 14:38 | ShadowXT | Note Added: 0015763 | |
2022-03-25 13:57 | g0tmi1k | Severity | major => feature |
2022-03-25 13:58 | g0tmi1k | Severity | feature => minor |
2022-03-30 15:58 | steev | Assigned To | => steev |
2022-03-30 15:58 | steev | Status | new => assigned |
2022-03-30 15:59 | steev | Assigned To | steev => re4son |
2022-08-21 04:23 | re4son | Note Added: 0016626 | |
2023-01-24 20:01 | vtcifer | Note Added: 0017427 |