Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th February 2008, 09:12 AM
mattcen Offline
Registered User
 
Join Date: Dec 2007
Location: Melbourne, Australia
Posts: 79
Start wpa_supplicant before network

Hi all,

From what I could find in my searches, this question hasn't been asked before (though I may have been using the wrong keywords). I have my wireless network card on my laptop up and running, and both the network and wpa_supplicant services are set to start up at boot time.
The trouble is that wpa_supplicant starts up after network, so that if I have my wlan0 set to start automatically, it sits there for ages trying to connect, and eventually failing, because it can't connect without wpa_supplicant.
Is there any way that I can rearrange the order in which these two services start up?

Kind regards,
Mattcen
Reply With Quote
  #2  
Old 5th February 2008, 11:51 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Well, some of us consider it a bug, but the developers don't.

See http://home.nyc.rr.com/computertaijutsu/rhwireless.html which goes through it. In a nutshell, let it do its thing and in rc.local put in /bin/sleep 1
/sbin/dhclient wlan0 (or whatever your card is.)

The page above has a link to the bug report (at one point, there was a serious problem where wpa started before message bus which made wpa fail.) It also has a link to an excellent howto by a gentleman named Mike.

So, you're not the only one who found this, but it seems most people rely on the GUI NetworkManager, which is probably (IMHO) one reason there's been less of an outcry.

Last edited by scottro; 6th February 2008 at 04:21 AM. Reason: I don't believe it--I put it's for its. Sigh
Reply With Quote
  #3  
Old 5th February 2008, 01:13 PM
mattcen Offline
Registered User
 
Join Date: Dec 2007
Location: Melbourne, Australia
Posts: 79
Thank you so much for such a prompt reply!
Believe it or not, I have never edited /etc/rc.local before as having not looked much into startup scripts, I didn't know it existed. Now that I do I'm sure it will come in rather handy .
In any case, placing those commands into the /etc/rc.local worked like a charm (and why shouldn't it?).
It is true that most people seem to use NetworkManager for their wireless, which is all well and good (most of my experiences with NetworkManager have been very straight forward and user friendly), unless of course you want to access your computer from the network without having logged in , in which case you have a bit of a problem!

Thanks alot again for your help!

Sincerely,
Mattcen
__________________
My PC Specs:

Desktop: Pentium D 2.8GHz, 3GB DDR2 RAM, NVidia Geforce 7950GT, ~800GB HDD Space, LeadTek DTV2000H TV Card
24" Dell 2408 WFP and 15" LCD, running WinXP and Ubuntu 8.04.

Laptop: Acer 4235 WLMi, Core2 Duo 2.0GHz, 1GB DDR2 RAM, NVidia 7300Go, 160GB HDD Space, 15.4 Inch widescreen LCD
running WinXP and Fedora 9 in dual boot.

Server: Pentium 4 2.8GHz, 2GB DDR RAM, 320GB HDD, Fedora 8 with various Virtual Machines, including Edubuntu Server 8.04 for PXE Booting.

Last edited by mattcen; 5th February 2008 at 01:19 PM.
Reply With Quote
  #4  
Old 5th February 2008, 06:31 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Glad it helped. I tend to prefer command line, one reason I never made much use of NetworkManager. Re your sig, Ubuntu's Hardy Heron is in alpha, you might as well wait.
Reply With Quote
  #5  
Old 5th February 2008, 11:55 PM
mattcen Offline
Registered User
 
Join Date: Dec 2007
Location: Melbourne, Australia
Posts: 79
Thanks for the suggestion scottro, but I already have Ubuntu 7.10 (got it off a PC Magazine ) and it's apparently supported until next year.
I figure I've got plenty of time to download Hardy Heron before then, and it's not going to be a problem formatting - I'm mainly installing it to get the feel for it, in particular the package management system (apt, synaptic etc) but also the other differences between Debian and Redhat based distros.
What is really going to get me is when Fedora 9 comes out! I have taken to downloading the whole Everything and Updates repositories for those, as I install it on so many computers several of them virtual). That is going to hurt my download limit! oh well.

Thanks again,
Mattcen
__________________
My PC Specs:

Desktop: Pentium D 2.8GHz, 3GB DDR2 RAM, NVidia Geforce 7950GT, ~800GB HDD Space, LeadTek DTV2000H TV Card
24" Dell 2408 WFP and 15" LCD, running WinXP and Ubuntu 8.04.

Laptop: Acer 4235 WLMi, Core2 Duo 2.0GHz, 1GB DDR2 RAM, NVidia 7300Go, 160GB HDD Space, 15.4 Inch widescreen LCD
running WinXP and Fedora 9 in dual boot.

Server: Pentium 4 2.8GHz, 2GB DDR RAM, 320GB HDD, Fedora 8 with various Virtual Machines, including Edubuntu Server 8.04 for PXE Booting.
Reply With Quote
Reply

Tags
network, start, wpasupplicant

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't start wpa_supplicant sherlok Servers & Networking 1 21st April 2008 10:40 PM
shouldn't wpa_supplicant start before network? gsgleason Servers & Networking 8 2nd April 2008 05:38 PM
how can i start wpa_supplicant before wlan0 when i boot? qvaddo Servers & Networking 0 1st April 2006 12:10 PM
FC4 + madwifi + wpa_supplicant. Authenticates, but cannot connect to network jspam Servers & Networking 2 11th December 2005 04:06 AM


Current GMT-time: 08:39 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat