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 06-25-2005, 06:03 PM   #1
beyondreality
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
Unhappy D-Link DWL-G120


linux is new to me. I really exhausted myself to try to make this adapter work with fedora. I do not have too much hair now
Try to use ndiswrapper. Following is what I did
First use unshield to extract the cab file come with the CD.
there is only one inf file and a bunch of sys files. I copy the PRISMA02.sys file of directory Drv9X and PRISMA02.inf to /etc/ndiswrapper/prisma02/ folder.
Then I got lost.
if I use ndiswrapper -i PRISMA02.inf
then ndiswrapper -l
I got bad driver.

I try to use modprobe or iwconfig. The system shows no such command.

I really do not know what to do from here.

I will really appreciate if anyone can help me.
 
Old 06-25-2005, 06:43 PM   #2
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Quote:
First use unshield to extract the cab file come with the CD.
there is only one inf file and a bunch of sys files. I copy the PRISMA02.sys file of directory Drv9X and PRISMA02.inf to /etc/ndiswrapper/prisma02/ folder.
Then I got lost.
you do not have to copy these files to the /etc/ndiswrapper directory. you can run "ndiswrapper -i file.inf" from your home directory, although it may not make a difference. If it still doesn't work, you're going to have to look around for different .sys and .inf files.

the commands modprobe and iwconfig, like much else under fedora usually have to be prefixed with /sbin

# /sbin/modprobe

# /sbin/iwconfig
 
Old 06-26-2005, 12:04 AM   #3
beyondreality
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for the help!


I used
ndiswrapper -i PRISMA02.inf
ndiswrapper -l

Got
installing prisma02
installed ndis drivers:
prisma02 driver present

Then:
/sbin/modprobe ndiswrapper

Got
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.11-1.1369_FC4/misc/ndiswraper.ko):Operation not permitted

When I use /sbin/iwconfig

Got
lo no wireless extensions.
sit() no wireless extension


How do I deal with that error? Your help is appreciated.
 
