未插无线网卡时, 终端里输入 lsusb
插上USB无线网卡, 终端里再次输入 lsusb, 发现多了下面这行:
Bus 003 Device 021: ID 2357:0101
Google 搜索 “2357:0101”, 发现该无线网卡具体型号为 RTL8812AU
之后搜索 “RTL8812AU 安装linux 驱动”, 操作步骤概括如下: (reference: 这个链接)
打开终端:
- 先删除以前可能安装过的驱动:
sudo apt remove rtl8812au-dkms
- 安装 dkms 和 git (一会要用)
sudo apt update sudo apt-get install dkms sudo apt-get install git
- 从 git 上下载无线网卡驱动
git clone https://github.com/gnab/rtl8812au.git
- 用 dkms 安装:
sudo dkms add ./rtl8812au sudo dkms build 8812au/4.2.2 sudo dkms install 8812au/4.2.2
- 加载驱动:
sudo modprobe 8812au
之后就可以从右上角搜索到wifi, 连接wifi上网啦!
[补充]: ubuntu下配置有线网和无线网一起用]无线网用于连接因特网, 有限网用于连接一些设备: (reference: 博客)
有线网插上后,点击右上角网络标志 > edit connections, 点击 wired connection > edit
点击 IPV4 settings, method 选择 Manual, 点击 Addresses > add
按需求设置ip地址子网掩码网关, 例如:
10.10.10.200 — 255.255.255.0 — 10.10.10.1
点击 Routes, 勾选 “use this connection only for sources on its network”, 则只有访问和有线网卡相同网段的时候才使用有线网卡上网。



