This guide explains how to get a USB Wi-Fi or Bluetooth dongle working on Linux, covering common brands like D-Link and Belkin. You’ll learn how to identify the chipset, load the correct driver, and troubleshoot connection issues—no terminal wizardry required, just a few straightforward commands.
What You’ll Need
- A Linux system with an internet connection (wired or another working wireless device)
- The USB dongle you want to activate
- Access to a terminal (usually Ctrl+Alt+T)
- Basic familiarity with entering commands (copy-paste works fine)
Step-by-Step
- Plug in the dongle and wait a few seconds. Most Linux distributions will automatically detect it and attempt to load a driver.
- Identify the device. Open a terminal and run
lsusb. Find the line that mentions your dongle’s manufacturer (e.g., D-Link, Belkin) or its chipset. Note the ID (like2001:3319). This ID is crucial for finding the right driver. - Check if the driver is already loaded. Run
lsmod | grep -E 'rtl|mt76|ath|iwl|btusb'. If you see a module that matches your chipset (e.g.,rtl8xxxufor Realtek), the driver is already active. If not, you’ll need to install it. - Install the driver package. For most modern kernels, the driver is built-in. If not, use your package manager. For Ubuntu/Debian:
sudo apt install firmware-realtekorsudo apt install linux-firmware. For Fedora:sudo dnf install linux-firmware. For Arch:sudo pacman -S linux-firmware. - If the driver isn’t in the repos, you may need to compile it from source. This is common for very new or very old chipsets. Search for the chipset name (e.g., “RTL8812BU driver linux”) and follow the project’s README. Usually it’s:
makethensudo make install, thensudo modprobe. - After installing, reload the module or reboot. Run
sudo modprobe(replace with the actual module name) or simply reboot. - Connect to Wi-Fi. Use your desktop’s network manager (click the Wi-Fi icon) or the command line:
nmcli dev wifi connect.password - For Bluetooth dongles, the process is similar. Ensure the
bluetoothservice is running:sudo systemctl start bluetoothand enable it withsudo systemctl enable bluetooth. Then use your system’s Bluetooth settings to pair.
Common Mistakes
- Assuming the brand matters more than the chipset. D-Link and Belkin use chipsets from Realtek, MediaTek, Atheros, etc. The chipset determines the driver, not the brand.
- Ignoring the kernel version. Very old kernels may not support newer chipsets. Consider updating your kernel if you have a recent dongle.
- Forgetting to install firmware. Many chipsets need proprietary firmware blobs. The
linux-firmwarepackage covers most, but some need extra packages likefirmware-realtek. - Not checking dmesg for errors. If the dongle isn’t working, run
dmesg | tailto see kernel messages. They often tell you exactly what’s missing. - Using the wrong driver for dual-band dongles. Some dongles have separate drivers for 2.4GHz and 5GHz. Make sure you’re loading the one that matches your network.
Tips
- Use a wired connection when installing drivers. If the dongle isn’t working, you won’t have internet. Plug in an Ethernet cable or use your phone’s USB tethering.
- Check the Linux Hardware Database (linux-hardware.org). Search for your USB ID to see if others have reported success and with what driver.
- Prefer dongles with well-supported chipsets. If you’re buying new, look for ones based on Intel, Atheros (now Qualcomm), or MediaTek—they tend to have the best Linux support out of the box.
- Keep your system updated. New kernels and firmware packages are constantly adding support for new hardware.
sudo apt update && sudo apt upgrade(or your distro’s equivalent) is your friend. - Use a USB 2.0 port if you have issues. Some dongles have power issues on USB 3.0 ports. Try a different port.
Troubleshooting
If the dongle still doesn’t work after following the steps:
- Check dmesg output. Run
dmesg | grep -i errorordmesg | tail -20to see if the kernel is complaining about the device. Look for messages like “firmware not found” or “unknown chipset”. - Try a different USB port. Sometimes a port can be faulty or not provide enough power. Try a port directly on the motherboard (back of the computer) rather than a front panel or hub.
- Disable secure boot. If you compiled a driver from source, Secure Boot may block it. You can either sign the module or disable Secure Boot in your BIOS/UEFI settings.
- Check if the dongle is recognized at all. Run
lsusbagain. If the device doesn’t appear, it might be physically dead or in a bad state. Try a different computer to confirm. - Use a live USB. Boot from a live Linux USB (e.g., Ubuntu) and see if the dongle works there. If it does, your installed system is missing something. If not, the dongle may be incompatible or broken.
- Search the web for your exact USB ID. For example, “2001:3319 linux” will show you forums and bug reports where others have solved the same problem.
Frequently Asked Questions
- Why does my D-Link dongle show up as a Realtek device? Because D-Link doesn’t make chips; they buy them from Realtek, MediaTek, etc. The chipset is what matters for drivers.
- Do I need to install drivers for every USB dongle? No. Many are plug-and-play with the kernel’s built-in drivers. Only if the dongle uses a very new or very obscure chipset will you need to install extra drivers.
- Can I use a Windows driver on Linux? Sometimes, via NDISwrapper, but it’s unreliable and not recommended. It’s better to find a native Linux driver.
- Why does my dongle work on Ubuntu but not on Fedora? Different distributions may have different kernel versions or firmware packages. Check your distro’s specific documentation.
- What does ‘modprobe’ do? It loads a kernel module (driver) into the running kernel. The module must exist in the system’s module directory first.
- Is it safe to compile a driver from source? Generally yes, if you get it from the official project repository. However, kernel updates can break it, and you’ll need to recompile after each kernel update.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Gmail Gemini Privacy: Data Access & Limit Settings
- Fix Outlook Inbox Corruption with DISM in Windows
- How to Set Up Apple Pay on iPhone
- How to Choose a Refurbished iPhone With Years of Support
- NBA 2K Error Code: Fixes for Common Online Issues
- Voice Dictation in Google Docs: How to Use It