LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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
  Search this Thread
Old 02-14-2008, 08:41 PM   #1
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Setting up Wireless w/ WPA to start automatically in Fedora 8


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"
 
Old 02-15-2008, 04:45 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
so... you can or cannot start wireless manually with ifup wlan0?

If so, then, add that line to the bottom of /etc/rc.local
 
Old 02-15-2008, 06:53 AM   #3
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Original Poster
Rep: Reputation: 164Reputation: 164
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.
 
Old 02-15-2008, 03:54 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
scripts (kommander and command line) to start wireless devices with wpa/wpa2/wpa-aes Fluxx Linux - Wireless Networking 4 06-28-2010 02:51 AM
Setting up Broadcom wireless on Fedora pwroe Linux - Laptop and Netbook 2 07-20-2007 07:49 PM
Changing the defaut setting for which os will start automatically in a dual boot sy royeo Linux - Newbie 2 06-25-2006 02:33 PM
setting up wireless with fedora core4 rlee923 Linux - Wireless Networking 13 03-23-2006 08:51 AM
Setting up GDM to start automatically upon bootup Crushing Belial Slackware 5 02-22-2006 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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