Hey Mike. I had a similar problem with a USB wireless device made by netgear (I have my laptop running Debian). ndiswrappers is kind of a pain in the neck, but once you figure it out, it becomes quite easy to use. (It took me about 5 hours of painful work on the netgear drivers until finally it gave up and let me make it work. Hopefully this guide will spare you the hardship)
You already have the utils, so the next thing you need to do is apt-get install the ndiswrapper module for your kernel. Once you have it, go to module-assistant (a very easy to use module manager, if you don’t have it – apt-get install module-assistant). Then go to the select menu in module-assistant. Look for the ndiswrapper module in the list and select it. From there, you might have to get the source for the ndiswrapper module (module-assistant is pretty intuitive). Build then Install.
To get the files you want out of the exe you have to use cabextract. The command looks basically like this: cabextract [filename.exe]
Note: The cabextract will extract the filename.exe’s contents into the folder the filename.exe is currently in (it will not make a new folder.)
Once you have the exe unpacked you will want to sort through and find the .inf file. Now you will use ndiswrapper and type a command that looks like: ndiswrapper -i filename2.inf
Note, make sure that at this point in the /etc/ndiswrapper/drivername/ there is a .inf file and a .sys file. If the files aren’t present, simply search through the unpacked exe until you find them and move them over into the /etc/ndiswrapper/drivername/ folder.
Step 4. Now for the fun part. If the card is pci, lspci and find the address of the card. If it is usb, lsusb. Take the device address (which is what appears first on everyline of lspci per device) and then type the command: ndiswrapper -d [devid] drivername.
Note, “where ‘devid’ is either PCIID or USBID of the form XXXX:XXXX” --from the -h of ndiswrapper
SubNote: to get a list of installed drivers and their names, type ndiswrapper -l.
SubNote2: There should now be a .conf file in /etc/ndiswrapper/drivername
Step 5. The easy part
Type ndiswrapper -m, hit return
If you want to update the the hotplug information, say ndiswrapper -h and hit return.
Step 6. Making modprobe happy
You might have to edit the /etc/modprobe.d/ndiswrapper file to alias ndiswrapper to wlan0.
This is quite simple, my file looks like this:
alias wlan0 ndiswrapper
Step 7. Interfaces file
Debian makes network interfaces incredibly easy (I like this feature a lot). In the /etc/network/interfaces file add the lines (the comment just makes the file nicer to read):
iface wlan0 inet dhcp
Step 8. Testing
To test, first modprobe ndiswrapper with the card hooked up appropriatley.
Assuming this works, you should now be able to use your wireless card. To find access points near you type “iwlist scanning”.
To connect the command is iwconfig wlan0 essid [ssid]
then type ifup wlan0
Make sure that all other connections are ifdown, otherwise the direction of packets might get confusing for the computer.
Now, try pinging fbi.gov. Hopefully it works!
To remove the card “safely” type modprobe -r ndiswrapper and then remove the card. I have not been able to get hotplug working, so I have been stuck modprobing and modprobe -r ing.
I wrote a nice script that does all of the connecting for you if you want it (add it to your /bin and call it “iwconnect”. chmod 777 it so you can execute it.):
#This is a script written by Andrew Hospodor ([email protected]). To use, modify, or replicate, this line must be kept intact.
#Name of Script: iwconnect
#Permissions: user needs sudo to run
modprobe -r ndiswrapper
echo “Here is a list of essids:”
iwlist wlan0 scanning | grep ESSID
echo “What is the essid?”
iwconfig wlan0 essid $myEssid
If you have any questions, don’t be shy, please post them.
Have a nice day and Happy New Year!
Note, this guide was written by Andrew Hospodor and has no restrictions on distribution.
ndiswrapper could possibly be a copyright, I’m not sure if it is. However, their website can be found at ndiswrapper.sourceforge.net and their wiki can be found at: http://ndiswrapper.sourceforge.net/mediawiki/index.php/Main_Page
Debian’s page can be found at www.debian.org