You are not logged in.
(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 upand then used
# wifi-menu wlp5s4to try and connect, but it gave me a connection failed error.
# systemctl status netctl@wlp5s4\x2dWIN_030.servicegave 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_supplicantI then did
# dhcpcd wlp5s4but 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.confThe 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
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.confThe 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
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
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 upI 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 wlp5s4I 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 wlp5s4but this just ended up timing out as well.
Offline
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
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_supplicantwith no error/warning after it.
However, when I ran
dhcpcd -A wlp5s4it simply hung on
dhcpcd[583]: wlp5s4: waiting for carrierjust like before, and then timed out.
Offline
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 anyThis went through ok, and when I ran
dhcpcd wlp5s4it 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 upas 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
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