Monday, May 18, 2009

Install and Configure D-Link Wireless USB Adapter

Step 1: Download archive Manager ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux- wlan-ng-0.2.3.tar.gz
to /usr/src/linux-wlan-ng-0.2.3.

Step 2: unpack them run ./configure

Step 3: In the source dir, type `make config` and answer the
following:

------------- Linux WLAN Configuration Script -------------
The default responses are correct for most users.
Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [n]: n
Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [n]: n
Build Prism2.5 native PCI (_pci) driver? (y/n) [n]: n
Build Prism2.5 USB (_usb) driver? (y/n) [y]: y
Linux source directory [/usr/src/linux]:
The kernel source tree is version 2.4.18.
The current kernel build date is Sun Mar 17 04:51:47 2002.
Alternate target install root directory on host []:
Module install directory [/lib/modules/2.4.18]:
It looks like you have a BSD-ish init file setup.
You'll need to edit /etc/rc.d/rc.S to invoke /etc/rc.d/rc.wlan
(for ISA/PCMCIA cards) so that wlan cards will be started at boot
time.

Target Architecture? (i386, ppc, arm, or alpha) [i386]:
Prefix for build host compiler? (rarely needed) []:
Compiling with a cross compiler? (y/n) [n]:
Build for debugging (see doc/config.debug) (y/n) [n]:


***********Configuration successful.

Step 4: Type: `make all`
Step 5: Type: `make install
Step 6: # vi wlan.conf
SSID_wlan0="your_ssid"

Step 7: # cp wlancfg-DEFAULT wlancfg-your_ssid
Step 8: # vi wlancfg-your_ssid

lnxreq_hostWEPEncrypt=true
lnxreq_hostWEPDecrypt=true
dot11PrivacyInvoked=true
dot11WEPDefaultKeyID=0
dot11ExcludeUnencrypted=true
dot11WEPDefaultKey0=12:34:56:78:90
AuthType="sharedkey"

Step 9: # vi /etc/modprobe.conf
alias wlan0 prism2_usb

Step 10: # vi /etc/sysconfig/network-scripts/ifcfg-wlan0

DEVICE=wlan0
ONBOOT=yes
BOOTPROTO=dhcp
TYPE=wireless
Step 11: # modprobe prism2_usb prism2_doreset=1

Step 12: # Add the following to: /etc/hotplug/usb/prism2_usermap

Prism2 0x0003, vendor Id, device Id
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00


***********The LINK light will come.

Step 13: # lsmod

Module Size Used by
prism2_usb 72836 0
p80211 29840 2 prism2_usb

Step 14: # ifup wlan0
Step 15: # ifconfig wlan0

wlan0 Link encap:Ethernet HWaddr 00:0D:88:67:8D:42
inet addr:192.168.0.196 Bcast:192.168.0.255
Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:694 errors:0 dropped:0 overruns:0 frame:0
TX packets:757 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:240526 (234.8 KiB) TX bytes:100360 (98.0 KiB)

No comments: