The Fastoe Blog

News and technical documents for all things Fastoe.

How to Install RTL8812BU USB WiFi Dongle on Linux


NOTE: Install USB Wi-Fi Adapters(RTL8812BU chipset) on GUN/Linux, a few known wireless cards that use this driver include:

Installing the Driver(RTL8812BU Chipset) on Your System:

Open a terminal window. Copy & paste the following into the terminal window and hit Return. You may be prompted to enter your password.

• Ubuntu/Mint/Kali (tested)
sudo apt-get update
sudo apt-get -y install wget dkms
wget https://github.com/fastoe/RTL8812BU/releases/download/20200414/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20200205-5960.tar.gz
tar -zxvf rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20200205-5960.tar.gz
sudo dkms add ./rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20200205-5960
sudo dkms install -m rtl88x2bu -v 5.3.1
sudo modprobe 88x2bu
sudo reboot
• openSUSE Leap 15.1/Debian 10 (tested)
wget https://github.com/fastoe/RTL8812BU/releases/download/20200414/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20200205-5960.tar.gz
tar -zxvf rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20200205-5960.tar.gz
cd RTL8812BU\rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20200205-5960
make
sudo make install
sudo reboot
• For setting monitor mode (tested)
vi ./Makefile
72 "CONFIG_80211W = n" -> "CONFIG_80211W = y"
76 "CONFIG_WIFI_MONITOR = n" -> "CONFIG_WIFI_MONITOR = y"
make
sudo make install
sudo ifconfig wlx1cbfcea97791 down
sudo iwconfig wlx1cbfcea97791 mode monitor
sudo ifconfig wlx1cbfcea97791 up

• Raspbian (Raspberry Pi)

Currently tested with Linux kernel 4.19.97-v7+ on Raspberry Pi 3 Model B+ only.

sudo apt-get install raspberrypi-kernel-headers
git clone https://github.com/fastoe/RTL8812BU_for_Raspbian
cd RTL8812BU_for_Raspbian
make
sudo make install
sudo reboot
Installation video
References

Enjoy!