LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 08-30-2004, 05:22 PM   #1
jmielens
LQ Newbie
 
Registered: Aug 2004
Posts: 17

Rep: Reputation: 0
Can't find ndiswrapper


I'm running a new install of Mandrake 10, and I'm having a little trouble getting ndiswrapper to run. Running modprobe ndiswrapper finishes with no error, but then ndiswrapper -l returns
bash: ndiswrapper: command not found.
Before I found out that mandrake is supposed to have it already, i had tried installing myself, but got this message when running make INSTALL:
make: Nothing to be done for `INSTALL'.
I then tried an rpm from rpmfind.net, which said that everything was already installed.
I guess my direct questions are:
1) How can i see for sure if it's installed correctly?
2) If not, why do I get that error when running make INSTALL, and why won't the rpm install?
3) Failing all that, how could I uninstall it, so as to be able to reinstall?
 
Old 08-30-2004, 05:48 PM   #2
kersten78
Member
 
Registered: Nov 2003
Location: Minneapolis, MN
Distribution: Slackware, Debian, Gentoo, openSuSE
Posts: 358

Rep: Reputation: 33
Did you type make INSTALL with all caps for INSTALL? If so, it is case sensitive and you should type "make install" all lower case. Before you do that, you should remove the old .4 version of ndiswrapper that comes with mandrake 10 buy using the command "urpme ndiswrapper" If you already have the source, I wouldn't worry about doing the RPM install. I compiled from source and it works....well almost....see this thread for all my wireless problems other than ndiswrapper: http://www.linuxquestions.org/questi...hreadid=223288
Anyway, if you just follow the directions in the INSTALL file that came with ndiswrapper, you should be fine. As far as uninstalling, you shouldn't have to worry about it. If you use the RPM, you can just do the urpme ndiswrapper like above, but if you compile from source, the uninstall is a bit more involved. You have to rmmod ndiswrapper, remove the files in etc/ndiswrapper (i believe that's where the files are)...and there may be a few more files to change to get rid of it completely...I can't remember off the top of my head.
Directly:
1)if you can't run ndiswrapper -l, it isn't installed correctly
2) the error is because of typing make INSTALL in all CAPS
3) if you do the make install correctly, it will write over the previous stuff (as long as it is the same version)...so don't worry about uninstalling.
Hope this helps,
Kris

Last edited by kersten78; 08-30-2004 at 05:49 PM.
 
Old 08-30-2004, 08:15 PM   #3
jmielens
LQ Newbie
 
Registered: Aug 2004
Posts: 17

Original Poster
Rep: Reputation: 0
All better

Thanks a bunch. That got it up. I also had to install the wireless tools, and I still need to get it to come up on restart, but that's just a simple scripting issue.
 
Old 08-30-2004, 09:01 PM   #4
kersten78
Member
 
Registered: Nov 2003
Location: Minneapolis, MN
Distribution: Slackware, Debian, Gentoo, openSuSE
Posts: 358

Rep: Reputation: 33
Yeah...that's what my problem is too... getting it to come up on boot. I may have to write a script. It just seems stupid that I have to do a rmmod and then modprobe again to get it to work correctly. And then reset the iwconfig settings. But for some reason, even though the card shows that it is connected, I still can't access the internet through Mandrake. If you have any luck, let me know.
-Kris
 
Old 08-30-2004, 09:50 PM   #5
jmielens
LQ Newbie
 
Registered: Aug 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Startup

Well, this marks a first for me, actually helping someone else... or at least trying to. My thinking was that if I was able to run a series of commands to get it up, ie,
modprobe ndiswrapper
iwconfig wlan0 essid "AO103"
iwconfig wlan0 key XXXXXXX

and so on, why not just simply make a script that would do that on startup?

Here's the contents of my script, you'd need to fill in your details.

#!/bin/sh
echo "Loading ndiswrapper Module...."
modprobe ndiswrapper
echo "Setting SSID to YYYY...."
iwconfig wlan0 essid "YYYY"
echo "Setting Channel 6...."
iwconfig wlan0 channel 6
echo "Setting WEP Key...."
iwconfig wlan0 key XXXXXXXXXXXXXXXXXXXXXX
echo "Initializing wlan0 interface...."
ifup wlan0

I assume my solution isn't perfect, and will soon be pounced upon by someone who knows more than me, but it does work for me.
 
Old 08-30-2004, 11:02 PM   #6
kersten78
Member
 
Registered: Nov 2003
Location: Minneapolis, MN
Distribution: Slackware, Debian, Gentoo, openSuSE
Posts: 358

Rep: Reputation: 33
Haha...funny. That's exactly what I was planning to do... but I haven't written a script yet because sometimes it works just with the modprobe, and sometimes it resets the key or authentication mode, etc. so I have to go through all the iwconfig stuff. Who knows why... The problem I've been having is getting Mandrake to recognize the connection. My card shows that it's connected to my lan, but I still can't get online.
Whoah.... hold on. I was using ifconfig wlan0 up instead of ifup wlan0. Weird. Does anyone know what the difference is?
When I try ifup wlan0 it says "Determining IP information for wlan0... failed; no link present. Check cable?"
ARGH what the heck am I doing wrong here?
 
Old 08-30-2004, 11:56 PM   #7
jmielens
LQ Newbie
 
Registered: Aug 2004
Posts: 17

Original Poster
Rep: Reputation: 0
Settings in effect

All that I can think to check is if the wireless settings are indeed in effect. When you run iwconfig, it does show up with the information you've given, yes?
 
Old 08-31-2004, 12:24 AM   #8
kersten78
Member
 
Registered: Nov 2003
Location: Minneapolis, MN
Distribution: Slackware, Debian, Gentoo, openSuSE
Posts: 358

Rep: Reputation: 33
Yeah...when I run iwconfig, everything shows up. But I can't set the channel, rts, threshold, frag...I get a device not present error. The only thing I can think of is that ndiswrapper -l gives me a WARNING: cannot find lspci, and it doesn't say that the device is present (probably because it's pcmcia rather than pci). However, the card shows that it's active when the ndis module finally loads, and once the iwconfig settings are correct (at least the things it will let me change), the card shows that it's connected. Completely stumped. I'm almost ready to put Windows back on this thing because I need it to work for school. Bull$hit, I tell ya. I've never wanted to destroy a computer so bad. I've probably watsted 15 hours formatting and reinstalling different distros to try to get something to work... It's the same problem no matter what I do. Maybe it's the DLink card. Who knows.
-Kris
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to find ndiswrapper interface willplatts Linux - Wireless Networking 1 11-27-2005 11:37 AM
ndiswrapper can't find my kernel... where is it? Adrian Baker Mandriva 20 07-22-2005 04:13 PM
Where to find Kernel Source to install ndiswrapper ProoN Linux - Wireless Networking 5 07-09-2005 11:33 PM
ndiswrapper: error: wlan0 can't find configuration nulinuxusr Linux - Wireless Networking 3 08-21-2004 08:05 AM
MDK 10 how to find ndiswrapper module? jmw007 Mandriva 0 05-13-2004 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration