We're ready to boot into rasbian for the first time. Exciting!

Eject the sd card from your computer and plug it into your raspberry pi. Make sure you're plugged into a monitor of some sort (I used my TV) you'll also want to have a keyboard and mouse as well as a hard wire ethernet (you may not need the ethernet wire on the pi3 as it has built in wifi though I'm unsure). Speaking of which...If you have to use a wifi dongle for your pi, DO NOT I repeat DO NOT plug the dongle in just yet. (We'll get to it, I promise).

Once you've made it to the raspberry pi desktop, we're gonna open up a terminal session so that we can get that wifi working. Now type in sudo raspi-config to bring up the configuration tool. You're gonna want to enable SSH so we can ditch the keyboard/mouse and monitor. Select option 9.Advanced Options using the arrow keys and [enter] and then select option A4 SSH and enable. This will allow us to connect from our PC. (sweet). While we're back at the main selection of the config tool, go ahead and select option 6. Enable Camera. And exit the tool.

Now in the terminal we're going to edit a few files that will allow the wifi dongle to work. So first we'll type

sudo nano /etc/network/interfaces

sudo - grants us temporary super user privileges to execute the rest of the command

nano - is a small text editing program

/etc/net..ces - this is the path to the file we're editing.

There should already be a few lines of code in this file. Edit yours to match this.

allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf<br>iface default inet dhcp

As you can see in my snapshot, I also had allow-hotplug wlan1. While I'm not sure if it makes any difference, I also copied the rest of the code under that one as well (everything seems to be working fine for me.)

Go ahead and hit [ctrl] + [x] and nano will ask if you want to save...simply hit [y] and then [enter]. And we're done with that file.

Now, we're going to edit that wpa_supplicant.conf file that we put in that interfaces file. So go ahead and type

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

This file should have a few lines in it as well. Here's where we add the information that is going to tell the dongle how to connect to the router. Copy the following text into your wpa_supplicant.conf file after the last existing lines. Be sure to replace your ssid and password as well as the other settings the apply to your router



network={ ssid="YOURSSID" psk="YOURPASSWORD" # Protocol type can be: RSN (for WP2) and WPA (for WPA1) proto=WPA # Key management type can be: WPA-PSK or WPA-EAP (Pre-Shared or Enterprise) key_mgmt=WPA-PSK # Pairwise can be CCMP or TKIP (for WPA2 or WPA1) pairwise=TKIP #Authorization option should be OPEN for both WPA1/WPA2 (in less commonly used are SHARED and LEAP) auth_alg=OPEN }

Save your file with [ctrl] + [x], [y], [enter]

Before shutting down and moving on, type

sudo ifconfig

and find the ip address of your pi. We'll be using this in the next step.

Now type

sudo shutdown now

You're Ready for the next step.