LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-24-2005, 08:14 PM   #1
coasterfreak212
Member
 
Registered: Mar 2004
Distribution: Knoppix, Kubuntu, Gnoppix, Slax, Windows 98 & XP
Posts: 54

Rep: Reputation: Disabled
Ndiswrapper and D-Link G120- Where now?


O.K. I installed ndiswrapper, installed my driver, check the drive was present and it is, now what do I do to use it? What codes are needed next to make it wlan0? I have a Dlink DWL-G120 usb wireless network just fyi.
 
Old 02-25-2005, 07:47 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You need to configure it to connect to your wireless access point. The iwconfig command lets you set the SSID and WEP key if you use one (see man iwconfig for the fine details). Once you have that set up properly you need to either request an IP via DHCP or set one statically with ifconfig.
 
Old 02-25-2005, 06:15 PM   #3
coasterfreak212
Member
 
Registered: Mar 2004
Distribution: Knoppix, Kubuntu, Gnoppix, Slax, Windows 98 & XP
Posts: 54

Original Poster
Rep: Reputation: Disabled
I still don't have the driver as wlan0 though, and when I do iwconfig it shows this:

# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.


basically, I want to know the next step after installing the inf file in ndiswrapper.
 
Old 02-26-2005, 08:02 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
basically, I want to know the next step after installing the inf file in ndiswrapper.
There are very good instructions on what to do next both in the INSTALL file that came with ndiswrapper and at the ndiswrapper wiki. Basically, once you have the .inf files installed, you use modprobe to load the module and then iwconfig to configure it. Again, if you have a read through either the INSTALL file or the wiki, it is laid out very clearly.
 
Old 02-27-2005, 12:46 AM   #5
coasterfreak212
Member
 
Registered: Mar 2004
Distribution: Knoppix, Kubuntu, Gnoppix, Slax, Windows 98 & XP
Posts: 54

Original Poster
Rep: Reputation: Disabled
oh, sorry, but know I have a new problem. I tried the modprobe acording to the wiki and it didn't work. I checked with dmesg and it didn't say anything about ndiswrapper and the wiki said it should have. Any ideas to this problem?
 
Old 02-27-2005, 07:38 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
After you run modprobe ndiswrapper, have a look at the output of lsmod. That lists the modules that have been loaded and you should see ndiswrapper there. If you do, then you are doing fine and you can continue with configuring. If not, then something pretty basic has gone wrong.
 
Old 02-27-2005, 11:12 AM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Moved: This thread is more suitable in Wireless Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 02-27-2005, 12:30 PM   #8
coasterfreak212
Member
 
Registered: Mar 2004
Distribution: Knoppix, Kubuntu, Gnoppix, Slax, Windows 98 & XP
Posts: 54

Original Poster
Rep: Reputation: Disabled
well, I ran lsmod and nothing appeared in the list about ndiswrapper. What are possible causes of this and how can I fix it?
 
Old 02-27-2005, 12:52 PM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Basically that means that they system didn't load the modules which means either it can't find it or it never got compilied in the first place. Have a look in /lib/modules/kernelversion/misc and see if ndiswrapper.ko is there. If it is, then something is going wrong with modprobe. If it isn't, then you need to su to root and run make install in the ndiswrapper source directory.

When you enter modprobe ndiswrapper, does anything get returned?
 
Old 02-27-2005, 03:03 PM   #10
coasterfreak212
Member
 
Registered: Mar 2004
Distribution: Knoppix, Kubuntu, Gnoppix, Slax, Windows 98 & XP
Posts: 54

Original Poster
Rep: Reputation: Disabled
No, when I do modprobe ndiswrapper nothing appears it just goes to another prompt. I check if ndiswrapper.ko is in the /lib/modules/kernelversion/misc directory. Another thing is that I installed ndiswrapper through an RPM from rpm.pbone.net, should I get the tar version?
 
Old 02-27-2005, 03:34 PM   #11
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Something is really not on the level here. If modprobe isn't complaining, then ndiswrapper should show up in lsmod.

Quote:
I check if ndiswrapper.ko is in the /lib/modules/kernelversion/misc directory.
OK, is the kernelversion bit exactly the same kernel version as you are running? Run uname -a to find out what kernel is actually running.

