LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2004, 10:20 AM   #1
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Rep: Reputation: 15
Need help with ndiswrapper installation


Hi, I've finally got to the stage of installing ndiswrapper...

Anyway, i'm stuck as follows:
I've used apt-get to d/l the source package from the sourceforge site.
i've un-tar the package.

The next step to do is the command
Code:
e11mobile:/usr/src/modules/ndiswrapper# debian/rules binary-modules KSRC=/lib/modules/2.6.8-1-686/build
it returns me some stuff with an error at the end:
Code:
sed -e 's/#KVERS#/2.6.8-1-686/g' \
-e 's/#NDISVERS#/0.11/g' \
-e 's/#DATE#/'"`date --rfc-822`"'/g' \
        -e 's/#MAINT#/Giridhar Pemmasani <pgiri@users.sourceforge.net>/g' \
        debian/changelog.template > debian/changelog
sed -e 's/#KVERS#/2.6.8-1-686/' \
-e 's/#NDISVERS#/0.11/' \
debian/control.modules > debian/control
sed -e 's/#KVERS#/2.6.8-1-686/' debian/postinst.modules > debian/postinst
if [ 6 == 4 ];then \
        module=ndiswrapper.o; \
else \
        module=ndiswrapper.ko; \
fi; \
echo "driver/$module /lib/modules/2.6.8-1-686/misc" \
        > debian/ndiswrapper-modules.install
dh_testdir
make: dh_testdir: Command not found
make: *** [common-prolog] Error 127
wow...

eh... what's the error? seems like i'm short of a command... maybe i need some package? Please advise. Thanks!


Regards,

Edwin
 
Old 10-26-2004, 04:59 AM   #2
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Anyone able to help?


Thanks and Regards,

Edwin
 
Old 10-26-2004, 10:59 AM   #3
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
You can just install it from source unless you want to do it the debian way completely.

tar zxvf /path/to/file
cd ndiswrapper-xx
make install

Then you can install the drivers with the ndiswrapper options.
 
Old 10-26-2004, 11:15 AM   #4
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
hi darkleaf, thanks!

i've managed to solve the original problem... was lacking the package dh-make, so installed the package and proceeded to make install it as well.

btw, i d/led the wireless card driver, but it comes in an EXE file. what can i do with it? i suppose its an executable-zip? if so, how can i extract it?

Thanks!


Regards,

Edwin
 
Old 10-26-2004, 12:57 PM   #5
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I read somewhere that if it's an executable zip you can use unzip on it to extract it.
Code:
unzip file
I'm not completely sure it'll work. Otherwise I think you need to do it in windows.
 
Old 10-31-2004, 01:16 AM   #6
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
I've hit another snag with ndiswrapper...

I've done the following successfully:
Code:
# apt-get install ndiswrapper ndiswrapper-source
# tar -xvzf ndiswrapper-source.tar.gz
# debian/rules binary-modules KSRC=/lib/modules/`uname -r`/build
# dpkg -i ndiswrapper-modules-*.deb
# ndiswrapper -i lsbcmnds.inf
But when I do:
Code:
# modprobe ndiswrapper
I got:
Code:
FATAL: Module ndiswrapper not found.
Did i miss out any step?


Thanks and Regards,

Edwin
 
Old 10-31-2004, 02:26 AM   #7
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
ok, i've solved the problem...

Seems like i had to use modconf to manually add the ndiswrapper module instead of using modprobe ndiswrapper.

Question: When do I use modconf, and when do I use modprobe?


Also, because of my wireless network's security settings (broadcast disabled, WEP), whenever i bootup, i have to issue the command:

iwconfig essid NETWORKNAME channel N rate 54M key restricted WEPKEY
then restart the network...

Question: Is it possible to do this automatically, maybe by adding those entries in /etc/network/interfaces or some other file?


Thanks and Regards,

Edwin
 
Old 10-31-2004, 04:47 AM   #8
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I think the difference between modconf and modprobe is in kernel version but I'm not sure. Are you using a 2.4 kernel?

I can only help you with setting the essid automatically but the WEP key is similar and in the same file I just don't know what the line is. You need to edit your /etc/network/interfaces file, this is my wireless part:

Quote:
auto wlan0
iface wlan0 inet dhcp
wireless-essid ****
I think man ifup or man ifdown can give you some useful info. Or perhaps wireless-tools man page.
 
Old 10-31-2004, 08:36 AM   #9
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Hi,

Quote:
Originally posted by darkleaf
I think the difference between modconf and modprobe is in kernel version but I'm not sure. Are you using a 2.4 kernel?
I'm using a 2.6.8 kernel.

Quote:
Originally posted by darkleaf
I can only help you with setting the essid automatically but the WEP key is similar and in the same file I just don't know what the line is. You need to edit your /etc/network/interfaces file, this is my wireless part:


I think man ifup or man ifdown can give you some useful info. Or perhaps wireless-tools man page.
Yup, went through the README.Debian in /usr/share/doc/wireless-tools, the key-value pairs for interfaces is just the same as for iwconfig... for those interested to know, that means my interfaces file looks like:

Code:
auto wlan0
iface wlan0 inet dhcp
wireless-essid *NAME*
wireless-channel *N*
wireless-rate 54M
wireless-key restricted *KEY*
Thanks darkleaf!!


Regards,

Edwin
 
  


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
ndiswrapper installation n00bDanimal Linux - Software 6 09-19-2005 02:32 AM
ndiswrapper installation PulsarSL Linux - Newbie 1 08-27-2005 10:58 PM
Ndiswrapper 1.0 installation error. jjee Linux - Laptop and Netbook 6 05-02-2005 09:56 PM
NdisWrapper installation PEACEYALL Debian 1 01-16-2005 04:39 AM
ndiswrapper installation problem KulaShaker Debian 3 12-15-2004 01:30 PM


All times are GMT -5. The time now is 10:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration