You are not logged in.

#1 2014-03-22 14:25:44

idiotz
Member
From: Switzerland
Registered: 2014-03-22
Posts: 23

[SOLVED] wpa_supplicant error when connecting to wifi

hi everybody

I recently installed archlinux on my new laptop. When I tried connecting to a wifi network with

 wpa_supplicant -i wlp3s0 -c <(wpa_passphrase ssid password) 

it gave

Successfully initialized wpa_supplicant
Failed to open config file '/dev/fd/63'.
Failed to read or parse configuration '/dev/fd/63'.

All the steps in the wiki (interface activation, access point discovery) were successful so far.

Any idea?

thank you very much

Last edited by idiotz (2014-03-26 21:36:20)

Offline

#2 2014-03-22 15:30:45

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] wpa_supplicant error when connecting to wifi

In the past, I seem to recall having issues with this kind of process substitution of 'wpa_passphrase'.  Can you try to simply redirect the output to a file?

# wpa_passphrase ssid password > /path/to/wpa_supplicant.conf 

Then run it as before, but using the new config file instead of the process substitution:

# wpa_supplicant -i wlp3s0 -c /path/to/wpa_supplicant.conf 

Offline

#3 2014-03-22 16:15:04

idiotz
Member
From: Switzerland
Registered: 2014-03-22
Posts: 23

Re: [SOLVED] wpa_supplicant error when connecting to wifi

alright it worked! Thanks a lot.

However when I try with NetworkManager nothing works (neither cable nor wifi).

But I haven't looked thoroughly in the forums for a solution yet.. I'll go check.

Offline

#4 2014-03-22 18:49:45

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] wpa_supplicant error when connecting to wifi

You shouldn't be using any other service manually if you want to use NetworkManager.  NetworkManager will call the necessary services on its own.  Hence, if you have wpa_supplicant running (whether directly from the command line or from the service), it is going to interfere with the functionality of whatever other network management daemon you choose to use.  The same thing goes for other networking tools like dhcpcd or dhclient.

If you want to use NetworkManager, make sure that all other network management services are disabled, no dhcp client is running, and you hvaen't already tried to manually associate with anything via iw or iproute2.

Offline

#5 2014-03-23 09:41:59

idiotz
Member
From: Switzerland
Registered: 2014-03-22
Posts: 23

Re: [SOLVED] wpa_supplicant error when connecting to wifi

okay thanks problem solved. I disabled dhcpcd.service and everything ran smoothly.

Offline

#6 2014-03-23 15:37:49

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] wpa_supplicant error when connecting to wifi

Please mark the thread title as [Solved] then.  You can edit the title by editing the first post.

Offline

Board footer

Powered by FluxBB