Quote:
nother thing is that I installed ndiswrapper through an RPM from rpm.pbone.net, should I get the tar version?
This actually could be a problem. Ndiswrapper has to be compilied against the exact kernel version you're running, so if this RPM was compilied against something else, it isn't going to work well, if at all. However, modprobe should be complaining.

Personally, I would download the source code and go from there. If you have your kernel source code installed, ndiswrapper is pretty easy, just follow the instructions at the wiki or in the INSTALL file.
 
Old 02-27-2005, 09:05 PM   #12
coasterfreak212
Member
 
Registered: Mar 2004
Distribution: Knoppix, Kubuntu, Gnoppix, Slax, Windows 98 & XP
Posts: 54

Original Poster
Rep: Reputation: Disabled
o.k. I'll try the sorce version. I think another porblem is that I'm using Mandrake 10.0, which comes pre-installed with ndiswrapper .4. I uninstalled it becuase it wasn't responding the the command prompt and install version 1 off rpm.pbone.net with the advanced searches only contaning mandrake 10.x searches. Anotherthing I should have looked over was that it was a mandrake 10.1 rpm. It seemed to work fine at the command prompt so i didn't give a second thought. I'll definitly try the source.
 
Old 03-07-2005, 11:56 AM   #13
dddude55
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
Im having the same problem:
I installed the inf and sys files(just to be sure) but i cant config it. modprobe ndiswrapper returns nothing, it just brings up another prompt like his did. i checked lsmod and ndiswrapper is at the top of the list with 2 colums of numbers, one starts with an 8(i didn't write it down) and the one on the right is 0.

my kernel is linux ubuntu 2.6.8.1-3-386:
I looked in /lib/modules/2.6.8.1-3-386 but there is no /misc
the oly folders are boot, build, extra, initrd, and kernel

the file i installed ndiswraper out of is titled:
ndiswrapper-utils_0.10-1_i286.deb

Can anyone tell me whats going on? Did you ever get it to work coasterfreak212?

p.s I know it works with linux because I d/led a comercail driverloader and it worked, but i don't want to pay...
 
Old 03-07-2005, 02:47 PM   #14
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
i checked lsmod and ndiswrapper is at the top of the list
If you can see ndiswrapper with lsmod, that means the module is loaded and is good to go. The modprobe behavior you see is normal for when the module loads correctly. At this point you need to use iwconfig to configure the card. So can you do this?
 
Old 03-07-2005, 04:12 PM   #15
dddude55
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
no i can't
When i type iwconfig i get:
lo no card
slan0 no card

I just found this on another (edit)thread(edit) here but I havn't tried it yet cause i want to find out what it's supposed to do before i restart into linux:

this is the link to the thread, last post:
edit- http://www.linuxquestions.org/questi...&highlight=g10

emerge ndiswrapper
ndiswrapper -i $inf-file
cp $rest-of-files /etc/ndiswrapper/prisma02/
modules-update
modprobe ndiswrapper

do i have to put the $ before prisma02.inf?
and can i "update" the modules if i can't go online...

also, i noticed this, i dont think ive made a link to the kernel, do i need to do this?:
ln -s /usr/src/KERNAL VERSION /lib/modules/KERNAL VERSION/build

Last edited by dddude55; 03-07-2005 at 04:28 PM.
 
  


Reply



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
Wireless D-link DWL-G120 USB Adapter Prism54 Driver installation?? howto please!! geninblaze Linux - Wireless Networking 13 05-01-2006 12:11 AM
D-Link DWL-G120 beyondreality Linux - Wireless Networking 10 06-27-2005 07:49 PM
Ndiswrapper Help with D-link DWL-G510 asdfjkl Linux - Wireless Networking 33 01-29-2005 11:37 AM
D-Link DWL-G120 help! coasterfreak212 Linux - Wireless Networking 1 09-07-2004 02:48 AM
Red hat 9 and D-link dwl-g120: driver install problem geninblaze Linux - Wireless Networking 1 07-17-2004 12:10 PM

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

All times are GMT -5. The time now is 11:04 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