LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools
Old 02-14-2008, 09:41 PM   #1
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 912
Thanked: 6
Setting up Wireless w/ WPA to start automatically in Fedora 8


[Log in to get rid of this advertisement]
What I hope to accomplish: To start my wireless connection automatically at boot.

What I've done:
- Appended the following to /etc/sysconfig/network-scripts/ifup-wireless
Code:
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf &
dhclient wlan0
- I can manually start my wireless by using ifup wlan0

Problems I've encountered, and would also like to resolve:
- Simply starting the wpa_supplicant service through 'service wpa_supplicant start' does not seem to work. The service starts, but the connection is not established.
- I have to run 'dhclient wlan0' to get my DHCP address. Sometimes, running it directly after 'wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf' it tells me dhclient is already running. I have to kill the running process, then rerun dhclient to get my address. I don't think this is related to the fact that I run dhclient in ifup-wireless, because the same happens if I just run "wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf"
SlowCoder is offline     Reply With Quote
Old 02-15-2008, 05:45 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Red Beach (NZ)
Distribution: Ubuntu 9.04
Posts: 8,185
Blog Entries: 3
Thanked: 97
so... you can or cannot start wireless manually with ifup wlan0?

If so, then, add that line to the bottom of /etc/rc.local
Simon Bridge is offline     Reply With Quote
Old 02-15-2008, 07:53 AM   #3
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 912
Thanked: 6

Original Poster
Quote:
Originally Posted by Simon Bridge View Post
so... you can or cannot start wireless manually with ifup wlan0?

If so, then, add that line to the bottom of /etc/rc.local
Sort of ... It's seems like when I start "wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf" it automatically starts dhclient, which doesn't work. So I kill that process, then run dhclient manually.

I actually managed to get it working last night by going into system-config-network and setting wlan0 to start on bootup. But I want to know what changes were made to startup config that allowed it.
SlowCoder is offline     Reply With Quote
Old 02-15-2008, 04:54 PM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Red Beach (NZ)
Distribution: Ubuntu 9.04
Posts: 8,185
Blog Entries: 3
Thanked: 97
Good luck figuring that out. Fedora has it's own scripts, you'll have to hunt through those. Though there may be ~/.rc.local but I forget where the "startup programs" get put.
Simon Bridge is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Setting up Broadcom wireless on Fedora pwroe Linux - Laptop and Netbook 2 07-20-2007 08:49 PM
scripts (kommander and command line) to start wireless devices with wpa/wpa2/wpa-aes Fluxx Linux - Wireless Networking 3 11-06-2006 03:40 PM
Changing the defaut setting for which os will start automatically in a dual boot sy royeo Linux - Newbie 2 06-25-2006 03:33 PM
setting up wireless with fedora core4 rlee923 Linux - Wireless Networking 13 03-23-2006 09:51 AM
Setting up GDM to start automatically upon bootup Crushing Belial Slackware 5 02-22-2006 01:19 PM


All times are GMT -5. The time now is 06:06 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration