This article was made to help alleviate challenges involved with using the Realtek RTL8812AU chip's out-of-kernel USB WiFi adapter drivers with a Raspberry Pi running Kali Linux.
This driver was provided by our good friend over on GitHub, morrownr.
Step 1:
Copy & paste or type the following command into Terminal to make sure your version of KaliPi is up to date.
sudo apt update && sudo apt upgrade
Make sure to reboot after all updates are complete.
Step 2:
Copy & paste or type the following commands one line at a time into Terminal.
sudo apt install -y kalipi-kernel-headers build-essential bc dkms git
mkdir -p ~/src
cd ~/src
git clone https://github.com/morrownr/8821au-20210708.git
cd ~/src/8821au-20210708
sudo ./install-driver.sh
How to Remove the Driver:
Copy & paste or type the following commands into Terminal.
cd ~/src/8821au-20210708
sudo ./remove-driver.sh
The GitHub author welcomes suggestions and pull requests.