Raspberry Pi on UVa WiFi Network

https://www.raspberrypi.org/trademark-rules/

The easiest way to get your Raspberry Pi connected to the Internet at the University of Virginia is to use an Ethernet cable. If you want to use wireless, pretty much the only option is to use the hidden “wahoo” network.

This is a quick tutorial for getting your Raspberry Pi to connect to the “wahoo” WiFi network at the University of Virginia.

I’m starting with a clean install of Raspbian OS (follow the link for a great tutorial on installing Raspbian OS).

Change Password

The very first thing you should do after booting up your Raspberry Pi is to change the password!

Since this is so important, I’ll show you how.

When you log in open the terminal and type “passwd”, enter the current password “raspberry” (you won’t see any text typed), then hit enter.

Now type in a new password (again, you will see no text), hit enter, and type it a second time.

 

Change Localization Settings

There are two ways to change these settings: using the graphical interface, or the command line.

Graphical

Go to the Raspberry Pi menu (the raspberry logo in the top left corner), then to Preferences, then to Raspberry Pi Configuration.

Under the Localization tab, you’ll want to change the Locale, Timezone and WiFi Country settings. (As a side note, you can also change the password under the “System” tab.)

For our purposes, you need to set the WiFi to “US”.

Command Line

In the terminal, type “sudo raspi-config”. The screen will show a textual display of options. Select Localization Options, and from there change the Locale, Timezone and WiFi Country settings. (Note, you can also change the password using this tool.)

 

Don’t restart the system yet. We have more to do.

Edit System Config

Change the /etc/network/interfaces file. You can open the file in the terminal and edit it using the “vi” command.

Towards the bottom of the file are two sections for a “wlan0” and “wlan1”. Delete those lines.

Add in three new lines for the “wlan0”

auto wlan0
iface wlan0 inet dhcp
    wireless-essid wahoo

What this code does:

auto wlan0 = this will automatically turn on the wireless card

iface wlan0 inet dhcp = this declares an interface card called wlan0 allowed to connect to the TCP/IP network (the Internet) using DHCP (basically, the router will give your Pi an IP address).

wireless-essid wahoo = look for the wireless Extended Service Set Identification named wahoo.

Get WiFi MAC Address

While you have the Raspberry Pi on and the terminal open. Grab the MAC address for the wireless card.

In the terminal type

ifconfig

Now look for the section for the “wlan0” and you’ll see information for a “HWaddr” or Hardware Address. It will be in the format

aa:11:bb:22:cc:33

Copy that information, you’ll need it later.

In order to get your Raspberry Pi connected to the wahoo network, you will first need to register MAC address with ITS. Follow this link to the ITS Registration page: https://netreg.itc.virginia.edu/cgi-bin/mac_sponsor.cgi

ITS suggests getting static IP on the more secure network. This requires your computer be on that network (through CISCO VPN client) if you want to SSH into the Raspberry Pi.

 

Restart the Pi

Now you can restart the Raspberry Pi. When it boots up, it will automatically detect and connect to the “wahoo” network.

Ammon is a Digital Humanities Developer and Makerspace Technologist at the Scholars' Lab where he codes projects, builds tools to fix old projects, does some systems administration, 3D prints and plays with Arduinos and Raspberry Pis. Ammon has BA's in History and German from ASU, an MA in History from GMU and is ABD PhD…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Archives