Created
June 28, 2013 23:00
-
-
Save yanaga/5888804 to your computer and use it in GitHub Desktop.
Quick configuration of WiFi on a Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat << EOF | sudo tee /etc/network/interfaces | |
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
allow-hotplug wlan0 | |
auto wlan0 | |
iface wlan0 inet dhcp | |
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | |
EOF | |
sudo mkdir -p /etc/wpa_supplicant | |
cat << EOF | sudo tee /etc/wpa_supplicant/wpa_supplicant.conf | |
update_config=1 | |
ctrl_interface=/var/run/wpa_supplicant | |
network={ | |
ssid="MEUSSID" | |
psk="MINHASENHA" | |
} | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment