You are not logged in.
Pages: 1
Topic closed
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
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)
arch's qemu -> http://hatahata50.blogspot.jp/2015/10/a … -qemu.html
Offline
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
Or we could attempt to find out what is actually wrong...![]()
@OP: Please post the output of:
systemctl list-unit-files|grep enabledJin, Jîyan, Azadî
Offline
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 192can connect internet !
i cannot understand the reason . but wifi-radar says not wlp0s29f7u4 but wlp0s29f7u1.
================================
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 enabledLast edited by hatahata50 (2015-12-04 17:42:36)
arch's qemu -> http://hatahata50.blogspot.jp/2015/10/a … -qemu.html
Offline
Don't forget to install dialog as well. I've heard it is needed with wifi-menu.
sudo pacman -S dialogSignature Geek - This is where you learn.
Offline
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-2shell 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 192Last edited by hatahata50 (2015-12-04 18:03:39)
arch's qemu -> http://hatahata50.blogspot.jp/2015/10/a … -qemu.html
Offline
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`...
Offline
at another 64bit PC
i don't now how to stop netctl-auto@.service .
so
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)
arch's qemu -> http://hatahata50.blogspot.jp/2015/10/a … -qemu.html
Offline
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.servicethen
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)
arch's qemu -> http://hatahata50.blogspot.jp/2015/10/a … -qemu.html
Offline
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
OK.
i start new thred .
arch's qemu -> http://hatahata50.blogspot.jp/2015/10/a … -qemu.html
Offline
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
Pages: 1
Topic closed