Raspberry Pi & Arduino - How to connect to UCI Network
Steps for Getting Your Raspberry Pi Online on UCI Campus
BEFORE YOU BEGIN CONFIRM YOUR DONGLE MEETS THE CRITERIA LOCATED HERE. OTHERWISE THE FOLLOWING DIRECTIONS WILL NOT WORK.
Credits to Davit Hovhannisyan
These instructions show you the following;
1) How to connect your Raspberry Pi board to the UCI Wifi network.
2) How to setup email on the Raspberry Pi board to email you the current IP address automatically.
Campus WIFI uses DHCP and you'll get a different IP address each time you turn on your board.
1) Open up command prompt on your raspberry pi and type ipconfig and press enter. The following information should pop up.
2) If wlan0 appears, your dongle was successfully connected to your device. If it does not appear, try using sudo reboot or unplugging and plugging your wifi dongle.
3) If wlan0 appears, use the mac address that appears in your version of ipconfig (highlighted in the above image) and register it manually on UCI Mobile Access here http://www.oit.uci.edu/mobile/registration/
4) After inputting the mac address on UCI Mobile Access, you may need to wait up to 20 minutes. After the wait, if you have a GUI on your pi, select wlan0, click scan, and double click on UCI Mobile Access and wait for the IP address to appear. If you do not have a GUI, then type the following into terminal: sudo nano /etc/wpa_supplicant/wpa_supplicant.conf This will take you into a file. Edit the file to contain the following contents
save the file and then reboot with sudo reboot.
5)After logging back in, type ipconfig again and make sure your pi has an associated IP address. This is highlighted in the image below.
6) Now you can use the highlighted ip address to access your pi with terminal tools such as putty. Default log in is user: pi password: raspberry
7) In order to receive an email every time your raspberry pi boots, please install emailing tools such as mailutils, ssmtp, mpack.
Type the following commands to install the tools:
sudo apt-get install ssmtp
sudo apt-get install mailutils
sudo apt-get install mpack
8) Configure ssmtp file with your credentials:
sudo nano /etc/ssmtp/ssmtp.conf
9) Test with this command
echo "sample text" | mail -s "Subject" firstname.lastname@example.org
Your email may have restrictions, such secure modes and captcha. If the test fails, please update your gmail or other accounts to meet the criteria required for such application use.
For example with gmail:
• Turn on access for less secure apps
• Allow access by pressing continue