# GPi 2 with Kali ## wifi My CM4 doesn't have wifi, so I tried with a couple devices: - [this cheap and small USB](https://www.amazon.com/gp/product/B008IFXQFU) with [this driver](https://github.com/aircrack-ng/rtl8188eus) - [this larger USB device](https://www.amazon.com/gp/product/B0752CTSGD) with [this driver](https://github.com/aircrack-ng/rtl8812au) Both support monitor-mode and injection. I'm not sure, but I think kali's extended kernel has support for them buit in, but it also doesn't have Gpi2 LCD support. To check that it's working: ```sh sudo apt install aircrack-ng sudo airmon-ng check kill sudo ip link set wlan0 down sudo iw dev wlan0 set type monitor ``` ## regular kali, HDMI > **WARNING**: I couldn't get this to work with LCD patches, so I switched to PiOS + kali packages - Install Kali for CM4 (64bit) - [Setup ssh & wpa_supplicant.conf files](https://pimylifeup.com/headless-raspberry-pi-setup/) ## PiOS + Kali packages - Install pi os lite (64bit), setup wifi, ssh & first user in Raspberry Pi Imager - add [LCD patches](https://support.retroflag.com/Products/GPi_Case_2/GPi_Case_2_patch.zip) (use the retroarch folder) - Install [safe shutdown script](https://github.com/RetroFlag/GPiCase2-Script) - Hold the kernel with `sudo apt-mark hold raspberrypi-kernel` - add `deb http://http.kali.org/kali kali-rolling main contrib non-free` to /etc/apt/sources.list - `sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ED444FF07D8D0BF6` - `sudo apt update && sudo apt-get dist-upgrade` If it asks, Choose "Y" to install the package-mantainer's version every time