I've ran Kali before natively on a few laptops and also through VirtualBox but I got intrigued by the integration with windows that lets me run and access windows stuff directly from Kali/XFCE. And thus I followed all the guides on Microsoft's and Kali's website to try and get this running.Kali is running on WSL2, directly downloaded from Microsoft Store. And then I installed the following packages to get some stuff:
sudo apt install -y kali-win-kex kali-linux-large.
Now to my problem, after many hours of googling and reading posts that say "Bro, just do kex stop / kex kill and then it will work", and many many posts on tigervncserver, kex and various other topics. I'm still left with a few problems.
- I can only get Kali/XFCE to run in --esm mode. I have no idea why. I'm on a regular AMD 64-bit processor.
- If I kill kex, it will also kill tigervncserver which needs to be restarted. Not actually a problem, just something im curious about.
- If I run kex --esm, xrdp creates a folder in my home folder that gives errors when ls'ing and can't be entered. umounting the drive helped one time but it keeps remaking it. There is an old issue on their github stating this but none of the solutions work for me.
- No sound available (i guess because of windows rdp client?)
If I try to run kex I get the error message saying "no matching security types" and it displays this in terminal:
Win-KeX server sessions:
X DISPLAY # RFB PORT # PROCESS ID
:1 5901 2047
You can use the Win-KeX client to connect to any of these displays.
If I run kex --sl I get the following:
Checking /home/user/.cache/sessions/xfce4-session-172.29.32.1:0
Enabling SL mode
Desktop started after 1 seconds, enabling transparency now
But it never actually starts - it sits there forever. It also starts VcXsrv in windows which I thought I uninstalled already, I guess it needs it for seamless mode.
Any suggestions?