You are not logged in.

#1 2010-08-23 23:44:18

Strazku
Member
Registered: 2010-08-22
Posts: 12

Can't get netcfg to work properly

I'm currently trying to setup my netcfg.  I can connect wirelessly without any problems by the following process:

ifconfig wlan0 up
iwconfig wlan0 essid "networkid"
wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
dhcpcd wlan0

However, when I follow the guides on wiki to get it started up, I get the following errors when i use the

netcfg wpa_suppl
:: wpa_suppl up                                                          [BUSY] 
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

 > WPA Authentication/Association Failed 

Any help would be greatly appreciated.  I'm trying to get my netcfg to work properly so I can set up my wireless to where it connects automatically instead of having to put in commands everytime I log in.  Thanks!

Offline

#2 2010-08-23 23:46:21

alexandrite
Member
Registered: 2009-03-27
Posts: 326

Re: Can't get netcfg to work properly

What's your profile look like?

Offline

#3 2010-08-24 00:05:07

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: Can't get netcfg to work properly

I haven't really looked through those threads, but maybe there is help in one of them
http://www.google.com/search?hl=en&q=si … =&gs_rfai=

Offline

#4 2010-08-24 00:26:51

Strazku
Member
Registered: 2010-08-22
Posts: 12

Re: Can't get netcfg to work properly

alexandrite wrote:

What's your profile look like?

CONNECTION='wireless'
DESCRIPTION='A wpa_supplicant configuration based wireless connection'
INTERFACE='wlan0'
SECURITY='wpa-config'
WPA_CONF='/etc/wpa_supplicant.conf'
IP='dhcp'

Last edited by Strazku (2010-08-24 00:27:32)

Offline

#5 2010-08-24 00:32:06

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: Can't get netcfg to work properly

Do you need an ESSID line in your profile?  Something like

CONNECTION='wireless'
DESCRIPTION='A wpa_supplicant configuration based wireless connection'
INTERFACE='wlan0'
ESSID='myessid'
SECURITY='wpa-config'
WPA_CONF='/etc/wpa_supplicant.conf'
IP='dhcp'

Offline

#6 2010-08-24 02:00:37

alexandrite
Member
Registered: 2009-03-27
Posts: 326

Re: Can't get netcfg to work properly

Strazku wrote:
alexandrite wrote:

What's your profile look like?

CONNECTION='wireless'
DESCRIPTION='A wpa_supplicant configuration based wireless connection'
INTERFACE='wlan0'
SECURITY='wpa-config'
WPA_CONF='/etc/wpa_supplicant.conf'
IP='dhcp'

If you truly must use wpa-config, make sure there are no directives in the config file outside your network block.  Netcfg cannot use wpa_supplicant files that do, and it prints a similar error message if I remember correctly.  Also, you may still need to specify your ESSID in the profile, as stated above.

But! Consider just using "SECURITY='wpa'" or "SECURITY='wpa-configsection'" instead of "SECURITY='wpa-config'"  Netcfg will generate a wpa_supplicant config file and use wpa_supplicant to manage the connection.  Netcfg comes with example syntax for it, and it's much simpler.

Last edited by alexandrite (2010-08-24 02:09:02)

Offline

#7 2010-08-24 03:03:48

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: Can't get netcfg to work properly

alexandrite wrote:

But! Consider just using "SECURITY='wpa'" or "SECURITY='wpa-configsection'" instead of "SECURITY='wpa-config'"  Netcfg will generate a wpa_supplicant config file and use wpa_supplicant to manage the connection.  Netcfg comes with example syntax for it, and it's much simpler.

I agree.  Unless you're doing some fancy wpa_supplicant thing, you should use netcfg to generate a wpa_supplicant.conf for you.

Offline

Board footer

Powered by FluxBB