Wi-fi on Raspberry Pi, a simple guide

http://www.raspyfi.com/wi-fi-on-raspberry-pi-a-simple-guide/

Wi-fi on Raspberry Pi, a simple guide

Veröffentlicht am 19 March 2013 von admin — 10 Kommentare ↓

Since the Raspberry Pi comes only with a wired network, it could be useful for lot of us to get it wi-fi ready. Wi-fi on Raspberry Pi can be achieved with little effort and at cheap expences.
We do only require a compatible wi-fi dongle, and the best candidate for the job is the Edimax EW-7811Un.
These are the features:

  • Supports 150 Mbps 802.11n, so if you have a N network, you’ll have enough bandwith to stream even Hi-res FLACs
  • Low power consumption, it can work directly attached to the Pi withouth a powered usb hub
  • Works automatically with Raspbian, since it’s drivers are included
  • It’s very small, so there’s plenty of space left on the Pi to attach your USB DAC or USB Dongle
  • It’s quite cheap, you can find easily at prices above 10 euros (see later)

You can buy it on Ebayhere

or here on Amazon .

Now we’ll start the setup of the WI-Fi on Raspberry Pi. RaspyFi comes with Wicd-curses already installed and running, this a user friendly gui  wi-fi setup utility. With Wicd-curses the setup of Wi-Fi on Raspberry Pi is simple and straightforwarding. You should access the Pi’s shell, this can be done in 2 ways:

  • Get a monitor and a keyboard attached to the Pi
  • Connect trought SSH, the Pi has to be connected to a wired network to do this. Refer tothis guide to do this.

 

If you’re using Raspbian, and you’ve not installed Wicd-curses just type:
sudo apt-get update
sudo apt-get install wicd-curses
Ok, now we are ready to start, type:
sudo wicd-curses
You’ll get a list of the wireless network found by the Raspberry PI

raspberry wi-fi

 

 

Now, you can select your Wi-fi Network, just highlight it with arrow keys and press right arrow key to edit its properties:

raspberry wi-fi1

 

Sorry for Italian language, (not being nationalist!!) but you should be able to guess what these lines mean. You just insert the WEP or WPA KEY. If you wish, you can assing a static ip, configure alternative dns and so on. Remember to check the auto connection.

If you wish to have static ip, just put the ip you desire (e.g. 192.168.1.3), the subnet mask (255.255.255.0) and your router’s ip (e.g.: 192.168.1.1). Please note that the Ip of the Raspberry Pi and the gateway ip should have the same index, so if your router has 192.168.1.ip then also the raspberry pi should have the same, the only thing that will change is the last ip digits (192.168.1.ip).

 

When you’re done, just press F10 to save, then it should connect!

 

Now you’ve Wi-Fi on Raspberry Pi! Feel confident to try other wi-fi dongles other than the one suggested here. You can check the Raspberry Pi compatiblity list.

The Main WICD-CURSES windows, will also tell you the ip of your Raspberry Pi, so you can be able to connect to it via GMPC or your preferred mpd client.

 

UPDATE

Since I got some reports of Wi-Fi dongle not being recognized, this is how you can sort it out:

Enter in wicd-curses,
sudo wicd-curses
then press P (that stands for preferences). You’ll find that there’s a field called wireless interface, which is empty. Just write wlan0
in it. Then F10 to save. 

Then, back to the main screen, hit R to refresh, et voilà!!!
Thanks to Andrea Zani from tforum for the hint!