Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save beelzebro/33de712ff7b94423095bb046e5e84957 to your computer and use it in GitHub Desktop.
Save beelzebro/33de712ff7b94423095bb046e5e84957 to your computer and use it in GitHub Desktop.
BrosTrend wireless card adapter (Linux installation) #wireless

Content

  1. Installation
  2. Disable built-in wireless card
  3. Remove the driver
  4. Note
  5. Alternative installation

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. Replace wlan0 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.

To remove the driver

sudo modprobe -r 8812au
sudo make uninstall
sudo dkms remove -m 8812au -v 4.2.2 --all

...Completely

sudo apt remove --purge rtl8812au-dkms

Note

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"

Alternative installtion

Try this as another option for installing this driver


Hopefully, that should get you up and running. If not, Google is your friend 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment