Skip to main content
  1. Blog/

Complete Guide: Installing All Alfa USB WiFi Adapters on Linux in China - Kali, Ubuntu, Raspberry Pi

Table of Contents
alfa-china-install-guide - This article is part of a series.
Part 9: This Article

If you’re reading this, you probably bought an Alfa USB WiFi adapter and found yourself stuck because:

Welcome to the Ultimate Alfa Linux Installation Guide
#

TL;DR: The ultimate guide to installing Alfa WiFi adapters on Linux in China, covering Kali, Ubuntu, Debian, and Raspberry Pi. Supports all chipsets including RTL8812AU, MT7612U, and RTL8832BU. Uses only domestic mirrors with no VPN needed.

This guide covers the complete steps for installing every Alfa USB WiFi adapter on all major Linux distributions in mainland China, using domestic mirrors throughout, with no GitHub access required.

  • You’re in China and can’t access GitHub
  • The driver installation seems complicated
  • You need to enable monitor mode and packet injection for wireless testing
  • You’re not sure which driver your specific Alfa model needs

This guide solves all of those problems. We’ll walk you through installing every Alfa USB WiFi adapter on all major Linux distributions, using only China-accessible mirrors. No GitHub. No frustration.


Why This Guide Exists
#

Alfa USB WiFi adapters are popular among penetration testers, network engineers, and wireless enthusiasts. They support monitor mode and packet injection — features most consumer WiFi adapters don’t have.

But here’s the problem: Most driver installation guides assume you can access GitHub. If you’re in China, that’s not possible. This guide is specifically designed for Chinese users, using only mirrors and resources that work within China’s internet infrastructure.


Quick Model Reference
#

Before we dive in, let’s figure out which Alfa adapter you have and what chip it uses:

AX Series (Wi-Fi 6 / 802.11ax)
#

ModelChipsetDriverBest For
AWUS036AXRealtek RTL8832BUrtl8832buGeneral use, good range
AWUS036AXMRealtek RTL8832BUrtl8832buCompact design
AWUS036AXMLRealtek RTL8832BUrtl8832buUltra-compact
AWUS036AXERRealtek RTL8832BUrtl8832buEnhanced power

AC Series (Wi-Fi 5 / 802.11ac)
#

ModelChipsetDriverBest For
AWUS036ACHRealtek RTL8812AU88XXauHigh power, great range
AWUS036ACMMediaTek MT7612Umt76x2uBest VIF support, plug-and-play
AWUS036ACSRealtek RTL8811AU8811auBudget-friendly

Which Adapter Do You Have?
#

  1. Look at the label on your adapter
  2. Check the box it came in
  3. If you bought it online, check your order history

Once you know your model, jump to that section below or follow the general workflow.


Before You Start: What You Need
#

Make sure you have these ready before beginning:

  1. Alfa USB WiFi adapter — The correct model for your needs
  2. USB cable — The one that came in the box works fine
  3. Powered USB hub — Required if you’re on Raspberry Pi
  4. Active internet connection — To reach domestic mirrors in China
  5. Sudo privileges — You’ll need admin access to install drivers

Plug in the adapter first to verify your system sees it:

lsusb

Look for your adapter’s vendor ID in the output:

  • Alfa adapters show up as 0e8d (MediaTek) or 0bda (Realtek)
  • Example: Bus 001 Device 003: ID 0e8d:7612 MediaTek Inc.
  • Example: Bus 001 Device 003: ID 0bda:8812 Realtek Semiconductor Corp.

If you see the ID, your adapter is detected. Move to the driver installation section below.

If you don’t see it, try a different USB port, swap the cable, then run lsusb again.


Choose Your Operating System
#

Jump to the right section for your OS:

Already have the driver installed? Skip to the advanced sections:


China-Accessible Mirror Reference
#

All resources in this guide use these China-accessible mirrors:

ResourceURLUse For
Alfa official downloadsfiles.alfa.com.twDriver packages, firmware
Alfa documentationwiki.alfa.com.twProduct manuals, English
清华大学镜像 (Tsinghua)mirrors.tuna.tsinghua.edu.cnKali / Debian / Ubuntu
阿里云镜像 (Aliyun)mirrors.aliyun.comUbuntu (recommended)
中科大镜像 (USTC)mirrors.ustc.edu.cnKali (recommended)
华为云镜像repo.huaweicloud.comKali ARM images (backup)
Gitee (GitHub alternative)gitee.comDriver source code

Kali Linux Installation
#

Kali Linux comes with wireless tools pre-installed. Getting Alfa adapters working takes just a few steps.

Step 1: Switch to China Mirror
#

Open your sources list:

sudo nano /etc/apt/sources.list

Replace everything with this:

deb http://mirrors.ustc.edu.cn/kali kali-rolling main contrib non-free non-free-firmware

Save: Ctrl+O, Enter, then Ctrl+X. Refresh:

sudo apt update

Backup mirror: If 中科大 (USTC) is slow, use 清华 (Tsinghua): deb https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free non-free-firmware

Step 2: Install Driver by Chipset
#

AX Series (RTL8832BU)
#

sudo apt install -y rtl8832bu-dkms

AC Series - Realtek (RTL8812AU / RTL8811AU)
#

sudo apt install -y realtek-rtl88xxau-dkms

AC Series - MediaTek (MT7612U)
#

The MT7612U driver is built into the Kali kernel. Verify it loaded:

lsmod | grep mt76

If you see mt76x2u, you’re done. If not:

sudo modprobe mt76x2u

Step 3: Verify Driver Loaded
#

Run lsusb again. Your adapter should show up. Then check wireless interfaces:

iwconfig

Look for wlan0 or wlan1. If the interface appears, the driver is working.

Step 4: Enable Monitor Mode
#

Stop interfering processes:

sudo airmon-ng check kill

Start monitor mode:

sudo airmon-ng start wlan0

Verify:

iwconfig

Look for wlan0mon with Mode:Monitor. Done!


Ubuntu 22.04 / 24.04 Installation
#

Step 1: Switch to China Mirror
#

Ubuntu 24.04 (Noble)
#

sudo nano /etc/apt/sources.list.d/ubuntu.sources

Replace with:

Types: deb
URIs: http://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Save with Ctrl+O, exit with Ctrl+X.

Ubuntu 22.04 (Jammy)
#

sudo nano /etc/apt/sources.list

Replace with:

deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse

Save and exit.

Refresh package index
#

sudo apt update

Step 2: Install Build Dependencies
#

sudo apt install -y git dkms build-essential libelf-dev linux-headers-$(uname -r)

Step 3: Install Driver
#

AX Series (RTL8832BU)
#

Clone from Gitee:

git clone https://gitee.com/mirrors/rtl8832bu.git
cd rtl8832bu
make
sudo make install
sudo dkms add .
sudo dkms install rtl8832bu/5.9.6
sudo modprobe rtl8832bu

AC Series - Realtek (RTL8812AU)
#

Clone from Gitee:

git clone https://gitee.com/mirrors/rtl8812au.git
cd rtl8812au
make
sudo make install
sudo dkms add .
sudo dkms install rtl8812au/$(cat VERSION)
sudo modprobe 88XXau

AC Series - MediaTek (MT7612U)
#

The driver is built into the Ubuntu kernel. Load it:

sudo modprobe mt76x2u

Step 4: Enable Monitor Mode
#

sudo airmon-ng check kill
sudo airmon-ng start wlan0
iwconfig

Look for wlan0mon with Mode:Monitor.


Debian 12 (Bookworm) Installation
#

Step 1: Switch to China Mirror
#

sudo nano /etc/apt/sources.list

Replace with:

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware

Save and exit. Refresh:

sudo apt update

Step 2: Install Non-Free Firmware
#

sudo apt install -y firmware-misc-nonfree

Step 3: Install Build Dependencies
#

sudo apt install -y git dkms build-essential libelf-dev linux-headers-$(uname -r)

Step 4: Install Driver
#

AX Series (RTL8832BU)
#

git clone https://gitee.com/mirrors/rtl8832bu.git
cd rtl8832bu
make
sudo make install
sudo dkms add .
sudo dkms install rtl8832bu/5.9.6
sudo modprobe rtl8832bu

AC Series - Realtek (RTL8812AU)
#

git clone https://gitee.com/mirrors/rtl8812au.git
cd rtl8812au
make
sudo make install
sudo dkms add .
sudo dkms install rtl8812au/$(cat VERSION)
sudo modprobe 88XXau

AC Series - MediaTek (MT7612U)
#

sudo modprobe mt76x2u

Step 5: Install Aircrack-ng
#

sudo apt install -y aircrack-ng

Step 6: Enable Monitor Mode
#

sudo airmon-ng check kill
sudo airmon-ng start wlan0
iwconfig

Look for wlan0mon with Mode:Monitor.


Raspberry Pi OS Installation
#

IMPORTANT: The AWUS036ACH draws ~500mW. The AWUS036ACM draws ~400mW. Always use a powered USB hub to prevent the Pi from throttling or crashing under load.

Step 1: Download Kali Linux ARM64 Image
#

Go to: https://www.kali.org/get-kali/#kali-arm

Pick Raspberry Pi 4 (64-bit) or Raspberry Pi 5 (64-bit). Do NOT use 32-bit — 64-bit is required.

China mirror: If kali.org is slow, use 华为云: https://repo.huaweicloud.com/kali-images/

Step 2: Flash to MicroSD
#

Check your SD card’s device path:

lsblk

Flash the image (replace /dev/sdX with your actual card):

sudo dd if=kali-linux-2025.1-raspberry-pi-arm64.img of=/dev/sdX bs=4M status=progress conv=fsync
sync

Wait for sync to complete. Boot the Pi. Default credentials: kali / kali.

Step 3: Switch to China Mirror
#

sudo nano /etc/apt/sources.list

Replace with:

deb http://mirrors.ustc.edu.cn/kali kali-rolling main contrib non-free non-free-firmware

Save and apply:

sudo apt update && sudo apt full-upgrade -y
sudo reboot

Step 4: Install Driver
#

AX Series (RTL8832BU)
#

sudo apt install -y rtl8832bu-dkms

AC Series - Realtek (RTL8812AU)
#

sudo apt install -y realtek-rtl88xxau-dkms

AC Series - MediaTek (MT7612U)
#

sudo modprobe mt76x2u

Step 5: Enable Monitor Mode
#

On a Pi with built-in Wi-Fi, the Alfa adapter shows as wlan1:

iwconfig

Then:

sudo airmon-ng check kill
sudo airmon-ng start wlan1
iwconfig

Look for wlan1mon with Mode:Monitor.


Enable Monitor Mode on Any Adapter
#

Once the driver is installed, monitor mode is easy to enable:

Step 1: Check Your Interface Name
#

iwconfig

Note whether it’s wlan0 or wlan1.

Step 2: Kill Interfering Processes
#

sudo airmon-ng check kill

Step 3: Start Monitor Mode
#

sudo airmon-ng start wlan0

Replace wlan0 with your actual interface name if it’s different.

Step 4: Verify
#

iwconfig

Look for your interface ending in mon (like wlan0mon) with Mode:Monitor.


Test Packet Injection
#

This confirms your adapter can send crafted packets — essential for wireless testing.

sudo aireplay-ng --test wlan0mon

Success looks like:

Trying broadcast probe requests...
Injection is working!
Found 1 AP

If it fails:

  • Reboot and try again
  • Confirm no other process holds the interface (iwconfig)
  • Move closer to a WiFi AP for the test
  • Ensure you’re using wlan0mon, not wlan0

Virtual Interface (VIF) Support
#

VIF (Virtual Interface Functionality) lets you run multiple interfaces on one adapter simultaneously. For example:

  • Managed mode (wlan0) + Monitor mode (mon0) at the same time
  • Run while staying connected to a network AND capturing traffic

Which Adapters Support VIF?
#

ChipsetVIF SupportNotes
MT7612U (AWUS036ACM)✅ Full native supportBest choice for VIF workflows
RTL8812AU (AWUS036ACH)⚠️ LimitedCannot run managed + monitor simultaneously
RTL8832BU (AX series)⚠️ LimitedCheck specific model docs

Creating a Virtual Interface (MT7612U)
#

If you have the AWUS036ACM (MT7612U):

# Create monitor interface while wlan0 stays in managed mode
sudo iw dev wlan0 interface add mon0 type monitor
sudo ip link set mon0 up

Verify both interfaces are active:

iwconfig

You should see:

  • wlan0 — managed mode (associated to AP)
  • mon0 — monitor mode (capturing all traffic)

Use Cases
#

Capture traffic while staying connected:

