lsusb 查看网卡型号

Bus 001 Device 003: ID 0bda:1a2b Realtek Semiconductor Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 0e0f:0008 VMware, Inc. 
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

知道显卡型号是0bda:1a2b
git clone https://github.com/Yuan-W/rtl8821cu

cd rtl8821cu
在makefile中添加如下选项

EXTRA_CFLAGS += -Wno-error=date-time
EXTRA_CFLAGS +=-Wno-date-time

安装
make
sudo make install

sudo modprobe 8821cu

sudo usb_modeswitch -KW -v 0bda -p 1a2b

Logo

更多推荐