LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-24-2007, 03:04 AM   #1
jsmit487
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
Unhappy dlink DWL-G510 wireless network help ubuntu


hey guys

im a newbe to linux and ubuntu and iv got a dlink DWL-G510 wireless network card and i dont now how to get it working on ubuntu plz help



thanks
 
Old 10-24-2007, 09:48 PM   #2
jbuckley2004
Member
 
Registered: Aug 2004
Distribution: Fedora (KDE spin)
Posts: 224

Rep: Reputation: 70
Hi

Welcome, jsmit.
This is not a new question around here. Connecting up with wireless has had a lenghtly and -um... interesting history with Linux.
The good news is that you have a card with an Atheros chipset in it. I know, 'cause I have one myself. It's pretty well supported and has Linux drivers that work.

But to really help you, we (um... you!) will need to find out a few things.

Where are you in the process? Does your computer recognize your card (that is, if you bring up a terminal session and type in lspci, do you see anything that says "Ethernet Controller:Atheros..."?

Do you have MadWiFi or Ndiswrapper installed (or at least, available?)
Do you have dhclient or dhcpclient installed or running (from the terminal, the command >ps -el | grep dhclient
or perhaps
ps -el | grep dh
will tell you)

If you do, then the commands ifconfig and iwconfig will tell you if you have a link. The command iwlist wlan0 scan will tell you if your card is "hearing" anything at all (but you may need to use ath0 instead of wlan0 if you are using the madwifi driver). Those commands are privileged, and must be run as root (or by using sudo).

Once you're certain that the drivers are installed and working and that dhclient is running, then Ubuntu probably has a wizzard (perhaps under network configuration?) to help you issue the iwconfig commands to connect to your router, or we can help you here (and I'm sure you will find how to use the iwconfig and ifconfig commands yourself - that information is almost everywhere).

I know - if you're really starting from scratch as a newcomer, it seems like a lot of steps. But it's really not so hard - especially the second time. All the pieces you need are in front of you (especially in Ubuntu, I understand), and it's only a matter of putting them together.
 
Old 10-25-2007, 04:23 AM   #3
jsmit487
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Original Poster
Rep: Reputation: 0
?

thank you for the warm welcome
now i tried what you said and this is what come up
1:No I don’t see any thing

2: it says:1 S 0 4577 1 0 75 0 - 499 - ? 00:00:00 dhcdbd(what dose that mean?)

it says for ifconfig: lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

wlan0 Link encap:Ethernet HWaddr 00:19:5B:3A:0B:AC
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:276 (276.0 b) TX bytes:4351 (4.2 KB)

wmaster0 Link encap:UNSPEC HWaddr 00-19-5B-3A-0B-AC-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

it says for iwconfig: lo no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:""
Mode:Managed Frequency:2.437 GHz Access Point: Not-Associated
Retry min limit:7 RTS thrff Fragment thr=2346 B
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:

it say for iwlist:Usage: iwlist [interface] scanning [essid NNN] [last]
[interface] frequency
[interface] channel
[interface] bitrate
[interface] rate
[interface] encryption
[interface] keys
[interface] power
[interface] txpower
[interface] retry
[interface] ap
[interface] accesspoints
[interface] peers
[interface] event
[interface] auth
[interface] wpakeys
[interface] genie
[interface] modulation
What dose this all mean?
 
Old 10-25-2007, 09:26 AM   #4
jbuckley2004
Member
 
Registered: Aug 2004
Distribution: Fedora (KDE spin)
Posts: 224

Rep: Reputation: 70
One Step at a Time!

Ok. There's some good information here.
I'm in the office now, and can only help a little, so I'm going to try to point you in the right direction(s), and ask you to do just a little research on your own.
That's in the spirit of "teaching a man to fish" instead of giving him a fish. ;>

The ps command is used to tell you what's running. The output from that command was used as input to the grep command when you typed >ps -el | grep dh. Grep tried to match the string "dh" and returned only the matches. So, it told you that dhcdbd is running, but not dhclient.

I looked up dhcdbd, and found: "dhcdbd provides a D-Bus interface to dhclient, the DHCP client from ISC, so applications such as NetworkManager can query and control dhclient".

It looks to me that you need to install and start dhclient.
Can you do that? I'm running Mandriva, myself, and the details will be different. But I'm sure that's it's available to you (perhaps through some sort of control-panal type of application that you can run to install other programs from a repository). When it's installed, you just type (as root) >dhclient wlan0 (and that's because your pc knows that you have a card installed, and is calling it wlan0).

There will be one more step, and that's to make dhclient start when you boot up (assuming you want it that way - most people do). I'll have to look up the details, because I don't want to give you the wrong file or location of the file. But essentially, you'll be adding one line to a configuration file, and that's all.

But that step, and the ones I'm about to mention may be taken care of for you automagically if (and only if) Ubuntu provides you with some sort of network configuration tool like Mandriva does. Sorry - I'm ignorant about that, but it would be worth you poking around in both your PC for something that looks like that and to poke around in the Ubuntu forums for that info.

When that is done, then you're almost home.

As root type >ifconfig wlan0 down
>ifconfig essid "<your essid here>"
>ifconfig wlan0 up

The ifconfig command (with no parameters) gave you
wlan0 Link encap:Ethernet HWaddr 00:19:5B:3A:0B:AC
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:276 (276.0 b) TX bytes:4351 (4.2 KB)

before, which says that you're card is recognized (and gives the MAC address as 00:19:5B:3A:0B:AC), and is broadcasting. (but not hearing anything much, btw). It's saying that your card is recognized and is trying to work.

The iwconfig command (with no parameters) says that you haven't "associated" with your router, which is because the dhcp protocol didn't do it's thing (because dhclient wasn't running).

Oh! I just realized, your router needs to be running dhcp for that to work too. Otherwise you need to research "static IP addresses" and find out how that's set up in Ubuntu! Hummm. If you have a choice, you probably want your router to use dhcp - that's dynamic addressing. It'll be easier in the long run.

The iwlist wlan0 scan command is not returning what I expected. I think that may have been because of dhclient not running, but I'm not sure.
When you have an association with your router, the output will look something like:
wlan0 Scan completed :
Cell 01 - Address: 00:06:25:E8:3A:05
ESSID:"<your essid>"
Mode:Master
Frequency:2.437 GHz (Channel 6)
Quality=37/94 Signal level=-58 dBm Noise level=-95 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:18 Mb/s
Bit Rate:24 Mb/s
Bit Rate:36 Mb/s
Bit Rate:54 Mb/s
Bit Rate:6 Mb/s
Bit Rate:9 Mb/s
Bit Rate:12 Mb/s
Bit Rate:48 Mb/s
Extra:bcn_int=100

(or, at least, it should).

Ok - Your mission, should you decide to accept, is to find out if and how Ubuntu manages your network. Should you succeed, the DA will definitely disavow all knowledge of your activities ;>
 
  


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
DLink DWL-G510 Drivers TheDrew202 Linux - Hardware 11 07-13-2008 09:54 PM
Wireless networking in FC1 for Dlink DWL-G510 adapter bella_cet Linux - Wireless Networking 2 07-03-2006 12:33 AM
DLink DWL-G510 and Mandrake 2006 wireless network setup? fueldistributa Linux - Wireless Networking 1 12-19-2005 07:53 AM
Dlink DWL-G510 With MADWiFi RemusX2 Linux - Hardware 6 06-01-2005 02:50 PM
DLink DWL-G510 on AMD64 High-Hopes Linux - Wireless Networking 5 01-13-2005 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:16 PM.

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