sudo airodump-ng mon0

Your wlan0 continues normal operation while mon0 captures everything.

Fake AP + Monitor:

sudo iw dev wlan0 interface add ap0 type __ap
sudo iw dev wlan0 interface add mon0 type monitor
sudo ip link set ap0 up
sudo ip link set mon0 up

Virtual Machine USB Passthrough
#

Running Linux inside a VM? You need to pass the USB adapter through to the guest.

VirtualBox
#

  1. Power off the VM
  2. Go to Settings → USB
  3. Enable USB 3.0 (xHCI) Controller
  4. Click + to add a USB filter
  5. Select your Alfa adapter (ID: 0bda:8812 or 0e8d:7612)
  6. Start the VM

Inside the VM, run lsusb to confirm, then follow the Kali Linux steps above.

VMware Fusion (macOS) / VMware Workstation (Windows)
#

  1. Start the VM
  2. Menu: Virtual Machine → USB & Bluetooth
  3. Find your Alfa adapter and click Connect
  4. The adapter appears inside the VM

Run lsusb to confirm, then follow the driver installation steps.


Troubleshooting
#

ProblemLikely CauseFix
lsusb doesn’t show adapter IDBad cable or no powerTry different USB port. Use powered hub on Pi.
modprobe says “Module not found”Missing kernel modulesRun sudo apt install linux-modules-extra-$(uname -r)
Driver works but won’t switch to monitor modeNetworkManager interferingRun sudo airmon-ng check kill first
Monitor mode starts but captures nothingWrong interface or channelRun iwconfig. Set channel: iwconfig wlan0mon channel 6
Injection test failsUsing wrong interfaceUse wlan0mon, not wlan0
VIF creation failsDriver not fully loadedUnplug and replug adapter, or reload module

Appendix: Complete Alfa Model List
#

ModelChipsetDriverChina Mirror Source
AWUS036ACHRTL8812AU88XXauGitee: mirrors/rtl8812au
AWUS036ACMMT7612Umt76x2uBuilt-in kernel driver
AWUS036ACSRTL8811AU8811auGitee: mirrors/rtl8811au
AWUS036AXRTL8832BUrtl8832buGitee: mirrors/rtl8832bu
AWUS036AXMRTL8832BUrtl8832buGitee: mirrors/rtl8832bu
AWUS036AXMLRTL8832BUrtl8832buGitee: mirrors/rtl8832bu
AWUS036AXERRTL8832BUrtl8832buGitee: mirrors/rtl8832bu
AWUS036EACRTL8814AU8814auGitee: mirrors/rtl8814au

常見問題

Do I need a VPN to install Alfa WiFi adapters in China?

No. You can complete the entire process using domestic mirrors like USTC, Aliyun, Tsinghua, and Gitee source code mirrors.

Which Alfa adapter is best for monitor mode and packet injection?

AWUS036ACM with MT7612U chipset has an in-kernel driver and full VIF support, making it the best choice.

Which Alfa adapters support WiFi 6?

AWUS036AX and AWUS036AXER use the RTL8832BU chipset supporting WiFi 6. Ubuntu 24.04 is driver-free plug-and-play.

Which Alfa adapters support WiFi 6E?

AWUS036AXM and AWUS036AXML use the MT7921AUN chipset supporting WiFi 6E tri-band.

What should I note when using Alfa adapters on Raspberry Pi?

Always use a powered USB hub for power, and flash the Kali ARM64 image for best driver support.

Final Notes
#

This guide covers all Alfa USB WiFi adapters on all major Linux distributions, using only China-accessible resources. You should now be able to:

✅ Install drivers for any Alfa adapter
✅ Enable monitor mode on Kali, Ubuntu, Debian, or Raspberry Pi
✅ Test packet injection
✅ Use virtual interfaces (VIF) with supported models
✅ Pass adapters through to VMs

Questions or issues? Check out the specific model guides in our series, or contact us at yupitek.com.


Related Guides#

This is part of the Alfa China Install Guide series:


Last updated: April 24, 2026

References
#

  1. aircrack-ng Official Documentation
  2. Linux Kernel mt76 Driver
  3. ALFA Network Official Website
  4. Kali Linux Official Documentation
  5. Gitee Driver Source Mirrors
alfa-china-install-guide - This article is part of a series.
Part 9: This Article