The BaseUS WiFi dongle provides reliable wireless connectivity, but Ubuntu 24 doesn’t automatically recognize this device out of the box. Installing the necessary drivers manually ensures your system detects the dongle correctly and connects smoothly to WiFi networks.
Method 1: Installing Drivers from the Official GitHub Repository
This method involves downloading and compiling the latest drivers directly from the official GitHub repository. This approach ensures compatibility and provides the latest available improvements and bug fixes.
Ctrl + Alt + T. Enter the following command:sudo apt update && sudo apt upgrade -y
Updating your packages ensures all dependencies and tools are current, preventing potential installation errors.
sudo apt install build-essential dkms git linux-headers-$(uname -r)
These packages provide the necessary tools and kernel headers required to compile and install WiFi drivers properly.
git clone https://github.com/morrownr/8821cu.git
This repository contains the official driver compatible with BaseUS WiFi dongles based on the Realtek 8821CU chipset.
cd 8821cu
sudo ./install-driver.sh
This script compiles the driver and installs it automatically, streamlining the setup process.
sudo reboot
Once your system reboots, your BaseUS WiFi dongle should be automatically recognized and ready to connect to available wireless networks.
Join readers who trust AllThings.How
Add us as a preferred source on Google so our practical guides show up first next time you search.
Add to Google Preferences →Method 2: Manual Installation via DKMS
If you prefer manual control and future-proofing your installation across kernel updates, using DKMS (Dynamic Kernel Module Support) is a robust alternative.
sudo apt update && sudo apt install dkms build-essential git linux-headers-$(uname -r)
Installing DKMS ensures your driver automatically recompiles whenever your kernel updates, maintaining consistent WiFi connectivity.
git clone https://github.com/brektrou/rtl8821CU.git
This repository is another reliable source frequently updated for compatibility with newer Ubuntu kernels.
sudo mv rtl8821CU /usr/src/rtl8821cu-5.8.1.7
This step ensures DKMS recognizes and manages the driver correctly.
sudo dkms add -m rtl8821cu -v 5.8.1.7
sudo dkms build -m rtl8821cu -v 5.8.1.7
sudo dkms install -m rtl8821cu -v 5.8.1.7
This process compiles and installs the driver, ensuring it persists across future kernel updates.
sudo modprobe 8821cu
After running this command, your dongle should become operational immediately without needing a reboot.
Troubleshooting Common Issues
If your WiFi dongle doesn’t activate after following the above steps, verify that Secure Boot is disabled in your BIOS settings. Secure Boot can prevent third-party drivers from loading properly.
Additionally, ensure your dongle is correctly connected and recognized by your system using the following command:
lsusb
You should see your BaseUS WiFi dongle listed among connected USB devices. If it doesn’t appear, try reconnecting the device or using a different USB port.
With these methods, your BaseUS WiFi dongle should now be fully functional on Ubuntu 24. Regularly updating your system ensures continued compatibility and optimal performance.






