You are not logged in.

#1 2013-06-27 12:20:47

Noudoudoulidou
Member
Registered: 2013-06-24
Posts: 19

[SOLVED]Can't connect to the wifi network

Hello

I've just installed Archlinux, I was under Debian and Ubuntu before.
My chipset is

gaetan@Renote ~ $ lspci -vnn | grep 14e4:
02:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)

And

gaetan@Renote ~ $ rfkill list wifi
0: hp-wifi: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no

I followed the instructions here,
https://wiki.archlinux.org/index.php/Broadcom_wireless
and here
https://wiki.archlinux.org/index.php/Wi … cm80211.29

When i make the command

gaetan@Renote ~ $ sudo wifi-menu wlp2s0

I have the followinf menu
mini_316757wifimenu.png
But when i press "Enter" on my network (linksys), i have the following message

Job for netctl@wlp2s0\x2dlinksys.service failed. See 'systemctl status netctl@wlp2s0\x2dlinksys.service' and 'journalctl -xn' for details.

with

gaetan@Renote ~ $ systemctl status netctl@wlp2s0\x2dlinksys.service
netctl@wlp2s0x2dlinksys.service - Networking for netctl profile wlp2s0x2dlinksys
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
   Active: inactive (dead)
     Docs: man:netctl.profile(5)

gaetan@Renote ~ $ journalctl -xn
Hint: You are currently not seeing messages from other users and the system.
      Users in the 'systemd-journal' group can see all messages. Pass -q to
      turn off this notice.
-- Logs begin at lun 2013-06-24 18:33:17 CEST, end at jeu 2013-06-27 14:01:11 CE
jun 24 18:33:17 Renote sudo[580]: pam_unix(sudo:auth): authentication failure; l
-- Reboot --
jun 25 18:16:09 Renote polkit-agent-helper-1[4611]: pam_unix(polkit-1:account): 
jun 25 18:23:00 Renote polkit-agent-helper-1[4968]: pam_unix(polkit-1:account): 
jun 25 18:17:13 Renote polkit-agent-helper-1[5081]: pam_unix(polkit-1:account): 
-- Reboot --
jun 27 14:00:45 Renote sudo[2114]: pam_unix(sudo:auth): authentication failure; 
jun 27 14:01:11 Renote sudo[2114]: pam_unix(sudo:auth): conversation failed

Does anyone know what should I do?

Thanks smile

Last edited by Noudoudoulidou (2013-07-01 01:13:14)

Offline

#2 2013-06-27 12:39:35

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,520
Website

Re: [SOLVED]Can't connect to the wifi network

Fisrt, thanks for the thorough post - this has all the information that should be needed to pull this appart.

Others may have different approaches, but I'd make two suggestions:
1) follow the 'manual connection' steps in the wireless wiki to troubleshoot.  Tools like ntctl/netcg (whichever it is now) may be handy for automating, but they hide too many details for troubleshooting.  See which step in the manual connection steps fails, and with what errors.
2) if you own/manage that access point, consider switching to wpa.  Wep is ill advised - not only is it really not secure, it can also be more problematic for connecting.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#3 2013-06-27 13:36:16

Noudoudoulidou
Member
Registered: 2013-06-24
Posts: 19

Re: [SOLVED]Can't connect to the wifi network

Hello, thanks for the reply

I tried the manual connection steps and I've got

[root@Renote ~]# wpa_supplicant -B -i wlp2s0 -c <(wpa_passphrase "linksys" "***********************")
Successfully initialized wpa_supplicant
[root@Renote ~]# dhcpcd wlp2s0
dhcpcd[301]: version 5.6.8 starting
dhcpcd[301]: wlp2s0: waiting for carrier
dhcpcd[301]: timed out

But when I try by ethernet, it works perfectly and I've got

[root@Renote ~]# dhcpcd enp3s0
dhcpcd[509]: version 5.6.8 starting
dhcpcd[509]: enp3s0: sending IPv6 Router Solicitation
dhcpcd[509]: enp3s0: rebinding lease of 192.168.1.12
dhcpcd[509]: enp3s0: acknowledged 192.168.1.12 from 192.168.1.1
dhcpcd[509]: enp3s0: checking for 192.168.1.12
dhcpcd[509]: enp3s0: sending IPv6 Router Solicitation
dhcpcd[509]: enp3s0: leased 192.168.1.12 for 10800 seconds
dhcpcd[509]: forked to background, child pid 601

I don't understand what i'm doing wrong sad

Offline

#4 2013-06-27 13:45:38

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,520
Website

Re: [SOLVED]Can't connect to the wifi network

wpa_passphrase will not automatically generate a wpa_supplicant.conf suitable for wep networks - this is part of my second point above.

To connect to wep you can try to use iw/iwconfig directly with the 'key' parameter, but I still prefer to use wpa_supplicant.  You can generate the config with wpa_passphrase, but then you'll have to manually edit it to something like the following:

network={
    ssid="linksys"
    scan_ssid=1
    key_mgmt=NONE
    psk="your network key"
}

Three caveats: This is reconstructed largely from memory; As I understand them, wep networks can vary widely in the exact parameters needed in this config file; I don't understand wep very well.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#5 2013-06-28 17:11:40

Noudoudoulidou
Member
Registered: 2013-06-24
Posts: 19

Re: [SOLVED]Can't connect to the wifi network

It seems it come from this point

 [root@Renote ~]# iwconfig wlp2s0 channel 11
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlp2s0 ; Device or resource busy.

But I can't find the process that keep the device busy, since when i do

[root@Renote ~]# lsof | grep wlp2s0

I don't have any answers.

God damned, it's a real challenge to connect for the first time tongue

Offline

#6 2013-06-28 17:47:46

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,520
Website

Re: [SOLVED]Can't connect to the wifi network

I would use lsof, just use a ps flavor command - I'd recommend pstree.  Look for dhcpcd/dhclient, wpa_supplicant or any netctl processes.  Those are the most likely processes to have it 'busy'.  If you haven't yet, you'd want to `systemctl stop netctl`.  Different connection methods will often not coexist happily.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#7 2013-06-28 18:13:37

Noudoudoulidou
Member
Registered: 2013-06-24
Posts: 19

Re: [SOLVED]Can't connect to the wifi network

I don't see what's holding the device :s

[root@Renote ~]# pstree
systemd─┬─2*[dbus-daemon]
        ├─dbus-launch
        ├─dhcpcd
        ├─login───bash───startx───xinit─┬─X
        │                               └─openbox─┬─chromium─┬─chromium
        │                                         │          ├─chromium───17*[{chromium}]
        │                                         │          ├─chromium─┬─java───30*[{java}]
        │                                         │          │          └─5*[{chromium}]
        │                                         │          ├─chromium-sandbo───chromium─┬─chromium───11*[chromium───3*[{chromium}]]
        │                                         │          │                            └─nacl_helper_boo
        │                                         │          └─36*[{chromium}]
        │                                         ├─pcmanfm
        │                                         └─urxvt───bash───sudo───su───bash───pstree
        ├─systemd-journal
        ├─systemd-logind
        └─systemd-udevd

I tried killing dhcpcd but it didn't changed anything.

Offline

#8 2013-06-28 18:20:49

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,520
Website

Re: [SOLVED]Can't connect to the wifi network

You tried?  Or you succeeded?  Was it still shown in that output *after* you killed it?


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#9 2013-06-28 18:41:32

Noudoudoulidou
Member
Registered: 2013-06-24
Posts: 19

Re: [SOLVED]Can't connect to the wifi network

I tried, i didn't succeed.

[root@Renote ~]# iwconfig wlp2s0 channel 11
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlp2s0 ; Device or resource busy.
[root@Renote ~]# killall dhcpcd
[root@Renote ~]# pstree
systemd─┬─2*[dbus-daemon]
        ├─dbus-launch
        ├─login───bash───startx───xinit─┬─X
        │                               └─openbox─┬─chromium─┬─chromium
        │                                         │          ├─chromium───17*[{chromium}]
        │                                         │          ├─chromium─┬─java───30*[{java}]
        │                                         │          │          └─5*[{chromium}]
        │                                         │          ├─chromium-sandbo───chromium─┬─chromium───11*[chromium───3*[{chromium}]]
        │                                         │          │                            └─nacl_helper_boo
        │                                         │          └─33*[{chromium}]
        │                                         └─urxvt───bash───sudo───su───bash───pstree
        ├─systemd-journal
        ├─systemd-logind
        └─systemd-udevd
[root@Renote ~]# iwconfig wlp2s0 channel 11
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlp2s0 ; Device or resource busy.

Thanks for your help by the way, you are spending a lot of time for me, that's very nice smile

Last edited by Noudoudoulidou (2013-06-28 18:43:13)

Offline

#10 2013-06-28 20:11:21

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,520
Website

Re: [SOLVED]Can't connect to the wifi network

have you tried stopping netctl (or is it netcfg now, I get the two confused).


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#11 2013-06-28 21:21:52

Noudoudoulidou
Member
Registered: 2013-06-24
Posts: 19

Re: [SOLVED]Can't connect to the wifi network

Yes, and there was no such process found.
That's realy strange.

Offline

#12 2013-07-01 00:43:22

Noudoudoulidou
Member
Registered: 2013-06-24
Posts: 19

Re: [SOLVED]Can't connect to the wifi network

Hey smile
I've got some news!
Apparently, the problem comes from the fact that I try to connect to a gateway.
In fact, my router is very far from me, so the router have a PLC adapter, and my "wifi gateway" is connected to the other side of the link.
I'm now following theses steps and I'm almost there

[root@Renote openbox]# ip link set wlp2s0 up
[root@Renote openbox]# iwconfig wlp2s0 mode managed key **************************** essid linksys
[root@Renote openbox]# ip addr add 192.168.0.66/24 dev wlp2s0
[root@Renote openbox]# ip route add default via 192.168.0.254
[root@Renote openbox]# echo nameserver 213.169.172.34 >> /etc/resolv.conf
[root@Renote openbox]# echo nameserver 213.169.172.35 >> /etc/resolv.conf

But when I do a ping, i've got

[root@Renote openbox]# ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.0.66 icmp_seq=1 Destination Host Unreachable
From 192.168.0.66 icmp_seq=2 Destination Host Unreachable
From 192.168.0.66 icmp_seq=3 Destination Host Unreachable

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2008ms
pipe 3

I thought it was maybe because i set a wrong IP default adress for the gateway.
I made a route show, when I'm connected by ethernet, and I've got

[root@Renote openbox]# ip route show
default via 192.168.1.1 dev enp3s0  metric 202 
192.168.1.0/24 dev enp3s0  proto kernel  scope link  src 192.168.1.14  metric 202

But I don't see there the IP adress of the Gateway.

Do you know what should I do?
Thanks smile

Last edited by Noudoudoulidou (2013-07-01 00:51:31)

Offline

#13 2013-07-01 00:51:13

Noudoudoulidou
Member
Registered: 2013-06-24
Posts: 19

Re: [SOLVED]Can't connect to the wifi network

I made it!!!
I finally made it!!!
The answer was

[root@Renote openbox]# ip link set wlp2s0 up
[root@Renote openbox]# iwconfig wlp2s0 mode managed key ********************** essid linksys
[root@Renote openbox]# ip addr add 192.168.1.69/24 dev wlp2s0
[root@Renote openbox]# ip route add default via 192.168.1.1  
[root@Renote openbox]# echo nameserver 213.169.172.34 >> /etc/resolv.conf
[root@Renote openbox]# echo nameserver 213.169.172.35 >> /etc/resolv.conf
[root@Renote openbox]# ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=44 time=60.6 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=42 time=61.5 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=42 time=64.4 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 60.671/62.212/64.443/1.615 ms

I'm so bloody happy!!! smile
Thanks for your help, you are awesome smile

Offline

#14 2013-07-01 00:59:23

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,520
Website

Re: [SOLVED]Can't connect to the wifi network

What help - glad you figured it out though.  You can mark this as solved by editting your first post, then other can learn from your solution.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

Board footer

Powered by FluxBB