Old 06-26-2005, 08:07 AM   #4
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Check the output of "dmesg" for output relating to ndiswrapper. Also, check your system log (it's in /var/log/)

Then you may want to take a look through this page

http://ndiswrapper.sourceforge.net/p...dex.php/Fedora

and also google your error.

Make sure you're using the newest stable version of ndiswrapper (v. 1.2 as of now)

Cheers

[Edit]

Also, if you got an warning message during "make" relating to the kernel being compiled with 4K stack size, you should check out this thread

http://www.linuxquestions.org/questi...hreadid=280170

Last edited by dcdbutler; 06-26-2005 at 08:41 AM.
 
Old 06-26-2005, 02:18 PM   #5
beyondreality
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Smile Almost got it

Thanks for the help and encouragement. After reading those articles and tried several times, finally, I got to the point:

iwlist wlan0 scan

I can see all the accessible wireless points. Feel close to success
Then use /sbin/iwconfig wlan0 essid Earth (Earth is my ESSID)
then use /sbin/iwconfig to show the configureation. Everything is cool.


Since I am using WEP.
I try to use /sbin/iwconfig wlan0 key restricted ********** (********** is the 10 digit key)
got error info: Error for wirless request "Set Encode" (8B2A): SET failed on device wlan0; Operation not permitted.

I think after this point, I should be able to link to the networks.

Thanks for your surpport!!
 
Old 06-26-2005, 06:56 PM   #6
beyondreality
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Unknow host

after delete the loaded driver and reload the driver that problem is gone.

So, now I use /sbin/modprobe ndiwrapper to load the module. It goes well
/sbin/iwconfig show the status
/sbin/iwlist scan lists all the available access points.
/sbin/iwconfig wlan0 essid ESSID assign the essid to wlan0
/sbin/iwconfig wlan0 key restricted 8888866666 goes well this time.
/sbin/ifconfig wlan0 up activate the network interface

everthing goes without errors.

After this point, it seems it should work.

I use ping

ping www.cnn.com Then the error info unknow host www.cnn.com
ping 64.236.16.84 Then the error info Network is unreachable.


What do I need to do to get over with this last obstacle?

Thanks!
 
Old 06-26-2005, 08:42 PM   #7
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Try hooking the interface up with dhcp

# /sbin/dhclient wlan0

Then check the output of ifconfig - you should now have an IP address

Last edited by dcdbutler; 06-26-2005 at 09:08 PM.
 
Old 06-26-2005, 11:51 PM   #8
beyondreality
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Original Poster
Rep: Reputation: 0
after /sbin/dhclient wlan0 without error information
then use /sbin/ifconfig

lo
inet addr:127.0.0.1 Mask: 255.0.0.0
...

wlan0
inet6 addr: fe80::211:95ff:fe4a:dc80/64 scope:link
...

that does not look like ip address

Ping still does not work.

what should I do next?
 
Old 06-27-2005, 06:34 AM   #9
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Check the output of /sbin/iwconfig

You should see your essid that you assigned in iwconfig. If it says off/any, or if the AP shows just a row of zero's then iwconfig did not pick up the information correctly. Make sure the mode is set correctly (usually this is "managed"). Try setting the wep key to "open" rather than "restricted". Post the output of iwlist scan and iwconfig if you're still having problems.

Cheers
 
Old 06-27-2005, 06:19 PM   #10
beyondreality
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Unhappy still not working

Thanks for your patience! Please stay with me. I am almost done

ping still not working

following are the output from /sbin/ifconfig /sbin/iwconfig /sbin/iwlist

[root@beyondreality utils]# /sbin/iwconfig
lo no wireless extensions.

sit0 no wireless extensions.

Warning: Driver for device wlan0 recommend version 18 of Wireless Extension,
but has been compiled with version 17, therefore some driver features
may not be available...

wlan0 IEEE 802.11g ESSID:"Earth"
Mode:Managed Frequency:2.437 GHz Access Point: 00:11:95:4E:1E:F5
Bit Rate:54 Mb/s
RTS thr:2347 B Fragment thr:2432 B
Encryption key:8888-8666-66 Security modepen
Power Managementff
Link Quality:100/100 Signal level:-39 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:7 Invalid misc:5953 Missed beacon:0


[root@beyondreality utils]# /sbin/iwlist wlan0 scan

Cell 03 - Address: 00:11:95:4E:1E:F5
ESSID:"Earth"
Protocol:IEEE 802.11b
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:0/100 Signal level:-38 dBm Noise level:-256 dBm
Encryption keyn
Bit Rate:1 Mb/s
Bit Rate:2 Mb/s
Bit Rate:5.5 Mb/s
Bit Rate:11 Mb/s
Bit Rate:6 Mb/s
Bit Rate:9 Mb/s
Bit Rate:12 Mb/s
Bit Rate:18 Mb/s
Bit Rate:24 Mb/s
Bit Rate:36 Mb/s
Bit Rate:48 Mb/s
Bit Rate:54 Mb/s
Extra:bcn_int=100
Extra:atim=1


[root@beyondreality utils]# /sbin/ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1894 errors:0 dropped:0 overruns:0 frame:0
TX packets:1894 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2410674 (2.2 MiB) TX bytes:2410674 (2.2 MiB)

wlan0 Link encap:Ethernet HWaddr 00:11:95:4AC:80
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::211:95ff:fe4a:dc80/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:275 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:86024 (84.0 KiB) TX bytes:3168 (3.0 KiB)
 
Old 06-27-2005, 07:49 PM   #11
beyondreality
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Smile One last step DNS

Now. Actually, if I ping some ip address, it is working.
I can even use mozilla if I input ip address.
But once I use something like www.cnn.com, I got unknow host error. I guess it must be related to DNS setting. But I do not know how. One more step I am ready to go

Thanks butler
 
  


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
Wireless D-link DWL-G120 USB Adapter Prism54 Driver installation?? howto please!! geninblaze Linux - Wireless Networking 13 05-01-2006 12:11 AM
Ndiswrapper and D-Link G120- Where now? coasterfreak212 Linux - Wireless Networking 15 03-07-2005 05:17 PM
DWL-G120 AirPlus G High Speed 2.4GHz in MANDRAKE? Koruptor Linux - Newbie 1 02-13-2005 11:16 PM
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


All times are GMT -5. The time now is 11:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration