You are not logged in.

#1 2013-10-30 00:04:14

DaimyoKirby
Member
Registered: 2013-10-29
Posts: 54

[SOLVED]Cannot Connect to Wireless Network during Installation

(Sorry, yet another newbie unable to configure a network connection properly)

I've been using Ubuntu for a little while now (since 11.10), and finally decided to give Arch a try (for a number of reasons). I thought I was comfortable enough with the CLI to be able to set this up, especially with the help of the Beginners' Guide (and the rest of the internet), but I still ran into issues with setting up my network connection (practically the first step, ugh).

Following the instructions in the Beginners' Guide, I first brought the interface up with

# ip link set wlp5s4 up

and then used

# wifi-menu wlp5s4

to try and connect, but it gave me a connection failed error. 

# systemctl status netctl@wlp5s4\x2dWIN_030.service

gave me the following:

Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
Active: inactive (dead)

(I'll post the output of 'journalctl -xn' if someone can tell me an easy way to move it between computers, or I'll type it manually if there's no easier way)

I then proceeded to attempt connect without using wifi-menu. I first did

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

(replacing ssid and psk with the right info, of course), and got the output

Successfully initialized wpa_supplicant

I then did

# dhcpcd wlp5s4

but this timed out.

Following the instructions, I went to the fallback, starting with

# echo 'ctrl_interface=DIR=/run/wpa_supplicant' > /etc/wpa_supplicant.conf
# wpa_passphrase <ssid> <passphrase> >> /etc/wpa_supplicant.conf

The second command resulted in

zsh: parse error near `<'

I'm not sure what I'm doing wrong, but that's what I've done so far. I apologize if this seems like information overload, but I felt more info is better than less.

Anyone have any suggestions as to what my next moves should be? If you want me to post any logs, please let me know.

Last edited by DaimyoKirby (2013-11-03 14:54:15)

Offline

#2 2013-10-30 10:23:35

forumache
Member
From: Netherlands
Registered: 2011-09-02
Posts: 57

Re: [SOLVED]Cannot Connect to Wireless Network during Installation

DaimyoKirby wrote:

Following the instructions, I went to the fallback, starting with

# echo 'ctrl_interface=DIR=/run/wpa_supplicant' > /etc/wpa_supplicant.conf
# wpa_passphrase <ssid> <passphrase> >> /etc/wpa_supplicant.conf

The second command resulted in

zsh: parse error near `<'

Sorry to state the obvious, but have you replaced <ssid> with your sid and <passphrase> with your network password?
something like:

wpa_passphrase mynet "This is my password" >> /etc/wpa_supplicant.conf 

Offline

#3 2013-10-31 20:21:24

DaimyoKirby
Member
Registered: 2013-10-29
Posts: 54

Re: [SOLVED]Cannot Connect to Wireless Network during Installation

Erm...didn't realize that I didn't need the brackets (<>). Don't know why I didn't think of that...

I'll try that and report back with the results.

Last edited by DaimyoKirby (2013-11-02 15:58:21)

Offline

#4 2013-11-02 15:59:10

DaimyoKirby
Member
Registered: 2013-10-29
Posts: 54

Re: [SOLVED]Cannot Connect to Wireless Network during Installation

Here are the results.

I went through the initial steps, and started the without wifi-menu steps. When I got to where I had a problem previously, this is what happened:

# echo 'ctrl_interface=DIR=/run/wpa_supplicant' > /etc/wpa_supplicant.conf
# wpa_passphrase <ssid> <passphrase> >> /etc/wpa_supplicant.conf
# ip link set wlp5s4 up

I replaced "<ssid>" and "<passphrase>" correctly this time, and all of these commands passed without any output.

I ran into the next command, though, and wasn't exactly sure about it:

# wpa_supplicant -B -D n180211 -c /foobar.conf -i wlp5s4

I assumed I had to replace "/foobar.conf" with "/etc/wpa_supplicant.conf", and this gave me the following output:

Successfully initialized wpa_supplicant
wlp5s4: Unsupported driver 'n180211'

The Beginners' Guide doesn't indicate what outputs you should get from these commands, so assuming that this was a good output, I ran

dhcpcd wlp5s4

but this just ended up timing out as well.

Offline

#5 2013-11-02 16:09:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED]Cannot Connect to Wireless Network during Installation

Nope, that is not good output.  Generally you shouldn't need to specify the driver.  Just leave that (the -D n180211) out.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2013-11-03 14:18:26

DaimyoKirby
Member
Registered: 2013-10-29
Posts: 54

Re: [SOLVED]Cannot Connect to Wireless Network during Installation

Trilby wrote:

Nope, that is not good output.  Generally you shouldn't need to specify the driver.  Just leave that (the -D n180211) out.

Ok, I ran through the steps again, leaving that out just like you said, and it simply gave me the output

Successfully initialized wpa_supplicant

with no error/warning after it.

However, when I ran

dhcpcd -A wlp5s4

it simply hung on

dhcpcd[583]: wlp5s4: waiting for carrier

just like before, and then timed out.

Offline

#7 2013-11-03 14:52:22

DaimyoKirby
Member
Registered: 2013-10-29
Posts: 54

Re: [SOLVED]Cannot Connect to Wireless Network during Installation

Well, I finally got it. I was just browsing through some more links and threads about wireless setup, and saw some people using "iwconfig", along with suggestions about the association point, so I thought I'd give it a try.

After reading the man page, I tried:

# iwconfig wlp5s4 essid WIN_030 key 0288325114 ap any

This went through ok, and when I ran

dhcpcd wlp5s4

it connected!

So it might have been due to the association with any point that caused it to work, or it could have been that I had normally started each setup attempt with

# ip link set wlp5s4 up

as per the Beginners' Guide and my card might have issues with that (even though I thought I had set "down" whenever I was told to). Who knows exactly what it is, but it's working now!

Thanks for all the help everyone!

Offline

#8 2013-11-03 14:57:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED]Cannot Connect to Wireless Network during Installation

It looks like your network is *not* using wpa security but is rather WEP, or some other variant.

If it is your network, you may want to read up on why WEP is a bad idea (or at very least not worth the hassle, it may as well be an open network).

EDIT: as an aside, wpa_supplicant can also handle WEP, but it is not a straight-forward as WPA, which - as the name implies - is what the tool was made for.

Last edited by Trilby (2013-11-03 14:58:09)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB