Skip to content

Instantly share code, notes, and snippets.

@motomod
Last active May 9, 2018 08:58
Show Gist options
  • Save motomod/f4a6d261aebfd3828d625e57bae30883 to your computer and use it in GitHub Desktop.
Save motomod/f4a6d261aebfd3828d625e57bae30883 to your computer and use it in GitHub Desktop.
Raspberry Pi 3 + Realtek 802.11ac (rtl8812au)
#!/bin/bash
sudo apt update
sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update
sudo apt-get install bc git -y
rpi-source
git clone https://github.com/gnab/rtl8812au.git
cd rtl8812au
sed -i -e 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
sed -i -e 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile
make
sudo insmod 8812au.ko
sudo cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
sudo depmod
cd ..
rm -r linux-* realtek
reboot
Copy link

ghost commented May 9, 2018

i can't enable monitor mode... any suggestions
ip link set wlan1 down
iwconfig wlan1 mode monitor doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment