Skip to content

Instantly share code, notes, and snippets.

@cuongitl
Created December 8, 2025 07:32
Show Gist options
  • Select an option

  • Save cuongitl/4d98fda27d0581d2e39dd89c45de026a to your computer and use it in GitHub Desktop.

Select an option

Save cuongitl/4d98fda27d0581d2e39dd89c45de026a to your computer and use it in GitHub Desktop.
#!/bin/bash
# Author: Cuongitl
# Filename: install_driver_rtl8812au.sh
# # Works on Raspberry Pi OS (Debian-based) as of 2025
echo "Updating package list..."
sudo apt update
# Install required packages
echo "Installing required packages..."
# For Raspberry (RPI)
sudo apt-get install raspberrypi-kernel-headers
sudo apt install -y build-essential bc dkms git
# Clone the driver repository
echo "Cloning the driver repository..."
git clone https://github.com/aircrack-ng/rtl8812au.git
# Change directory to the cloned repository
cd rtl8812au
echo "Installation of Driver"
sudo make dkms_install
# # Cleanup
cd ..
rm -rf rtl8812au
echo "Wi-Fi card installation completed."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment