First to install the driver (Taken from rtl8812au):
sudo apt install build-essential git dkms rtl8812au-dkms
# git clone https://github.com/gnab/rtl8812au.git
git clone https://github.com/lwfinger/rtl8812au
cd rtl8812au
make
sudo make install
# load the module
sudo modprobe 8812au
# Add the module to dkms so that it is rebuilt and installed when the kernel updates
make clean
sudo mkdir -p /usr/src/8812au-4.2.2/
sudo cp -r . /usr/src/8812au-4.2.2/
sudo dkms add -m 8812au -v 4.2.2
sudo dkms build -m 8812au -v 4.2.2
sudo dkms install -m 8812au -v 4.2.2
# Restart network manager
sudo service network-manager restart
You might want to disable your built in card, so this is what you do:
Add the following line to
/etc/network/interfaces
:
iface wlan0 inet manual
NetworManager doesn't manage interfaces configured in the
interfaces
file. Replacewlan0
with the interface you want to disable, if it's not the name of the built-in interface.Then restart network manager
sudo service network-manager restart
Honestly, I recommend disabling it from your BIOS. Gives a much cleaner feel overall.
sudo modprobe -r 8812au
sudo make uninstall
sudo dkms remove -m 8812au -v 4.2.2 --all
sudo apt remove --purge rtl8812au-dkms
The reason why this works at all is because of a dkms.conf
file in the folder. Mine looks like this:
PACKAGE_NAME=8812au
PACKAGE_VERSION=4.2.2
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless
BUILT_MODULE_NAME=8812au
MAKE="'make' all"
CLEAN="'make' clean"
AUTOINSTALL="yes"
Try this as another option for installing this driver