Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: DWL 122 Help< Next Oldest | Next Newest >
cjnodell Offline





Group: Members
Posts: 9
Joined: Aug. 2005
Posted: Aug. 02 2005,11:53 QUOTE

I have a d-link DWL-122 USB wireless networking adapter. It has a prism 2 chipset and the company recommends using linux-wlan-ng drivers with linux. I will be using DSL 1.4

I have read that DSL comes with these drivers. How can i get the adapter to work?

What commands to i need to type, or what tools do i need to use?

I am new to linux, so a step-by-step guide would be nice.

Thanks!
Back to top
Profile PM 
tempestuous Offline





Group: Members
Posts: 259
Joined: Aug. 2004
Posted: Aug. 03 2005,02:01 QUOTE

Firstly, thanks for doing your research about chipset and driver before posting a question.
It would sure be helpful if everyone did this.

Plug your USB adaptor in.  Wait a few seconds for hotplug to autodetect it ... you can check "lsmod" if you like - "prism2_usb" should now be listed.
Now launch DSLpanel from its desktop icon, then Prism2.  Enter your wireless network's SSID and WEP key, then press OK.  With the WEP key, you must place a colon between every two characters.  Run ifconfig and ping your router to check that all is well.

If you want to see what magic is going on behind the gui, have a look at /usr/local/bin/prism2.sh in a text editor.  You can modify this script if, for example, you prefer to use a static IP address.
Back to top
Profile PM 
cjnodell Offline





Group: Members
Posts: 9
Joined: Aug. 2005
Posted: Aug. 03 2005,09:05 QUOTE

Thanks, everzthing works great. I took a look at the prism2.sh, but was not able to extract what commands where used to get my wireless up and running. Here is the script>

#!/bin/sh
#
# Wireless Card config for prism2 chipset for DSL 0.8.x
# Pasted together from various googled sources and forums
# Reworked for Damn Small Linux

if [ -z "$(lsmod | grep prism)" ] ; then
  modprobe prism2_cs
fi

wlanctl-ng "$1" lnxreq_ifstate ifstate=enable
if [ -n $2 ]; then
  wlanctl-ng "$1" lnxreq_wlansniff enable=false channel "$2"
  wlanctl-ng "$1" p2req_channel_info_results channel "$2"
fi
if [ -n "$4" ]; then
  wlanctl-ng "$1" lnxreq_hostwep decrypt=true encrypt=true
  wlanctl-ng "$1" dot11req_mibset mibattribute=dot11WEPDefaultKeyID=0
  wlanctl-ng "$1" dot11req_mibset mibattribute=dot11ExcludeUnencrypted=true
  wlanctl-ng "$1" dot11req_mibset mibattribute=dot11PrivacyInvoked=true
  wlanctl-ng "$1" dot11req_mibset mibattribute=dot11WEPDefaultKey0="$4"
fi
wlanctl-ng "$1" lnxreq_autojoin ssid="$3" authtype=opensystem
pump -i "$1"
kill `pidof wmnet`
wmnet -w -W "$1" &

There are a lot of if/than statements, so how would i know exactly what commands the script choose to run? In addition, there where a lot of variables. Some of them i can figure out.  $1 is probablz wlan0, $3 is my ssid but thats all i can figure out. I wouldlike to have a list of commands i can tzpe in to make the wirelss adapter wour, without using the graphical tool that comes with DSL
Back to top
Profile PM 
tempestuous Offline





Group: Members
Posts: 259
Joined: Aug. 2004
Posted: Aug. 03 2005,10:18 QUOTE

prism2.sh gets its input values from the flua script /usr/local/bin/prism2_setup -
$1 device (default wlan0)
$2 channel (default 11)
$3 SSID
$4 WEP

To run a similar script without the flua interface, just delete all the "if" and "fi" lines.  And obviously "modprobe prism2_cs" must be changed to "modprobe prism2_usb" for your adaptor, or even delete it if your system automatically loads this module.
Back to top
Profile PM 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: Aug. 03 2005,12:01 QUOTE

Once you have setup the device thru the prism2 gui in DSLPanel,
a file called myprism2.sh is created. It is found in /opt ..

Adding the line opt/myprism2.sh to your /home/dsl/.filetool.lst file
will ensure the file is added to your backup, and available every reboot.

Adding the line /opt/myprism2.sh to your /opt/bootlocal.sh file
will run your prism2 config automatically, every reboot.

/opt/bootlocal.sh should already be a part of your .filetool.lst file,
and included in your backup.

As long as the device is plugged in at boottime, you should have
inet access as soon as your backup is restored, right before
you hit the desktop.

73
ke4nt
Back to top
Profile PM 
9 replies since Aug. 02 2005,11:53 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: DWL 122 Help

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code