1. 将无线网卡插入到USB接口中,确认是否硬件是否正常安装
$ lshw -C network # 查看所有网络接口
*-network
description: Ethernet interface
product: 82579LM Gigabit Network Connection (Lewisville)
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: enp0s25
...
*-network
description: Wireless interface
product: Centrino Wireless-N 2200
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
...
*-network
description: Wireless interface
physical id: a
logical name: wlxd42c
....
$ lspci # 查看pci无线网卡
...
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 2200 (rev c4)
...
$ lsusb # 查看usb无线网卡
...
Bus 003 Device 003: ID 2357:0147 TP-Link AIC8800DC
...
2. 如果没有查看到硬件,请先去官方网站下载驱动,并按官方文档进行安装
$ ls
ux3.zip
$ unzip ux3.zip
$ cd ux3
$ sudo dpkg -i aic8800fdrvpackage_amd64.deb # 按需安装相应的版本
$ ifconfig
wlxd42c: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
3. 启用无线网卡
$ vi /etc/netplan/00-installer-config-wifi.yaml # 修改配置`logical name`使用`lshd`或`ifconfig`进行查看
network:
version: 2
wifis:
"logical name":
optional: true
access-points:
"SSID-NAME-HERE":
password: "PASSWORD-HERE"
dhcp4: true
"logical name":
optional: true
access-points:
"SSID-NAME-HERE":
password: "PASSWORD-HERE"
dhcp4: true
$ netplan --debug apply # 启用
$ ifconfig # 查看网卡状态
wlxd42c: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.3.204 netmask 255.255.255.0 broadcast 192.168.3.255