You are not logged in.

#1 2015-01-06 22:34:30

noarch
Member
Registered: 2015-01-06
Posts: 17

Wifi setup: wifi-menu fails but wpa_supplicant works

Guys,

I've installed archlinux for the first time, and I'm mighty pleased. I've been following the installation guides, and have run into a slightly annoying issue.

When I try to setup my wifi(WPA) with "wifi-menu", I end up with "CONNECTION FAILED" error message. The steps I'm following are.

# wifi-menu

     In ncurses
    1. choose the SSID
    2. Enter the password
   
    Result - CONNECTION FAILED

However, running wpa_supplicant command from commandline works well.

# wpa_supplicant -B -i wlp3s0 -c <(wpa_passphrase "ssid" "password")

.. works!

So, wifi drivers are properly loaded for sure. I believe that wifi-menu internally uses wpa_supplicant. Why would "wifi-menu" command fail? Ultimately I want to use netctl profiles to automatically enable the wifi rather than manually enabling wi-fi every time. Any ideas?

Offline

#2 2015-12-03 10:39:20

hatahata50
Banned
Registered: 2014-11-29
Posts: 47
Website

Re: Wifi setup: wifi-menu fails but wpa_supplicant works

in my case

shell script   wifi.bat
------------------------------------------------

rm /etc/wpa_supplicant.conf
x=wlp0s26u1u4  #<---------ifconfig -a
echo 'ctrl_interface=DIR=/run/wpa_supplicant' > /etc/wpa_supplicant.conf
wpa_passphrase MyPlace 70812446 >> /etc/wpa_supplicant.conf
   ip link set $x  up
   wpa_supplicant -B -D nl80211 -c /etc/wpa_supplicant.conf -i $x
 dhcpcd -A $x
sleep 10
echo '----------------------------'
ping -c 3 www.google.com
ifconfig | grep 192

------------------------------------------------
works


but your script   

 wpa_supplicant -B -i wlp0s26u1u4   -c <(wpa_passphrase "MyPlace" "70812446")   

  is simple and splendid .


regards

Last edited by hatahata50 (2015-12-04 17:39:05)

Offline

#3 2015-12-03 12:58:54

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: Wifi setup: wifi-menu fails but wpa_supplicant works

netctl is not very good, if wpa_supplicant by hand works fine then just be happy and finish the install.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2015-12-03 22:11:58

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wifi setup: wifi-menu fails but wpa_supplicant works

Or we could attempt to find out what is actually wrong...
tongue

@OP: Please post the output of:

systemctl list-unit-files|grep enabled

Jin, Jîyan, Azadî

Offline

#5 2015-12-04 02:15:02

hatahata50
Banned
Registered: 2014-11-29
Posts: 47
Website

Re: Wifi setup: wifi-menu fails but wpa_supplicant works

at another 32bit PC

 ifconfig -a
