Connecting Raspberry Pi to wireless network?

How do I connect my Raspberry Pi B to my wireless network?

  • 3
    Please search this site before asking questions. YOur question has been covered many times and has allot of valuable questions. Please read the FAQ too.
    – Piotr Kula
    Commented Nov 1, 2012 at 10:09
  • 1
    List of Wireless questions
    – Piotr Kula
    Commented Nov 1, 2012 at 10:09
  • So is there an exact duplicate that this could be closed against?
    – XTL
    Commented Nov 2, 2012 at 7:50
  • Guys, please stop flagging this for mods. If you can see a duplicate then vote to close. This does not need moderator intervention.
    – Jivings
    Commented Nov 2, 2012 at 14:52
  • I wish... "Vote to Close" requires 500 reputation (3000 out of private beta)
    – Andrew
    Commented Nov 9, 2012 at 7:10

2 Answers 2


I'm running Raspbmc on my Pi and I use this USB WiFi adapter available from Adafruit.

enter image description here

I had to make the changes shown in this answer to get this interface to come up automatically after a reboot. The driver for this adapter was already in the Raspbmc kernel. It is my understanding that this driver is also in Raspbian Wheezy.

Here's a link to known working USB WiFi adapters for the Raspberry Pi.


I am running Raspbian on my Pi, and I use an 'RTL8192cu' based USB WiFi adapter.

Configuration was easy:

Step 1 - sudo nano /etc/network/interfaces:

(modified for your wireless network settings, of course)

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
   wpa-scan-ssid 1
   wpa-ap-scan 1
   wpa-key-mgmt WPA-PSK
   wpa-proto RSN WPA
   wpa-pairwise CCMP TKIP
   wpa-group CCMP TKIP
   wpa-ssid "MYNETWORKNAME"
iface default inet dhcp

Step 2 - sudo reboot

When the Pi comes up it should automatically connect to your wireless network.

If it does not, you can check and see if there is an existing discussion for your specific hardware, software, etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.