Leon Anavi
IT Tips && Tricks

Mobile & Embedded

Created: 24.12.2012 01:43 Last Modified: 30.03.2015 02:39 Views: 38065
Keywords: Raspberry Pi 2, Raspbian, adapter, apt-get, ifconfig, ifup, interfaces, network, Raspberry Pi, USB, USB WiFi Adapter, WiFi, WiFi USB Dongle, wireless-tools, wlan, wpa2, wpasupplicant

How to Install USB WiFi Adapter to Raspberry Pi & Raspberry Pi 2

Introduction

Raspberry Pi does not have a WiFi adapter on board. It can be connected to a network using Ethernet LAN cable or with a USB WiFi Adapter. This article demonstrates how to connect Tenda W311+ USB WiFi adapter to a Raspberry Pi with Raspbian OS. A full list of compatible USB WiFi adapters for Raspberry Pi is available at elinux.org.

Requirements

  • Raspberry Pi
  • WiFi USB Adapter
  • Keyboard
  • Monitor
  • HDMI Cable
  • SD Card with Raspbian (Debian 6)
  • Micro USB Power Supply
  • Installation

    1. Insert the SD card; connect the monitor, the keyboard and the WiFi USB adapter
    2. Plug in the power supply and wait until Raspberry Pi boots
    3. Install required software packages using apt-get
    4. apt-get install wireless-tools
      apt-get install wpasupplicant
      
    5. Verify that the USB WiFi adapter is detected
    6. Open file /etc/network/interfaces with text editor such as vim and configure WPA2
    7. auto wlan0
      iface wlan0 inet dhcp
              wpa-ssid [YOUR-SSID]
              wpa-psk [YOUR-PASSWORD]
      
    8. Bring up the WiFi connection and verify it
    9. ifup wlan0
      ifconfig wlan0
      
    10. If Internet connection is available ping a web site to verify it

    External Links

    RPi VerifiedPeripherals
    Debian: How to use a WiFi interface


      Home | About | Contact | Disclaimer | Sitemap © 2009-2022 Leon Anavi. All rights reserved.