Quantcast
Channel: Elevendroids' Blog » Raspberry Pi
Viewing all articles
Browse latest Browse all 6

Raspberry Pi WiFi configuration

$
0
0

Here’s a short tutorial on how to quickly setup WiFi on your RasPi.
I’m using Atheros based TP-LINK TL-WN721N USB adapter – good and cheap.

You can skip firmware-related steps if your card doesn’t need it (like Realtek-based TL-WN725N).

  1. Download firmware from: http://linuxwireless.org/download/htc_fw/1.3/htc_9271.fw
  2. Copy firmware file to /lib/firmware
  3. Install wireless-tools and wpasupplicant
  4. Create /etc/wpa_supplicant.conf file:
    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=0
    
    # WPA2-PSK network
    network={
      ssid="network_name"
      scan_ssid=1
      proto=WPA2
      key_mgmt=WPA-PSK
      pairwise=CCMP TKIP
      group=CCMP TKIP
      psk=encrypted_key # generate using wpa_passphrase
    }
    
    # Simple WEP protected network
    network={
      ssid="network_name"
      key_mgmt=NONE
      wep_key0=your_wep_key
      wep_tx_keyidx=0
      priority=5
    }
    
  5. Edit /etc/network/interfaces and add:
    auto wlan0
    iface wlan0 inet dhcp
    pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf -B
    
  6. Restart networking or reboot:
    # service networking restart
    

FacebookTwitterGoogle+LinkedInRedditShare

Flattr this!


Viewing all articles
Browse latest Browse all 6

Trending Articles