Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th April 2012, 12:24 AM
mudba Offline
Registered User
 
Join Date: Apr 2012
Location: Chicago
Posts: 10
windows_7ie
WPA setup via bash

hello,

I'm trying to connect to a wireless network. I'm currently running xfre and I'm able to find the network and connect to it through the GUI, but I want connect to it via the bash promt to automate the setup during a kickstart boot.

I've done the following

wpa_passphrase mysid mypassword >/wpa.conf


wpa_supplicant -K -Dwext -i wlan0 -c /wpa.conf

I get the following over and over again

Tring to assoiate to MAC (SSID:'mysid' freq=2412MHZ)
Associated with MAC
CTRL-EVENT-DISCONNECTED basssid=MAC reason=0

What am I donig wrong?
Reply With Quote
  #2  
Old 25th April 2012, 04:23 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,980
linuxchrome
Re: WPA setup via bash

If the network is hidden, you have to add scan_ssid=1 to wpa.conf

I have a page on this at http://home.roadrunner.com/~computer.../wireless.html that covers, among other things, trying to set up wpa manually.

It may also just be the card is one of those that doesn't work that well in Linux.
Reply With Quote
  #3  
Old 25th April 2012, 02:37 PM
mudba Offline
Registered User
 
Join Date: Apr 2012
Location: Chicago
Posts: 10
windows_7ie
Re: WPA setup via bash

I followed your steps and I got the same exact problem.

==============
Trying to Asssoiate with 00:14:6c:a:d7:7c (SSID='MYWIRELESS' freq=2412 Mhz)
Associated with 99:14:6c:ac:d7:7c
CTRL-EVENT-DISCONNECTED bssid=00:14:6:ac:d7:7c reason=0
==============

from XFRE:
if I go upto the top and click the upper right corner of the screen and click the network icon I see my wireless network and I select it. I'm then prompted the the password which I enter. It then connects me without issue.

iwconfig results before connected:
wlan0 IEEE 802.11bgn essid:off/any
mode:managed frequency 2.412GHZ access point: not associated
tx-power=14 dBm
retry long limit:7 res thr:off fragment thr:off
encrpytion key:off
power management: on

iwconfig after connecting with gui
wlan0 IEEE 802.11bgn essid:"mynetwork"
mode:managed frequency 2.412GHZ access point: 00:14:6c:ac:d7:7c
bit rate=54 Mb/s TxPower=27 dBm
tx-power=14 dBm
retry long limit:7 rts thr:off fragment thr:off
encrpytion key:off
power management: on
link quality=70/70 signal level=-30dBM
rx invalid nwid:0 rx invlaid crypt:0 rx invalid frag:0
tx exessive retries:0 invalid misc:15: missed beacon:0
Reply With Quote
  #4  
Old 25th April 2012, 03:08 PM
sea's Avatar
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,608
linuxfedorafirefox
Re: WPA setup via bash

Your commands seem right, howver, no spaces between argument-commands and the according value.
Example "-iwlan0" not "-i wlan0".
Further, you might want to try the -B (background)-

---------- Post added at 02:08 PM ---------- Previous post was at 02:07 PM ----------

Your commands seem right, howver, no spaces between argument-commands and the according value.
Example "-iwlan0" not "-i wlan0".
Further, you might want to try the -B (background)-
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Reply With Quote
  #5  
Old 25th April 2012, 03:13 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,980
linuxfirefox
Re: WPA setup via bash

Interesting. I haven't run into that--where the GUI tool works and wpa doesn't. One thing I would mention--if you are logging in graphically, that is if X is running, I would make sure that there are no other network tools running, that is, NetworkManager or whatever XFCE uses. In other words, making sure it's disabled in services, then rebooting.

Actually, I have run into that, in the old Acer Aspire One, they were loading essential wireless card modules with one of the X startup scripts. That's about the only other thing I can think of.

I don't know how much work you feel like putting into this, but the things I would try are first, to boot in text mode and see if it worked any better if X isn't running. (Also, do lscpi and get the model of the card, then google that and see if there are known issues--or if some module has to be loaded, because then it is possible that Fedora or XFCE does it that way, and does it through some X startup scripts. At any rate, google the card listing, as returned by lspci and see if there are known issues.

I'd also try it with another flavor of Linux to see if you have the same problem. Again, it depends how much work you feel like putting into it.

---------- Post added at 10:13 AM ---------- Previous post was at 10:11 AM ----------

@sea, spaces or no space hasn't seemed to make a difference in my experience with wpa_supplicant. I'm not saying you're incorrect, just that it hasn't been an issue when I've accidentally put them in--things still worked. It's quite possible that I've simply been lucky.
Reply With Quote
  #6  
Old 25th April 2012, 03:52 PM
mudba Offline
Registered User
 
Join Date: Apr 2012
Location: Chicago
Posts: 10
windows_7ie
Re: WPA setup via bash

Got it. THe problem was NetworkManager running.

Now my new problem is that I'm building a kickstart file for this so I need to script up everything up to happen during the ks install. I have to figure out how to disable networkmanager in the kickstart file
Reply With Quote
  #7  
Old 25th April 2012, 04:11 PM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 888
linuxfirefox
Re: WPA setup via bash

Quote:
Originally Posted by mudba View Post
Got it. THe problem was NetworkManager running.

Now my new problem is that I'm building a kickstart file for this so I need to script up everything up to happen during the ks install. I have to figure out how to disable networkmanager in the kickstart file
Hi,
That can usually be done with something like this above the repo line:
Code:
services --enabled=network --disabled=NetworkManagerk,sshd
Hope this helps,
Reply With Quote
Reply

Tags
bash, setup, wpa

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
[SOLVED] BASH :: Scrollbar :: How To Create A CL Scrollbar Using Bash cinsevarg Programming & Packaging 5 3rd December 2010 08:19 PM
Linux www server setup (Hosts setup) robsbots Servers & Networking 0 20th January 2010 07:26 PM
Dvico Fusion HDTV initial setup and Mythtv Setup holden-nut Using Fedora 3 18th November 2006 05:33 AM
Get bash completion working on fedora 3 (bash 3.0) madcat Guides & Solutions (No Questions) 2 27th November 2004 11:05 AM


Current GMT-time: 07:36 (Saturday, 25-05-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