Wsl 2'de kali linux için GUI'yi başlatamıyor musunuz?
Bu hata mesajı görüntüleniyor:
TigerVNC Viewer 32-bit v1.10.80
Built on: 2020-06-15 22:33
Copyright (C) 1999-2020 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Wed Aug 19 23:22:57 2020
DecodeManager: Detected 8 CPU core(s)
DecodeManager: Creating 4 decoder thread(s)
Wed Aug 19 23:22:59 2020
CConn: unable to connect to socket: No connection could be made because
the target machine actively refused it. (10061)
Ayrıca kurulumu tekrar çalıştırmayı denedim ve aşağıdaki hata mesajı şöyle:
The following packages have unmet dependencies:
gstreamer1.0-plugins-good : Depends: libcaca0 (>= 0.99.beta17-1) but it is not going to be installed
pulseaudio : Depends: libwebrtc-audio-processing1 but it is not going to be installed
Çalıştırmayı denedim: "sudo apt install gstreamer1.0-plugins-good pulseaudio" ama işe yaramadı Lütfen yardım edin!
Yanıtlar
kex --kill
Başarı olmadan denedim . Yaptım kex --stop
ve işe yarıyor! Yeni Win-Kex sürümüyle eşleşecek şekilde düzenlenmiş sözdizimi
Aynı hatayı alıyorum: "CConn: sokete bağlanılamıyor: Hedef makine aktif olarak reddettiği için bağlantı kurulamadı. (10061)" Kali'yi kurduğumdan beri ilk yeniden başlatmanın ardından belirdi. kex stop; kex
Yeni bir ekran açan denedim : 2. @Vam tarafından önerildiği gibi kex dosyasını değiştirmek istedim ama / usr / bin / kex içinde bulamıyorum ... Ayrıca kex için herhangi bir kullanım kılavuzu bulamıyorum. Ben çalıştığımda man kex
Ben sadece "KEX için manuel giriş" olsun. Herhangi bir fikir?
OK I just found solution here: Before you start kex switch to your user home directory. Windows starts kali by default in /mnt/c/Users/yourusername . Just switch to home with cd ~
and then type kex
.
The following solution worked for me.
Step1: Start Powershell or Command Prompt in Administrator Mode.
Step2: type wsl (if kali-linux is you default distro) or just type bash, press enter.
Step3: type cd or cd ~, press enter.
Step4: type kex, press enter.
InshAllah it will work fine.
So I noticed on mine I got the same. " CConn: unable to connect to socket: No connection could be made because the target machine actively refused it. (10061)"
I had to actually edit the kex file /usr/bin/kex and change the 127.0.0.1:1 to 127.0.0.1:2 as my session was spawned on 2 you can tell that on launch in the CLI
X DISPLAY # RFB PORT # PROCESS ID
:2 5902 8802
For those who did not have any success with the above answers
After experimenting a bit I think I understood the issue. There is some updated package that is causing issues with kex. Reinstall Kali, do NOT dist-upgrade, and directly do an apt update and apt install kali-win-kex and it will work just fine. Again, do not update the kali wsl2 system.
Have you tried installing the dependencies it tells you aren't installed?
Try sudo apt install libcaca0
And sudo apt install libwebrtc-audio-processing1
In WSL terminal (kali) type
kex kill
this will stop kex server and kill all related processes.
Then try to launch kex
, this would resolve the socket issue