mynote/raspberry/wifi.md
2019-01-30 17:16:51 +08:00

33 lines
451 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 树莓派连接wifi
## 配置
/etc/network/interfaces
``` bash
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
#allow-hotplug wlan0
#iface wlan0 inet manual
iface wlan0 inet dhcp
wpa-conf /etc/wpa.conf
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
```
> sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
``` bash
network={
ssid=""
key_mgmt=WPA-PSK
psk=""
}
```