1、安装工具
sudo apt-get install wireless-tools
sudo apt-get install wpasupplicant
sudo apt-get install network-manager
2、查看无线网卡的名字
ip a
# 或者是
ip addr show
3、启用网卡
ip link set wlp6s0 up
4、查看附近可接入的wifi接入点
iwlist wlp6s0 scanning | grep -i ssid
5、链接wifi
nmcli device wifi connect CMCC-XXX password xxxxxxxx ifname wlp6s0