[raspberry pi] 如何设置WIFI连接

参考文献:http://ubuntuforums.org/showthread.php?t=263136

1. 先对你的密码进行加密

pi@raspberrypi ~ $ wpa_passphrase mywlan thisisthepassword
network={
ssid="mywlan"
#psk="thisisthepassword"
psk=b22ec921c254c73f99b31b76ff876692ecde36839a1f2d92150829e6afcb5515
}


2.将上面得到的结果放到wpa supplicant的配置文件

pi@raspberrypi ~ $ sudo vi /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant

ctrl_interface=_group=0

ap_scan=1

network={

ssid="mywlan"
#psk="thisisthepassword"
psk=b22ec921c254c73f99b31b76ff876692ecde36839a1f2d92150829e6afcb5515
}


3.重新加载wpa supplicant配置文件

sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

你可能感兴趣的:(linux,raspberry,pi)