wlp0s29f7u4 # <------- 
       : flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  
        inet 192.168.10.220  netmask 255.255.255.0  broadcast 192.168.10.255
        inet6 fe80::e632:e5ed:3c51:138  prefixlen 64  scopeid 0x20<link>
        ether 00:22:cf:01:22:6f  txqueuelen 1000  (Ethernet)
        RX packets 28  bytes 2762 (2.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 43  bytes 4617 (4.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@dell yuma]# BAT/comment-out.bat wifi.bat

rm /etc/wpa_supplicant.conf
rm /run/wpa_supplicant/wlp0s29f7u3
rm /run/wpa_supplicant/wlp0s29f7u4
x=wlp0s29f7u1  # <--------------------
echo 'ctrl_interface=DIR=/run/wpa_supplicant' > /etc/wpa_supplicant.conf
wpa_passphrase MyPlace 7081002446 >> /etc/wpa_supplicant.conf
   ip link set $x  up
   wpa_supplicant -B -D nl80211 -c /etc/wpa_supplicant.conf -i $x
dhcpcd -A $x
sleep 10
echo '----------------------------'
ping -c 3 www.google.com
ifconfig | grep 192

can connect internet !
i cannot understand the reason . but wifi-radar says not wlp0s29f7u4 but wlp0s29f7u1.

but very unstable .

================================

by the way ,

systemctl list-unit-files|grep enabled
autovt@.service                            enabled 
dbus-org.freedesktop.network1.service      enabled 
dhcpcd.service                             enabled 
dhcpcd@.service                            enabled 
display-manager.service                    enabled 
getty@.service                             enabled 
lxdm.service                               enabled 
netctl-auto@.service                       enabled 
openntpd.service                           enabled 
sshd.service                               enabled 
systemd-networkd.service                   enabled 
systemd-networkd.socket                    enabled 
remote-fs.target                           enabled

Last edited by hatahata50 (2015-12-04 17:42:36)

Offline

#6 2015-12-04 03:24:32

ChrisG
Member
From: USA
Registered: 2015-11-27
Posts: 29
Website

Re: Wifi setup: wifi-menu fails but wpa_supplicant works

Don't forget to install dialog as well. I've heard it is needed with wifi-menu.

sudo pacman -S dialog

Signature Geek - This is where you learn.

Offline

#7 2015-12-04 05:43:14

hatahata50
Banned
Registered: 2014-11-29
Posts: 47
Website

Re: Wifi setup: wifi-menu fails but wpa_supplicant works

32bit's wifi setting go mad .

so i again show 64bit's setting
-----------------------------------------------

[root@lnv arch]# systemctl list-unit-files|grep enabled
dhcpcd.service                             enabled 
display-manager.service                    enabled 
getty@.service                             enabled 
lxdm.service                               enabled 
openntpd.service                           enabled 
sshd.service                               enabled 
remote-fs.target                           enabled 
[root@lnv arch]# pacman -Q dialog
dialog 1:1.2_20150920-1
[root@lnv arch]# pacman -Q | grep wifi
wifi-radar 2.0.s10-1
[root@lnv arch]# pacman -Q | grep wpa
wpa_actiond 1.4-2
wpa_supplicant 1:2.3-1
wpa_supplicant_gui 2.5-2

shell script  of wifi.bat  at another wifi router  is

rm /run/wpa_supplicant/wlp0s29u1u2
rm /etc/wpa_supplicant.conf
 x=wlp0s29u1u2
echo 'ctrl_interface=DIR=/run/wpa_supplicant' > /etc/wpa_supplicant.conf
wpa_passphrase  URoad-9BF5EC  4333336   >> /etc/wpa_supplicant.conf
   ip link set $x  up
   wpa_supplicant -B -D nl80211 -c /etc/wpa_supplicant.conf -i $x
 dhcpcd -A $x
sleep 10
echo '----------------------------'
ping -c 3 www.google.com
ifconfig | grep 192

Last edited by hatahata50 (2015-12-04 18:03:39)

Offline

#8 2015-12-04 05:49:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Wifi setup: wifi-menu fails but wpa_supplicant works

Please use code tags when pasting to the boards:
https://wiki.archlinux.org/index.php/Fo … s_and_code


And read the pacman manual: `pacman -Ss | grep xxx | grep dialog` is just a clueless way of doing `pacman -Q dialog`...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2015-12-05 23:32:23

hatahata50
Banned
Registered: 2014-11-29
Posts: 47
Website

Re: Wifi setup: wifi-menu fails but wpa_supplicant works

at another  64bit PC

netctl-auto@.service 
is bad .

i don't now how to stop netctl-auto@.service .
so

pacman -Rsc netctl

then

systemctl list-unit-files|grep enabled
dhcpcd.service                             enabled 
display-manager.service                    enabled 
getty@.service                             enabled 
lxdm.service                               enabled 
openntpd.service                           enabled 
sshd.service                               enabled 
remote-fs.target                           enabled 

then
i can access internet
---------------------------
regards

Last edited by hatahata50 (2015-12-05 23:57:40)

Offline

#10 2015-12-07 00:00:17

hatahata50
Banned
Registered: 2014-11-29
Posts: 47
Website

Re: Wifi setup: wifi-menu fails but wpa_supplicant works

i again speak of 32'bit PC which could not connect internet by wifi previouly.

i do the next steps , then connect  internet by wifi .

pacman -Rsc netctl
systemctl disable systemd-networkd.service

then

 systemctl list-unit-files|grep enabled
autovt@.service                            enabled 
dhcpcd.service                             enabled 
dhcpcd@.service                            enabled 
display-manager.service                    enabled 
getty@.service                             enabled 
lxdm.service                               enabled 
openntpd.service                           enabled 
remote-fs.target                           enabled 

connecting shell script is the same previously  mentioned .

Last edited by hatahata50 (2015-12-07 06:52:29)

Offline

#11 2015-12-07 10:44:42

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wifi setup: wifi-menu fails but wpa_supplicant works

hatahata50 wrote:
dhcpcd.service                             enabled 
dhcpcd@.service                            enabled 

Disable these and let netctl handle the dhcp

Also, netcl@auto cannot be used at the same time as the profile-specific version; from the netctl ArchWiki page:

This method conflicts with the Basic method. If you have previously enabled a profile through netctl, run `netctl disable $profile` to prevent the profile from starting twice at boot.

https://wiki.archlinux.org/index.php/Ne … f_profiles

EDIT: You really should have started your own thread rather than necrobumping and hijacking an old thread.

Last edited by Head_on_a_Stick (2015-12-07 10:45:48)


Jin, Jîyan, Azadî

Offline

#12 2015-12-07 18:06:01

hatahata50
Banned
Registered: 2014-11-29
Posts: 47
Website

Re: Wifi setup: wifi-menu fails but wpa_supplicant works

Offline

#13 2015-12-07 18:41:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: Wifi setup: wifi-menu fails but wpa_supplicant works

Thanks for starting the new thread.   
I will use this opportunity to close this old thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB