树莓派3b+ centos7 开启wifi

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

一、处理:

安装wifi驱动

curl --location https://github.com/RPi-Distro/firmware-nonfree/raw/54bab3d6a6d43239c71d26464e6e10e5067ffea7/brcm80211/brcm/brcmfmac43430-sdio.bin > /usr/lib/firmware/brcm/brcmfmac43430-sdio.bin

curl --location https://github.com/RPi-Distro/firmware-nonfree/raw/54bab3d6a6d43239c71d26464e6e10e5067ffea7/brcm80211/brcm/brcmfmac43430-sdio.txt > /usr/lib/firmware/brcm/brcmfmac43430-sdio.txt

连接wifi

nmcli  d
nmcli  d  wifi
nmcli d wifi connect SSID_NAME password 'ssid_password'
nmcli d  show wlan0

# 修改为自动连接
nmcli con mod wlan0 connection.autoconnect yes

配置wifi连接

CentOS 7 中使用nmtui配置网络(相当于CentOS 6中的setup)

输入nmtui

二、其他

1.设置NetworkManager自动启动

chkconfig NetworkManager on

2.安装NetworkManager-wifi

yum -y install NetworkManager-wifi

3.开启WiFi

nmcli r wifi on

4.断开wifi连接

sudo nmcli dev dis wlan0

5.查看设备情况

sudo nmcli d

6.连接wifi

sudo nmcli d wifi connect "1503" password "28564503" wlan0

7.获得连接UUID

sudo nmcli c

8.根据uuid,删除连接

nmcli c del UUID号

9.执行 nmcli d wifi connect 出现错误 no wi-fi device found,解决方式安装NetworkManager-为if

转载于:https://my.oschina.net/mengyoufengyu/blog/2249612

你可能感兴趣的:(树莓派3b+ centos7 开启wifi)