adventures with microcomputers prototyping with raspberry pi

3. WiFi Networks

WiFi Networks

Let's say that I want my Raspberry Pi to connect to wifi networks both at home and at school. wpa_supplicant.conf allows multiple network blocks in the same file so it's simply a matter of adding information for each network the pi needs access to. For example:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev



Final steps:

  1. Configure for your needs and then save the changes.
  2. Reboot your pi (sudo reboot now) and log back in.
  3. Use ping to see if you are actually connected to the internet: ping

If you see something like this in the terminal everything is working:

PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=52 time=16.948 ms
64 bytes from icmp_seq=1 ttl=52 time=17.714 ms
64 bytes from icmp_seq=2 ttl=52 time=16.952 ms


In order to get credit for this assignment, you must:

  1. pick a website to ping from the terminal on your Raspberry Pi from your home wifi network
  2. email me a screenshot of the results of your ping command (hint: it should look vaguely like the ping example above)