Raspberry set WIFI via command line
安装的系统版本是 RASPBIAN STRETCH LITE
按照官网上的文档设置完后并不能连接到WIFI.
https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
在网上查找过相关问题后,找到一种对我有效的解决方案。(步骤2为官网连接介绍的方法)
1. 在 /etc/network/interfaces 中添加
auto wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
2.在/etc/wpa_supplicant/wpa_supplicant.conf中添加
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="your ssid"
psk="your wifi password"
}
转自
https://raspberrypi.stackexchange.com/questions/67311/failed-to-connect-to-non-global-ctrl-ifname-when-running-wpa-cli-reconfigure
网络上志同道合,我们一起学习网络安全,一起进步,QQ群:694839022