Computer Graphics 2012-2013

Blog to accompany the CG course

RPI – Connect to the lab wireless access point

| 0 comments

To be able to access the internet with your RPI, please follow indications to get your box connected to the lab AP.

1. WiFi card presence

pi@raspberrypi ~$ sudo iwconfig

You must see wlan0, if you don’t see it then you don’t have a wireless network card connected to your RPI.

2. Available networks

pi@raspberrypi ~$ sudo iwlist scan

You can see the different access points that the wireless card can see.

3. Monitor the events

pi@raspberrypi ~$ sudo iwevent

In a new shell, you can monitor the events on the card with that command.

4. Configure your access

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

Just add the following network by typing:

network={

ssid=”rpi”

psk=”ASK_ME_THE_PWD”

proto=RSN

key_mgmt=WPA-PSK

pairwise=CCMP

auth_alg=OPEN

}

5. Connect

pi@raspberrypi ~$ sudo wpa_supplicant -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

You should now be connected to the access point.

6. DHCP

To get a DHCP address lease, hit the following command:

pi@raspberrypi ~$ sudo dhclient wlan0

Leave a Reply

Required fields are marked *.


Skip to toolbar