Can't Start Win-KeX in Seamless Mode #6108
Replies: 48 comments 58 replies
-
You’re probably going to need to seek support on the Win-KeX issue tracker. Graphical applications aren’t an officially supported scenario for WSL in this version of Windows (or any prior versions.) |
Beta Was this translation helpful? Give feedback.
-
https://twitter.com/craigaloewen/status/1308452901266751488 🤔 |
Beta Was this translation helpful? Give feedback.
-
“In this version of windows” my dude. Come on 😉 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi. I have this problem too. But i have log win-kexsl
Anybody can post this -> .XWinrc here ? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I tried the |
Beta Was this translation helpful? Give feedback.
-
Check your firewall and try to off default windows antimalware. And don't forget -> upd: |
Beta Was this translation helpful? Give feedback.
-
Thank you for the advice. It was the firewall what was causing the problem. I can use the Do you run win-kex without the firewall? Otherwise can you please tell me how did you set up the exception? |
Beta Was this translation helpful? Give feedback.
-
In general, they seem to be automatically applied, but in principle I disable the firewall. |
Beta Was this translation helpful? Give feedback.
-
Created a new issue in gitlab , sort of like a developer there. Don't close yet. |
Beta Was this translation helpful? Give feedback.
-
@martin15560 and @sswwyyaatt,
Is an indication that your virtual network interface is not up. Are you able to ping 8.8.8.8? |
Beta Was this translation helpful? Give feedback.
-
and ifconfig (liniux wsl)
and ipconnfig (windows) ### sorry for the Russian
|
Beta Was this translation helpful? Give feedback.
-
Hmmm, interesting. What's the output of:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I had the same problem. If you have configured /etc/wsl.conf, please check your settings. #These are NG settings.↓ This setting is often set to solve network disconnect problems, but it causes kex --sl not to work. #These are the correct settings.↓ After changing to these settings, try running $ wsl --shutdown in a powershell. Also, if network connection does not work after changing this setting, try running the powershell with administrator privileges and execute the following command. $New-NetFirewallRule -DisplayName "WSL allow in" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow I would be glad if it helps anyone! |
Beta Was this translation helpful? Give feedback.
-
After having tried all the above suggestions:
I'm still stuck on the same issue. ❌ If I start Win-Kex with
✅ If I use ❌ If I use Looking at the
And I didn't find too much about this keymap issue around... EnvironmentWindows 11 21H2 build 22000.856 Kali rolling 2022.3 |
Beta Was this translation helpful? Give feedback.
-
For me, I try this and get this, |
Beta Was this translation helpful? Give feedback.
-
Even after trying every single solution it does not seem to work, hope someone could help |
Beta Was this translation helpful? Give feedback.
-
Log file: OS: Windows NT 10.0 build 22000 (64-bit) LoadPreferences: C:\Users\Amit Verma\AppData\Roaming.XWinrc not found (EE) Error compiling keymap (server-3) executing '"\wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\xkbcomp" -w 1 "-R\wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\xkbdata" -xkm "C:\Users\AMITVE (EE) Error compiling keymap (server-3) executing '"\wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\xkbcomp" -w 1 "-R\wsl.localhost\kali-linux\usr\lib\win-kex\VcXsrv\xkbdata" -xkm "C:\Users\AMITVE |
Beta Was this translation helpful? Give feedback.
-
For me it's a little different, kex works mine Sometimes straight up opens win mode. |
Beta Was this translation helpful? Give feedback.
-
Well I am here again and it seems to work for me now. I had tried everything from the whole thread but nothing seemed to work for me back in september. I really don't know how it just started to work, the only difference between then and now is just I am on windows 22H2 and I have upgraded my ram from 8 gb to 24 gb.These are the commands which previously didn't work but now seem to work ----> sudo apt install dbus-x11 Thanks for your support..... |
Beta Was this translation helpful? Give feedback.
-
Have you installed the vcxsrv on host?
…On Thu, Jun 22, 2023, 9:41 AM devhindo ***@***.***> wrote:
I'm getting Unable to find Win-KeX server (SL) running on
host:172.**.***.*. Any help?
—
Reply to this email directly, view it on GitHub
<#6108 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALKOY2FRJJGJE7BS5HCZHCTXMQALDANCNFSM4S5LOSBQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
simliar issue, my solution is install standalone vcxsrv(in C:\Program Files\VcXsrv) replace vcxsrv.exe: cp /usr/lib/win-kex/VcXsrv/vcxsrv.exe /usr/lib/win-kex/VcXsrv/vcxsrv.exe.bak
cat > /usr/lib/win-kex/VcXsrv/vcxsrv.exe
#!/usr/bin/python3
import os, sys
os.chdir('/mnt/c/Program Files/VcXsrv')
with os.popen('cmd.exe /c "echo %TEMP%"') as f:
temp_path = f.read().strip() + '\\'
os.system(r'cmd.exe /c "C:\\Program Files\\VcXsrv\\vcxsrv.exe" ' + ' '.join([f'"{v}"'.replace('/tmp/', temp_path).replace('\\', r'\\') for v in sys.argv[1:]])) and press ctrl+d |
Beta Was this translation helpful? Give feedback.
-
💯💯
…On Tue, Jun 27, 2023, 12:59 AM 4qwerty7 ***@***.***> wrote:
simliar issue, my solution is install standalone vcxsrv(in C:\Program
Files\VcXsrv) replace vcxsrv.exe:
cp /usr/lib/win-kex/VcXsrv/vcxsrv.exe /usr/lib/win-kex/VcXsrv/vcxsrv.exe.bak
cat > /usr/lib/win-kex/VcXsrv/vcxsrv.exe#!/usr/bin/python3
import os, sys
os.chdir('/mnt/c/Program Files/VcXsrv')
with os.popen('cmd.exe /c "echo %TEMP%"') as f:
temp_path = f.read().strip() + '\\'
os.system(r'cmd.exe /c "C:\\Program Files\\VcXsrv\\vcxsrv.exe" ' + ' '.join([f'"{v}"'.replace('/tmp/', temp_path).replace('\\', r'\\') for v in sys.argv[1:]]))
and press ctrl+d
—
Reply to this email directly, view it on GitHub
<#6108 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALKOY2F3JHKD5Q72ICNKTLLXNIO47ANCNFSM4S5LOSBQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Basically i read everything on this tread and tired everything 1 by 1 multiple times. Does not work. |
Beta Was this translation helpful? Give feedback.
-
I tried every suggestion seriously, but in the end, I gave up on kex. |
Beta Was this translation helpful? Give feedback.
-
Killing the desktop app autorunning for some unknown reason was a temporary
solution so far but it started again after a while. This solution creates a
kill-loop terminating new auto-launches immediately. Not elegant but a very
effective immediate and temporary workaround. Nicely done.
-
Viktor
-
sent from mobile
…On Sun, Nov 19, 2023, 03:52 liudonghua ***@***.***> wrote:
This works for me:
kex --sl -s & while true; do pkill -9 xfdesktop; done
@massif-py <https://github.com/massif-py> Hi. could you explain how and
why it works. 😄
—
Reply to this email directly, view it on GitHub
<#6108 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AELLEA5RRLGNKPCGTTWZBMTYFFX7RAVCNFSM4S5LOSB2U5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TONRQHEYTQMA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
If you have troubles with Windows FW rules settings, you can try this powershell command :
|
Beta Was this translation helpful? Give feedback.
-
Environment
Steps to reproduce
user@host:~$ sudo apt update && sudo apt install kali-win-kex
user@host:~$ kex --sl
Expected behavior
I would like the GUI environment to start on top of the Windows like here: https://www.kali.org/docs/wsl/win-kex-sl/win-kex-sl.png
Actual behavior
There is nothing happening. I have tried to use "-w" parameter also but after 100 (300) seconds the process is closed.
I can open Kali in Window Mode with
kex --win
but the SL Mode doesn't work.Beta Was this translation helpful? Give feedback.
All reactions