With Kali, you don't have to worry about setting environment variables or starting services.
Sudo apt update & sudo apt install kali-win-kex Once installed, after having providing the credentials, run the following command to install Win-KeX to allow running GUI Linux Apps on KALI for Windows: Kali Linux Windows Application is available on Microsoft Store:
There are different ways to set the DISPLAY variable, thank you the updates.Įxport DISPLAY="`grep nameserver /etc/nf | sed 's/nameserver //'`:0"Įxport DISPLAY="`sed -n 's/nameserver //p' /etc/nf`:0"Įxport DISPLAY=$(ip route|awk '/^default/'):0 cd ~ xfsettingsd -sm-client-disable xfce4-panel -sm-client-disable -disable-wm-check taskkill.exe /IM x410.exe taskkill.exe /IM pulseaudio.exe /F fi "įor more details about how to enable the xfce-panel steps, please check:įollows a great thread about how to fix sound issues: It is necessary to set the DISPLAY environment variable with the correct IP address on launch. The next step is to set the DISPLAY environment variable on Linux to use the Windows host's IP address as WSL2 and the Windows host are not in the same network device. Windows Security -> Firewall & network protection -> Allow an app through firewall -> make sure VcXsrv has both public and private checked. NOTE: Don't forget to allow VcXsrv in the Windows firewall settings. To warranty that the “ Disable access control” will be always checked, save the configuration and always launch VcXsrv using the configuration file ( config.xlaunch) : The first step is to install the third-part display manager called VcXsrv Windows X Server available at:ĭuring setup is important to disable the access control to avoid the permission denied error when trying to run a GUI application:
I am using the VcXsrv Windows X Server that is open-source and is frequently update. The X server is a provider of graphics resources and keyboard/mouse events.