Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu 20.04 - Install Driver For PiAEK USB Wifi Adapter

So I decided to buy a USB WiFi adapter in hopes of setting up a Linux based access point.

Unfortunately, it doesn't work out-of-the-box, and it didn't even work if I just installed the rtl8812au-dkms package from the Ubuntu repositories, so I had to build and install a kernel module from source code on Github.

Steps

sudo apt install git dkms
git clone https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
sudo make dkms_install

After that's completed, you need to reboot into the newly modified kernel in order to be able to start using the wifi adapter.

Testing

To test that your device is now working, you can run the following command:

iw list

You should see a bunch of specs for your new wifi dongle.

References

Last updated: 5th March 2021
First published: 5th March 2021