How to Connect AWUS036ACH 5GHz Band to Ubuntu Server

Abstract: Resolve missing 5GHz WiFi connectivity on Ubuntu Server by installing the RTL8812AU driver via DKMS for automatic kernel compatibility.

Created: 2026-08-05 by

Connect the AWUS036ACH 5GHz adapter to Ubuntu Server by installing the proprietary RTL8812AU drivers via DKMS, which ensures automatic updates during kernel upgrades. This process requires compiling the driver from source using Git and Make, followed by configuring NetworkManager to recognize the new wireless interface for stable high-speed connectivity.

Verifying Hardware Detection

Before installing any software, it is crucial to confirm that the operating system detects the physical hardware. The Alfa AWUS036ACH uses the Realtek RTL8812AU chipset, which is not included in the mainline Linux kernel due to licensing restrictions. Therefore, you must manually install the driver. Start by opening a terminal and checking if the system sees the device at the USB level. Run the command lsusb and look for an entry containing "Realtek" or "RTL8812". If the device appears here but does not show up in your network list, the issue is purely driver-related. Next, verify the current status of wireless interfaces by running ip link. You should see standard interfaces like eth0 or wlan0, but likely no specific interface for the new adapter yet. It is also helpful to check the kernel ring buffer for any errors related to USB enumeration by using dmesg | grep -i usb. This step ensures that the port is providing sufficient power and that the connection is physically secure.

Installing Dependencies and Source Code

To compile the driver, your server needs several build tools and header files. Since this is a server environment, ensure you have internet access via Ethernet or a temporary wired connection. Update your package lists and install the necessary development packages by executing:
sudo apt update
sudo apt install git linux-headers-generic build-essential dkms
The dkms (Dynamic Kernel Module Support) package is essential because it allows the driver to be automatically recompiled when you perform a major Ubuntu kernel update. Without DKMS, every kernel upgrade would break your WiFi connectivity until you manually reinstalled the driver. Once the dependencies are installed, clone the repository maintained by Morrownr, which is widely considered the most reliable source for this specific chipset on modern kernels. Use the following commands to download the code:
git clone https://github.com/morrownr/8812au.git
cd 8812au

Compiling and Installing the Driver

Navigate into the cloned directory and run the installation script. This script automates the creation of the DKMS configuration file and compiles the module. Execute the installation with elevated privileges:
sudo ./install-driver.sh
This process may take a few minutes as it compiles the C source code into a kernel module. If successful, the script will output a message confirming that the module has been added to DKMS. You can verify the installation by checking the status of the DKMS modules with dkms status. You should see an entry for 8812au showing that it is built and installed for your current kernel version. After compilation, load the module into the running kernel immediately without rebooting by running sudo modprobe 8812au. Then, check your network interfaces again using ip link. You should now see a new interface, typically named wlx... or similar, representing the AWUS036ACH.

Configuring NetworkManager

With the driver active, Ubuntu’s NetworkManager should automatically detect the new wireless card. However, on minimal server installations, NetworkManager might not be enabled or configured correctly. Ensure NetworkManager is running with systemctl status NetworkManager. If it is inactive, start it with sudo systemctl start NetworkManager and enable it to start on boot with sudo systemctl enable NetworkManager. You can now manage the connection using the command line tool nmtui or nmcli. For a graphical text-based menu, use nmtui to select "Activate a connection," find your 5GHz network, and enter the password. Alternatively, using nmcli, you can scan for networks with nmcli dev wifi list and connect with nmcli dev wifi connect "SSID" password "PASSWORD". If you encounter issues where the interface drops frequently, consider adjusting the power management settings. By default, Linux may put the USB device into low-power mode, causing instability. Disable this by creating a udev rule or modifying the NetworkManager configuration to keep the interface awake. For more advanced networking configurations, such as setting up static IPs or handling IPv6, refer to our guide on Set Up Public IPv6 on Ubuntu Server 22.04 and Raspberry Pi.

Troubleshooting Common Issues

If the interface does not appear after installation, verify that the correct kernel headers were installed. Sometimes, linux-headers-generic points to an older version if updates were pending. Rebooting the server often resolves mismatched header versions. Additionally, ensure that no other conflicting drivers, such as older versions of the RTL88xx driver, are loaded. You can check loaded modules with lsmod | grep rtl and remove them with sudo rmmod if necessary. For persistent connection issues, check the system logs using journalctl -xe for any error messages related to the 8812au module. If the driver compiles but fails to associate with the router, try connecting to a 2.4GHz band first to test basic functionality, then switch to 5GHz once stability is confirmed. Remember that some older routers may have compatibility quirks with newer driver versions, so updating your router firmware can sometimes resolve handshake failures.

Frequently Asked Questions

Why does my WiFi disconnect after a kernel update?

This happens if you did not install the driver using DKMS. Without DKMS, the compiled module becomes invalid when the kernel changes. Always use the ./install-driver.sh method which registers the module with DKMS to prevent this issue.

Can I use this adapter for packet injection?

Yes, the RTL8812AU driver supports monitor mode and packet injection, making it suitable for security auditing. However, you must ensure the driver is properly loaded and that you have the appropriate tools like aircrack-ng installed. Note that monitor mode may impact throughput performance significantly.

How do I verify the driver is actually loaded?

Run the command lsmod | grep 8812au in the terminal. If the module is loaded, you will see a list of dependencies associated with it. If nothing returns, the module failed to load, and you should check dmesg for error details.

Is SSH affected when switching to WiFi on Ubuntu Server?

Switching to WiFi does not inherently break SSH, but it can cause disconnections if the IP address changes or the interface flaps. To maintain stability, configure a static IP address for the wireless interface in Netplan or NetworkManager. This ensures your SSH client always connects to the same address.

What should I do if lsusb shows the device but ip link does not?

This indicates a missing or incorrect driver. Verify that you installed the correct repository for the RTL8812AU chipset. Also, check if Secure Boot is enabled in your BIOS, as it may prevent unsigned kernel modules from loading. You may need to disable Secure Boot or sign the module manually.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More