使用 Ubuntu 16.04 LTS。Alfa AWUS036ACH 不能在 Ubuntu 上开箱即用,所以我用 Google 搜索了一下,找到了一个可以让它工作的 shell 脚本。它工作了大约两个星期,然后突然停止工作。
这是shell脚本:
#!/bin/sh
# Shell script to set up drivers for Alfa AWUS036ACH
# You must have an internet connection.
# update your repositories
apt-get update
# install dkms if it isn't already
apt-get install dkms
# change directory to /usr/src
cd /usr/src
# if you have any other drivers installed,remove them like so:
rm -r rtl8812AU-4.3.22/
# get latest driver from github
git clone https://github.com/aircrack-ng/rtl8812au
# move into downloaded driver folder
cd rtl8812au/
# update files in working tree to match files in the index
git checkout --track remotes/origin/v4.3.21
# make drivers
make
# move into parent directory
cd ..
# debugging
dkms status
# rename file for use with dkms
mv rtl8812au/ rtl8812au-4.3.22
# build drivers
dkms build -m rtl8812au -v 4.3.22
# install drivers
dkms install -m rtl8812au -v 4.3.22
# debugging
lsmod
# summon new interface from the depths of the kernel
modprobe 8812au
# wifi interface should now appear.
ip link
适配器工作了大约两周,然后有一天它突然停止工作或被我的操作系统检测到。既iwconfig
不会也ifconfig
不会表现出来。只是为了检查这不是 Alfa 适配器本身的问题,我将其插入 Windows PC,它工作得很好。请帮我让它再次工作。