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 08-29-2005, 11:57 PM   #1
oobnuker
LQ Newbie
 
Registered: Jan 2003
Location: Oxford, CT
Posts: 22

Rep: Reputation: 15
Simple, silly wifi question


I am using SUSE 9.3 and I am trying to move away from KDE and switch to blackbox. My wireless card works fine using ndiswrapper (it is a Dell TrueMobile 1350 card), I get an IP from dhcp on boot, etc. The thing that has me stumped is that in order to resolve names after I boot, I have to run KInternet, choose the Wireless Adapter, go in find the AP, and hit the connect button. It seems silly, and I imagine there is a simple work around. I don't like having to load the KDE libraries when I go into blackbox just so I can do that one thing - the whole point of switching was for speed...

So to reiterate, I get an IP, I can ping by IP, but in order to resolv names, I have to go through hoops to hit the connect button - I'm sure there is some magical command line that I can stick in a startup script somewhere to effectively do the same thing.

Thanks in advance.
 
Old 08-30-2005, 12:12 AM   #2
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
probably not, cause using ndiswrapper you usually have to associate to the ap before running dhcpcd, which will update your resolv.conf, ip address, and gateway. it is probably the gateway that is doing it. but it is usual. the manual way to do it is the use iwconfig and give the essid like this:

#iwconfig wlan0 essid linksys


then bring up the wireless card with:

#ifconfig wlan0 up

tehn dhcpcd:

#dhcpcd wlan0

if you want to get the gateway put in by hand, just use route:

#route add default gw 192.168.1.1


use your address and names... yoknwo
 
Old 08-30-2005, 05:25 AM   #3
oobnuker
LQ Newbie
 
Registered: Jan 2003
Location: Oxford, CT
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks, I'll give it a try tonight.
 
Old 08-30-2005, 07:23 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
Please let us know what happens.
 
Old 08-30-2005, 06:27 PM   #5
oobnuker
LQ Newbie
 
Registered: Jan 2003
Location: Oxford, CT
Posts: 22

Original Poster
Rep: Reputation: 15
Hey - I figured it out.

It turns out that it was /etc/resolv.conf. As the system was configured, none of the commands mentioned above did anything because all of that stuff was already working on boot. What was missing was the nameserver entries in resolv.conf.

To test, I opened resolv.conf and added some nameservers - voila - everything worked fine. I went in to X, and ran kinternet, to see what resolv.conf looked like. There was a giant comment area saying that this was a temporary resolv.conf written by dhcpcd. What's strange to me is that dhcpcd had already run, I already had an IP and I could ping by IP just fine without touching the system; but once you click that connect button in kinternet, for some reason it grabs more info from dhcpcd...

Either way, adding my nameservers to resolv.conf solves this problem.

For anyone looking for details, a minimal resolv.conf can probably look like:

Code:
nameserver www.xxx.yyy.zzz
nameserver zzz.xxx.yyy.www
Thanks for looking.
 
Old 08-31-2005, 08:03 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
Thanks for the feedback, very polite.

Also very helpful to others w/ the same problem. (Like me sometime in the future).
 
Old 08-31-2005, 11:12 AM   #7
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
well, that is odd cause dhcpcd should update your resolv.conf. if you are using a router, then you probably need to put the dns servers into the router statically. cuase when you run dhcpcd the router should give you a 192.168.x.x to use for dns... if it is, but it isnt working, they you need to hard code them into it. cuase, unless yast is doing someitng wierd, when you run dhcpcd again it will overwrite what you put into resolv.conf. so to keep you from having to put it in everytime, just put it into the router.
 
Old 09-01-2005, 10:48 AM   #8
oobnuker
LQ Newbie
 
Registered: Jan 2003
Location: Oxford, CT
Posts: 22

Original Poster
Rep: Reputation: 15
Yeah I thought it was odd too. In the comment that dhcpcd writes to resolv.conf, there are instructions on how to modify a certain file so that dhcpcd does not step on the file again - I did that.
 
Old 09-01-2005, 05:35 PM   #9
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
yeah, i only mention the router cuase if you put them into your router staticaly, resolving names is much faster
 
  


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
Simple WiFi Question aeuzent Linux - Wireless Networking 1 04-13-2005 01:16 AM
Silly question, but here goes BrianD18 Linux - Newbie 5 03-23-2005 08:53 AM
Silly question huble General 5 02-17-2005 02:03 AM
following simple instructions for wifi card esteeven Linux - Wireless Networking 15 12-22-2004 09:45 AM
simple, silly question rootlinux Linux - Security 7 04-23-2002 03:47 PM


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