遥控车 安装rtl8812au 外置网卡
2020-11-08 09:47:12    250    0    0
jeiry

https://github.com/aircrack-ng/rtl8812au

下载

git clone -b v5.6.4.2 https://github.com/aircrack-ng/rtl8812au.git
cd rtl*​


安装包

sudo apt-get install raspberrypi-kernel-headers


For RPI 1/2/3/ & 0/Zero

sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
$ sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile​


But for RPI 3B+ & 4B you will need to run those below which builds the ARM64 arch driver:

$ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
$ sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makefile​

开始编译

make -j4

# insmod 88XXau.ko
# cp 88XXau.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
# depmod

安装成功


搜索wifi

# iwlist wlan1 scan


找到 Frequency 5.18G

记下 ESSID


vi /etc/wpa_supplicant/wpa_supplicant.conf



network={ ssid="Jcmi_5G" psk="your password" key_mgmt=WPA-PSK }


安装

apt-get install aircrack-ng​

输入

airmon-ng


wlan1是你的外置网卡


vi /etc/dhcpcd.conf


修改或加入

interface wlan1

static ip_address=192.168.31.65 ##选一个没有冲突的网址

static router=192.168.31.1

static domain_name_service=192.168.31.1

重启

roboot


然后用iwconfig 和 ifconfig看一下成功连接了没有

基本上到这就安装成功了

Pre: No Post

Next: 创建VUE + ELE项目

250
Table of content