Setting up WiFi – Debian Wheezy

I used “2012_06_10_spindle_wheezy_public_alpha.img”.

First you should edit /etc/apt/sources.list:

sudo nano /etc/apt/sources.list

Change it to:

deb wheezy main non-free

Update the local package index:

sudo apt-get update

Now, install some extra tools:

sudo apt-get install usbutils
sudo apt-get install wireless-tools
sudo apt-get install wpasupplicant

Plug your USB WiFi adapter

Figure out which chipset you have:

Bus 001 Device 004: ID 0ace:1215 ZyDAS ZD1211B 802.11g

In this example the chipset is “ZD1211B”

Check if there is any firmware available:

sudo apt-cache search zd1211

zd1211-firmware - Firmware images for the zd1211rw wireless driver

Found the package “zd1211-firmware”, let’s install that:

sudo apt-get install zd1211-firmware

Unplug the adapter, plug it back in again and run lsmod.

You should see mention of the firmware, in our case “zd1211”:

Module   Size   Used by
arc      4764   2
zd1211rw 40444  0
mac80211 171628 1 zd1211rw
cfg80211 123084 2 zd1211rw,mac80211
fuse     49036  1

With the command dmesg you can see if the firmware is loaded correctly.

To see which networks are available, run:

iwlist wlan0 scan

Create a configuration file for the WPA/WiFi settings:

sudo nano /etc/wpa.conf


ssid="YOUR SSID"
pairwise=CCMP TKIP

And reference this in /etc/network/interfaces:

sudo nano /etc/network/interfaces

Sample content:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa.conf

And the final stap, restart your networking subsystem :

sudo /etc/init.d/networking restart

, , ,

You must be logged in to post a comment.

This entry was posted on June 17, 2012 and is filed under Linux, Raspberry Pi. Written by: . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.