Day 2 Setting up wireless for the first time

Yes don’t tell me, I know I’ve written this on the same day as Day 1 post. Just playing catch up with what I’ve done so far.

Wireless. setting up etc etc.

This time things were a little easier. I’m using a EDIMAX nano wireless USB adapter EW-7811Un

And for all that want to follow what i did:

First off make sure that SSH is turned on. if you don’t know how to do this then go back to the config page that you will have got when first turning the Pi on. To do this from a command line type ‘sudo raspi-config’ select the ssh option and turn it on, select finish and your Pi will reboot.

Imageyou will need this later if you intend to do what I’m doing and turn it into a headless server, (no monitor connected).

plug in the wireless adaptor and restart you pi again.

log in as admin, the Pi account will be ok then type ‘lsusb’. You should see the wireless adaptor listed as here:

Image

next you need to alter the config files found in the /etc folder using nano:

/etc/network/interfaces
/etc/wpa_supplicant/wpa_supplicant.conf

copy what’s here into the interfaces file:

auto lo
auto wlan0

iface eth0 inet dhcp
allow-hotplug wlan0
iface wlano inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet dhcp

and the supplicant.conf file:

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

network={
ssid=”<YOUR SSID GOES HERE>”
psk=”WIFI PASSWORD GOES HERE”
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
auth_alg=OPEN
}

Remember to alter the above for your ssid and passcode, once saved reboot and that’s it, all should be well and your Pi will be connecting to your wireless network on next reboot. Using a DHCP assigned ip address

Leave a comment