# Kali KEX

I have been using WSLv2 for a considerable period, relying on it as an alternative to a virtual machine (VM) due to its significantly improved performance over the first version. However, since WSL only supports a terminal interface, I occasionally needed to install a VM. This was the case until I discovered the tool "kex," which enables running the Kali Linux GUI with considerably fewer resources than a traditional VM. Below is the method to activate it while WSL is running:

1. Open WSL and enter the following command to install kex:

   ```bash
   sudo apt update && sudo apt install -y kali-win-kex
   ```
2. Once the installation is complete, you can start kex by entering the following command:

   ```bash
   kex
   ```

This approach allows you to easily run the Kali Linux graphical user interface with significantly fewer resources compared to using a VM.

{% file src="/files/5lNxhjYdXmI5ByObYzK2" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://karim-ashraf.gitbook.io/karim_ashraf_space/tips-and-tricks/kali-kex.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
