WSL: Kali Linux - GUI/Desktop (Win-KeX)

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche

Prerequisites

  • Running Windows 10 version 2004 or higher
  • Using Windows Terminal
  • Install WSL 2 [[1]]

Installing Win-Kex

Install Win-KeX via:

sudo apt update && sudo apt install kali-win-kex

Run Win-KeX in the home directory of Kali:

kex


Running Win-KeX in Windows Terminal

Add follwing settings in the Windows Terminal settings.json file:

{
	"guid": "{55ca431a-3a87-5fb3-83cd-11ececc031d2}",
	"hidden": false,
	"name": "Win-KeX",
	"commandline": "wsl -d kali-linux kex wtstart",
		"startingDirectory" : "//wsl$/kali-linux/home/"
},


More information's: https://www.kali.org/docs/wsl/win-kex/



Troubleshooting

CConn: Opening password file failed

Error: CConn: Opening password file failed
Cause: Win-KeX try to open the current terminal location. If the current location is the windows user mount, then the error occurs.
Solution: Change the location to the Linux home directory and start the Win-KeX again.