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 05-24-2005, 10:50 PM   #1
Benjamin
LQ Newbie
 
Registered: May 2005
Posts: 11

Rep: Reputation: 0
Thumbs down There's no way I really have to type in all these things whenever I reboot...


Ok, after about a month, I FINALLY got ndiswrapper to work. But, every time I reboot, I have to type in:

iwconfig wlan0 essid <ESSID>,
iwconfig wlan0 key restricted <password>, and
dhclient wlan0.

I already added "modprobe ndiswrapper" to my /etc/rc.d/rc.local file so that it does that automatically every time I reboot. But, it seems like there would be a better way to fix my problem than just to make it run those other commands every time I reboot, like I did to modprobe ndiswrapper. (Maybe there's a better way to get that one too.) There should be a way where I could somehow store my essid and password... Any help will be appreciated.

From Ben

P.S. I have Fedora Core 3 and 2.6.11-1.27_FC3.

Last edited by Benjamin; 05-25-2005 at 12:14 AM.
 
Old 05-25-2005, 12:22 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
I'd just stick everything in rc.local. That's what it's there for.

Dave
 
Old 05-25-2005, 12:39 AM   #3
pembo13
Member
 
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403

Rep: Reputation: 30
Quote:
Originally posted by ilikejam
I'd just stick everything in rc.local. That's what it's there for.

Dave
I aggree. The way around that would be some init script hacking. Not as pretty OR simple.
 
Old 05-25-2005, 12:44 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Check out these scripts. You need both rc.inet1.conf and rc.wireless.conf
properly setup. These will help you start your interface when you boot
the comp. And if you need further help, you can contact the author via
the information in his link. I don't know Fedora, but he is a Linux expert
with a large computer company...name withheld. And they run RedHat,
so he will know.

And for what it's worth, rc.inet1 is designed for this, not rc.local ->
inet = Internet address manipulation routines
issue "man inet" for more details
 
Old 05-25-2005, 12:47 AM   #5
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
rc.inet1 doesn't exist on Fedora.
 
Old 05-25-2005, 12:53 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by ilikejam
rc.inet1 doesn't exist on Fedora.
That is probably because Fedora doesn't comply with the published Linux standards,
such as the Linux File System Standard. But there should be startup scripts which will
load the wireless interface just as they do for the wired interface.

Happy Birthday Dave! How old? ;-)
 
Old 05-25-2005, 11:05 AM   #7
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Cheers! I'm 24. Nearly a quarter century. Ouch.

Yeah, RedHat / Fedora not complying with Linux standards? What a surprise!

A new script in rc[0-6].d would be the best solution on Fedora, but if it's for a single user workstation, I don't think there's much point.

Dave
 
Old 05-25-2005, 05:18 PM   #8
Benjamin
LQ Newbie
 
Registered: May 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Ok, first of all, thx for all the help. But, here's the thing. I added all those thing into rc.local because I got tired of trying to find another way, but for some reason, even though dhclient wlan0 is there, it doesn't work and I have to re-type that every time I reboot. Does anyone have any idea why that is? Thanks again for replying.

From Ben
 
Old 05-25-2005, 05:28 PM   #9
Robert G. Hays
Member
 
Registered: Jan 2003
Location: Atlanta, Ga., USA
Distribution: Gentoo, Mandrake, ~others
Posts: 157

Rep: Reputation: 30
ilikejam: as of next week... "I'll see your 24 & raise it that much, too." -- and I'm basically the same person I was when I was 1+(1/2) your age, quit worrying, already!:: the usual reward for livin' past you're teens is that you get older -- an' if sommone's a'found a way around thet, I'd certainly like ta ast 'em iff'n they also happens ta know tha' way backerds so's I c'n not only stop where I is, but mebbe gits back ta where you'uns is.

(And I only use such accents to amuse me & whoever else might get a kick from it; it does NOT mean that I've senile or some such !!!)

best!
 
Old 05-26-2005, 07:36 AM   #10
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Benjamin:
I had a similar problem on my laptop - issuing several iwconfig commands in a row seriously cunfused the Cisco WiFi drivers.

Try adding 'sleep 3' after each iwconfig command, and see if that helps.

Robert G. Hays:
/me sits in rocking chair, smoking pipe, reminiscing about the old days...

Dave
 
Old 05-26-2005, 05:31 PM   #11
Benjamin
LQ Newbie
 
Registered: May 2005
Posts: 11

Original Poster
Rep: Reputation: 0
My problem isn't with the iwconfigs. When I turn on my computer, iwconfig just by itself shows the essid and password already set. My problem is that the dhclient wlan0 after all the iwconfigs isn't working. I have to re-do it (and nothing else) whenever I reboot. Do you think the sleep 3s will still help this?
 
Old 05-26-2005, 06:51 PM   #12
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Maybe. Try one between the last iwconfig and dhclient - it might take your card a while to scan for the network with the right SSID before dhclient will work. It might also be the authentication process taking a second or two. A few seconds sleep should be enough I'd imagine.

Dave

Last edited by ilikejam; 05-26-2005 at 06:53 PM.
 
Old 05-26-2005, 08:58 PM   #13
Benjamin
LQ Newbie
 
Registered: May 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Oh yeah, that's a good point... I remember it was taking a while to set the essid when I was typing it all in manually. I'll try it now...
 
Old 05-26-2005, 09:31 PM   #14
Benjamin
LQ Newbie
 
Registered: May 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Nope, didn't work. Even sleep 20 didn't work...
 
Old 05-26-2005, 09:50 PM   #15
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
I'm at a loss. There's no difference between rc.local running dhclient and you running it from a console.

Maybe the dhclient isn't in the default $PATH or something like that?
Try changing 'dhclient wlan0' to 'dhclient wlan0 &> /dhclientlog' then check the contents of '/dhclientlog' after you've booted.

Dave
 
  


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
installing redhat 8.0 when text login in I cannot type password?? I type root scrist Linux - General 4 04-22-2006 02:20 AM
Disk Cleanup type thing? IanPappas Mandriva 1 10-05-2005 06:01 PM
My keyboard is not working with root user.when i type any thing i cant see anything sandhya Linux - General 3 07-06-2004 08:26 AM
KL lite codec type thing for linux? kjp_72 Linux - Newbie 1 05-22-2004 05:31 PM
bash scripting/batch file type thing antken Linux - General 2 01-22-2001 07:56 AM

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

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