February 29, 2016
by H. Watanabe
0 comments
Complete the Project 1 Word document with this final chapter on how to connect the RPI to the Student WLAN network of the school. You can use the GUI as described here:
https://www.raspberrypi.org/documentation/configuration/wireless/
Or the command line as displayed here:
https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
1. Configure the interface
Terminal command to edit the file:
sudo nano /etc/network/interfaces
Content:
#local
auto lo
iface lo inet loopback
#ethernet
iface eth0 inet dhcp
#wireless lan
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
2. Configure the WPA file
Terminal command to edit the file:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Content:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network{
ssid="Student"
psk="ASK_THE_TEACHER"
}
Once completed go back to the terminal and bring up wlan0:
Terminal command: sudo ifup wlan0
You should receive a DHCP offer at this point. If not, check with me.