VMware linux 虚拟机(ubuntu18.04) 安装TL-WDN5200H 2.0网卡驱动 完美使用(适用于vmware无法桥接网络使用此方法)
# 以下操作均已root用户操作
# 安装内核源代码(需要联网)。
apt-get install linux-source
# 安装内核头文件(需要联网)。
apt-get install linux-headers-$(uname -r)
# 安装编译环境(需要联网) 。
apt-get install build-essential # 如果安装libdpkg-perl出现依赖问题请执行下面操作
(先移除libdpkg-perl这个软件:apt-get remove libdpkg-perl
再安装libdpkg-perl:apt-get install libdpkg-perl)
# 下载TL-WDN5200H 2.0驱动
git clone https://github.com/brektrou/rtl8821CU.git
# 进入rtl8821CU目录
cd rtl8821CU
# 开始编译安装网卡驱动
make
make install
modprobe 8821cu
# 切换无线网卡模式
usb_modeswitch -KW -v 0bda -p 1a2b
# 重启
reboot
至此wifi已经可以用了
参考1:https://www.cnblogs.com/xl2432/p/10371814.html
参考2:https://blog.youkuaiyun.com/swjtu100/article/details/50543260
参考3:https://github.com/brektrou/rtl8821CU