Connecting a Raspberry Pi to the ZACH TAMU_WiFi
This page will walk you through connecting a Raspberry Pi to the TAMU_WiFi network in the Zachry Building.
The easiest way to do this is to export this instructional document and copy it over to a USB stick. Then you can copy and paste from it to your Pi. To export it:
Select the ellipses in the top right
Select Export
Select Export to Word
Instructions
Connect to your Pi either via Ethernet, keyboard & monitor, or SSH-over-USB.
Open a Terminal window
Generate a hash of your password, so your password is not stored in plaintext
Enter
read -s -p "Password: " pass && echo -n $pass | iconv -t utf16le | openssl md4 | sed 's/(stdin)= //'
When prompted for your password type your NetID password and hit enter and you will get something like:
Password: a45def1456abcdeefd23abcdef456
Later in the instructions you will need to copy the hash of your password from the terminal window, not the example given here
Set permissions for your wpa_supplicant.conf file
Enter
sudo chmod a+w /etc/wpa_supplicant/wpa_supplicant.conf
Open the wpa_supplicant.conf with a text editor (E.G: Nano)
Enter
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Make sure it contains these values at the top, setting the country code to US.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=US
Type or copy/paste the network section below for the TAMU_WiFi connection. Â Change [YourNetID] to your NetID, and [YourPasswordHash] to the hash you generated above (this will still be in the terminal window for you to copy.) Be aware of the use of quotes.
network={ ssid="TAMU_WiFi" key_mgmt=WPA-EAP eap=PEAP identity="[YourNetID]" password=hash:[YourPasswordHash] ca_path="/etc/ssl/certs" domain_match="net.tamu.edu" }
This text in the file should look like the following but with
identity
andpassword
set to your information:ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=US network={ ssid="TAMU_WiFi" key_mgmt=WPA-EAP eap=PEAP identity="joeaggie" password=hash:a45def1456abcdeefd23abcdef456 ca_path="/etc/ssl/certs" domain_match="net.tamu.edu" }
Save the file using Ctrl + X and then press Y. Press Enter
Use the wpa_cli to restart the Pi's network interface to reconfigure itself with the changes from wpa_supplicant.conf
Enter
sudo wpa_cli -i wlan0 reconfigure
Clear the stored plain text password
Enter
unset pass
Verify the connection is working
Mouse over between the Bluetooth symbol and speaker symbol, top right of screen- it should have a green check by TAMU-WiFi.
If you have connected this Pi to another network, you may see additional networks listed in wpa_supplicant.conf. These can remain in the file.
If you encounter difficulties with these settings, contact us for further assistance
Â