Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old October 12th, 2005   #1
darius_underhill
5 Cups of Ubuntu
 
darius_underhill's Avatar
 
Join Date: Sep 2005
Beans: 22
Send a message via Yahoo to darius_underhill
Post HOWTO: Using D-link AirplusG+ DWL g650+ with ndiswrapper

Hi! I just want to share to our fellow Ubuntu Users. I was finding a lot of threads regarding this issue so I'd like to share how I got my D-Link DWL G650+ Wireless Card. Moderators: if this thread is already redundant, kindly move it or delete altogether.

First, I'd like to thank the author of the following website:

http://www.ndeepak.info/tech/wlansarge.php

For his nearly complete guide. This is actually a guide for Debian Sarge, but I'm going to describe here the exact steps in my ubuntu hoary laptop (although I will also share some experiences on how to install it in Breezy Preview Release).

1. First, install the ndiswrapper package.

Code:
sudo apt-get install ndiswrapper-source ndiswrapper-utils
Note for Breezy Users: There is GUI ndiswrapper in one of the reposotories. Im not sure where but you may want to try that out.

Then you will need the drivers from D-Link's website. (note: I tried using the drivers that came with wireless card but it failed to work)

You can download it from here:

Windows driver for DWL-G650+

Now, extract the file and look for the Windows XP driver INF. so in this file its GPLUS.inf. Install it by using the following command:

Code:
sudo ndiswrapper -i GPLUS.inf
Now you will need to install your system's kernel headers. In my case its "linux-headers-2.6.10-386":

Code:
sudo apt-get install linux-headers-2.6.10-5-386
Next, you will need to install the kernel module for ndiswrapper.

Code:
cd /usr/src/
tar -jxvf ndiswrapper-source.tar.bz2
It will extract a modules directory which holds the ndiswrapper kernel module. You will need to compile this.

Code:
cd ./modules/ndiswrapper
make
make install
Afterwards, you will now load the modules.

Code:
depmod -a
modprobe ndiswrapper
Currently it will be loaded but to make Ubuntu load it everytime you will need to add the entry "ndiswrapper" in your /etc/modules.

Code:
sudo cp /etc/modules /etc/modules_backup
sudo echo "ndiswrapper" >> /etc/modules
Now I will deviate a bit from the original source of this guide. For some reason, I hope its only on my system. If continue following the guide at this point, my system will be able to detect the Wireless card. So what I did was I restarted my system (restarting the system after hardware driver installation is one of my old Windoze habits).

Try to check your boot messages if your system was able to succesfully load the ndis driver.

Now plug in your wireless card and try running the following command:

Code:
sudo iwlist wlan0 scan
If this causes a "command not found" error, you will need to install the wireless-tools package:

Code:
sudo apt-get install wireless-tools
The output will contain an ESSID for the network. Take note off the ESSID and run the following

Code:
sudo iwconfig wlan0 essid <ESSID>
where <ESSID> is the essid found in the iwlist command earlier. If you use an encryption key, set it. Security mode can be open or restricted. The default is 'restricted', but for me, it works only if I set the mode to be 'open'.

Code:
iwconfig wlan0 key open <wepkey>
where <wepkey> is your network's wepkey.

Now run iwconfig, and the interface should be all set:

Code:
sudo iwconfig

lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"BarFoo"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:13:19:8C:57:C0   
          Bit Rate:54 Mb/s   Tx-Power:10 dBm   Sensitivity=0/3  
          RTS thr:4096 B   Fragment thr:4096 B   
          Encryption key:DEADBEEF00   Security mode:open
          Power Management:off
          Link Quality:100/100  Signal level:-45 dBm  Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Check the output and make sure that the essid, the wepkey (encryption key), security mode(open) is correct. Check the value of the access point. It should contain the MAC address of your Wireless Accesspoint.

To continue, you will need to setup the system for DHCP. So you will need to add a couple lines to /etc/network/interfaces

Code:
sudo cp /etc/network/interfaces /etc/network/interfaces_backup
sudo gedit /etc/network/interfaces
Add these lines:

Code:
iface wlan0 inet dhcp
pre-up  iwconfig wlan0 essid "BarFoo" && iwconfig wlan0 key open DEADBEEF00

auto wlan0
That's it. To start using the wireless LAN card, issue:

Code:
sudo ifdown eth0
sodu ifup wlan0
To switch back to wired lan. Just do the opposite of the two lines above.

Extra NOTE: You can make connecting to a wireless network by install Wifi Radar.

Please see this link for further instructions:

HOWTO: Wifi Radar on Hoary

or if you're using breezy you can install it using apt-get.

Code:
sudo apt-get install wifi-radar
Hope this helps. Feedback will be greatly appreciated.
__________________
Do you want to see a MIRACLE? Be the Miracle!

My Blog: Null Comment...
My Workplace: ZimpliHotels
My OS: Ubuntu Linux

Last edited by darius_underhill; October 25th, 2005 at 02:59 AM..
darius_underhill is offline   Reply With Quote
Old October 12th, 2005   #2
mlomker
Skinny Extra Sweet Ubuntu
 
mlomker's Avatar
 
Join Date: Aug 2005
Location: Saint Paul, MN
Beans: 2,903
Re: HOWTO: Using D-link AirplusG+ DWL g650+ with ndiswrapper

Moved to the tips folder. Thanks for the contribution!
mlomker is offline   Reply With Quote
Old July 26th, 2006   #3
lreyes6
A Carafe of Ubuntu
 
lreyes6's Avatar
 
Join Date: Jun 2005
Location: Guatemala
Beans: 133
Ubuntu 6.10 Edgy
Re: HOWTO: Using D-link AirplusG+ DWL g650+ with ndiswrapper

hello i have a doubt... what happend if i change my kernell version?
__________________
--
Leonel Reyes Mata
Linux User #343531
lreyes6(at)gmail(dot)com
http://sirgt.chapinware.com
Guatemala, Centro America.
lreyes6 is offline   Reply With Quote
Old September 24th, 2006   #4
Feppa
First Cup of Ubuntu
 
Join Date: Jun 2006
Beans: 10
Re: HOWTO: Using D-link AirplusG+ DWL g650+ with ndiswrapper

Thanx for the great how to! I got it working with WEP but also want WPA. Anyone know how to do this?
Feppa is offline   Reply With Quote
Old September 25th, 2006   #5
jack frost
Just Give Me the Beans!
 
jack frost's Avatar
 
Join Date: Feb 2006
Location: San Diego
Beans: 59
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Using D-link AirplusG+ DWL g650+ with ndiswrapper

Will this work with the DWL - G650M?
__________________
Jack Frost

Email: SENDHUGHES@GMAIL.COM
jack frost is offline   Reply With Quote
Old October 1st, 2009   #6
moodle
5 Cups of Ubuntu
 
Join Date: Jun 2009
Location: Belfast, Northern Ireland
Beans: 19
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Using D-link AirplusG+ DWL g650+ with ndiswrapper

I also want to get this card working with WPA. Any help much appreciated.
moodle is offline   Reply With Quote
Old December 29th, 2008   #7
wpault
First Cup of Ubuntu
 
Join Date: Sep 2007
Beans: 2
Re: HOWTO: Using D-link AirplusG+ DWL g650+ with ndiswrapper

This works very well, although I had to get the D-Link driver off the International (Singapore) D-Link web site

Thank you
wpault is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:52 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry