2018年第八周-CentOS7 WiFi自动连接

安装过程

1.设置NetworkManager自动启动

 chkconfig NetworkManager on

2.安装NetworkManager-wifi

yum -y install NetworkManager-wifi

3.开启WiFi

nmcli r wifi on

4.测试(扫描信号)

nmcli dev wifi

5.连接

nmcli dev wifi connect SSID password <password>

Troubleshoot

树莓派2代的centos7也可以,可能会报以下异常,重启下系统就好了

Connection activation failed :(7) Secrets were required,but not provided 

实在不行用下下面的:

#设置无线密码
nmcli connection modify SSID wifi-sec.key-mgmt wpa-psk
nmcli connection modify SSID wifi-sec.psk <WiFi密码>
#连接WiFi
nmcli connection up SSID
    原文作者:黄小数
    原文地址: https://segmentfault.com/a/1190000013376776
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