***Tested and working method as of May 2023.***
If you have already attempted to install the driver first remove the driver and delete the src directory by copying and pasting the following in terminal:
cd ~/src/8812au-20210629
sudo ./remove-driver.sh
sudo reboot
***Once rebooted open File manager and delete the src folder***
Next check for updates and install them in terminal by copying and pasting the following:
sudo apt update && sudo apt upgrade
***Terminal will probably ask to reboot, this is ok.***
sudo apt-get install dkms
sudo apt install -y raspberrypi-kernel-headers build-essential bc dkms git
mkdir -p ~/src
cd ~/src
git clone https://github.com/morrownr/8812au-20210629.git
cd ~/src/8812au-20210629
sudo ./install-driver.sh
*You will likely receive the following error "Your kernel header files aren't properly installed. Please consult your distro documentation or user support forums. Once the header files are properly installed, please run "sudo ./install-driver.sh"."
To fix this we will need to edit the boot config by doing the following:
sudo su
cd /boot
nano config.txt
Add the following line just under [pi4]:
arm_64bit=0
Then hit "Ctrl + o, Enter" to write out the file.
Then hit "Ctrl + x" to exit the config file.
After exiting the config file we will need to reboot. This can be done by typing the following in terminal:
sudo reboot
Next install the driver by copying and pasting the following in terminal:
cd ~/src/8812au-20210629
sudo ./install-driver.sh