Question related to WSL2 kali linux gui install error

toriqul 0 Reputation points
2024-07-05T08:37:35.17+00:00

Hello, i have error pls help me.

Error connecting to the Win-KeX server (Win)

Please try "/usr/bin/kex start" to start the service

If the server fails to start, please try "/usr/bin/kex kill" or restart your WSL 2 session and try again

i tried:

/usr/bin/kex start

/usr/bin/kex kill

restart WSL2

sudo su

rm /tmp/.X11-unix(i have an error there but i tried rem -r /tmp/.X11-unix)

vncserver(i have 1 more error there: vncserver: /usr/bin/Xtigervnc did not start up, please look into '/root/.vnc/DESKTOP-VQTUDOU.:1.log' to determine the reason! -1 in log: _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.)

Please Help Me :)

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,898 questions
Microsoft Intune Linux
Microsoft Intune Linux
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Linux: A family of open-source Unix-like operating systems.
52 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Zunhui Han 2,395 Reputation points Microsoft Vendor
    2024-07-05T15:54:40.43+00:00

    Hi toriqul,

    Thank you for posting in Q&A forum.

    Based on your needs, we recommend you to refer to the following links.

    https://stackoverflow.com/questions/70577819/how-to-fix-the-error-error-connecting-to-the-kex-server

    Disclaimer: The above mentioned links are not from Microsoft's official website. The information provided on these pages is relatively accurate and reliable. However, you should still be aware that these pages may contain product advertisements that you may not need, so when you download and install these advertising products, please read them carefully and confirm that this is what you need.

    Best regards

    Zunhui

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.