SDB:AVM Fritz! WLAN Stick USB

From openSUSE

This article explains how to install the Fritz!WLAN Stick by AVM with ndiswrapper and wpa_supplicant.

Contents

Requirements

First of all you should check, whether you’ve installed the following packages:

  • kernel-source
  • linux-kernel-headers
  • wpa_supplicant
  • GNU gcc compiler (gcc)

Downloading packages/Prepare installing

Now you must download ndiswrapper (here: version 1.34). Click. Besides, we need the installation CD of the WLAN Stick. Just copy all files and folders to /home/<your_name>/Desktop/fritz (e.g. with Konqueror or Nautilus).

Compile ndiswrapper

Now unpack the archive ndiswrapper-1.34.tar.gz with Right-Click->Unpack->Here. Open a console (K-Menu->System->Terminals->Console) and login as root. Then change into the unpacked ndiswrapper directory with

cd /path/to/ndiswrapper-1.34

If you downloaded the archive with Firefox the directory usually is:

/home/<your_name>/Desktop/ndiswrapper-1.34

Now enter

make && make install

(Don't close the console)

Install WLAN driver

Enter

ndiswrapper -i /home/<your_name>/Desktop/fritz/fwlan.inf

into the console. If you enter

ndiswrapper -l

you should see something like this:

fwlan   driver present, hardware present

Then you can use the network interface wlan0.

Cleaning

You can delete the directories fritz and ndiswrapper-1.34.

Configurating WLAN

First of all you open a console and login as root. Now enter

KDE:

kate /etc/wpa_supplicant.conf

GNOME:

gedit /etc/wpa_supplicant.conf

An editor should start now. Paste the following text into the first line:

ctrl_interface=/var/run/wpa_supplicant

Depending on your encryption type you must enter following information:

WEP

network={
       ssid="networkname"
       scan_ssid=1
       key_mgmt=NONE
       wep_tx_keyidx=0
       wep_key="encryptionkey"
}

Please replace "networkname" by the SSID of your Access point/Router. "encryptionkey" must be replaced by your network encryption key.

WPA

network={
       ssid="networkname"
       scan_ssid=1
       proto=WPA
       key_mgmt=WPA-PSK
       pairwise=TKIP
       group=TKIP
       psk="mypsk"
}

You must also replace "networkname" by the SSID of your Access point/Router. "mypsk" must be replaced by the pre-shared-key. How you find out the pre-shared-key is explained beneath.

WPA2

network={
       ssid="networkname"
       scan_ssid=1
       proto=RSN
       key_mgmt=WPA-PSK
       pairwise=CCMP
       group=TKIP CCMP
       psk="mypsk"
}

You must also replace "networkname" by the SSID of your Access point/Router. "mypsk" must be replaced by the pre-shared-key. How you find out the pre-shared-key is explained beneath.

Save the file right now!

Finding out the pre-shared-key

To find out the pre-shared-key you can use the tool wpa_passwhrase with is included in the wpa_supplicant package.

wpa_passphrase <your_ssid> <wpa_password>

Example: If your Access point is a Fritz!Box named "fritzbox" and your WPA/WPA2 password is "peterpan" you must enter:

wpa_passphrase fritzbox peterpan

. This should display:

network={
       ssid="fritzbox"
       #psk="peterpan"
       psk=e11439c033f15b374de5a39f2be24ba37d1d6b31da110c99c0c787323318f0c4
}

So the pre-shared-key is:

e11439c033f15b374de5a39f2be24ba37d1d6b31da110c99c0c787323318f0c4

Starting WLAN

To connect to the Access point/Router you must enter following commands in a console after logged in as root.

ifconfig wlan0 up
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B
dhcpcd wlan0

(the last command takes a long time)

INFORMATION: These commands you must enter on every system startup.