You are not logged in.
Pages: 1
I carefully followed the beginners guide and successfully installed Arch but, when i rebooted I had no network connection. The guide says "If you properly configured your system, you should have a working network." I checked rc.conf and hosts and they have both been updated according to the guide. The exact commands I used to set up my Belkin usb wi-fi card are as follows:
ip link set wlan0 up
wpa_passphrase %*&$ "$#@!%$@" > /etc/wpa_supplicant.conf
wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
dhcpcd wlan0
Shouldn't the network daemon have connected me automatically? In order to connect I had to reissue these commands:
wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
dhcpcd wlan0
wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf returned the error rfkill: cannot open RFKILL control device but was necessary for me to connect. I would like to be able to connect to the internet automatically without issuing any commands.
Last edited by Cube_Code (2012-07-19 13:34:51)
Offline
Shouldn't the network daemon have connected me automatically?
No, I don't believe so. The network daemon (I think) is only for wired connections. Everything you did to get wireless looks correct, but so far you don't have anything to manage that wireless connection.
I prefer the manual steps myself, but if you want to connect automatically at boot time you'll need to set up netcfg, network manager, or wicd.
See the wireless page on the wiki for more info.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
you could just write a simple bash script that does these commands on login.
#! /bin/bash
wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
sleep 3 && dhcpcd wlan0
Last edited by silly (2012-07-15 12:40:51)
Preserve wildlife -- pickle a squirrel today!
Offline
I set up netcfg but when I used the command
netcfg mynetwork
I got the error
nl80211: 'nl80211' generic netlink not found
Failed to initialize driver 'nl80211'
rfkill: cannot open RFKILL control device
Offline
Despite those error messages I can ping google. It looks like my connection works but I would like to know what those errors mean.
Offline
Just to check:
iwconfig wlan0 essid <network> enc <passphrase>
dhcpcd wlan0
I don't see nl80211 as a kernel module, not sure what this is.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
I got an invalid argument error for my passphrase.
Offline
Are you using wpa/wpa2 or wep? You might need to use wicd to get it to connect. I gave up using wpa_supplicant long ago. If I wanted to connect to something else, then I would have to define it, but wicd shows me what's available most of the time. You might also do man iwconfig, for instructions on using wpa.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
I used wicd for a while and was very happy. But it isn't anything more than a helpful front end to all the manual tools. Wicd calls wpa_supplicant, so if wpa_supplicant won't connect, wicd wouldn't either.
Cube_Code, when did you get the invalid argument error? When you tried to run wpa_supplicant, or wpa_passphrase? If the latter, be aware that spaces (and possibly other special characters) must be escaped in essids and passphrases.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
The error was when I ran this
iwconfig wlan0 essid <network> enc <passphrase>
I did set up netcfg as a daemon but it produces errors before connecting. The errors slow down the boot but it seems to function fine despite that. I just wanted to know why I am getting error messages at this point. Also, how can I display commands properly?
Offline
You can add @ tags in your daemons array, this is mine
DAEMONS=(syslog-ng @network crond dbus @net-profiles slim)
this will load daemons in the background, reducing the load time again. Are you loading daemons in the right order (net-profiles after dbus for example)? This can also cause problems, admitedly though maybe not the one you're experiencing..
"No sympathy for the devil. If you buy the ticket, take the ride."
- Hunter S. Thompson
Offline
oops ... I missed that this was WPA.
I haven''t used WPA, but did you see this
key/enc[ryption]
...
You can also enter the key as an ASCII string by using
the s: prefix. Passphrase is currently not supported.
Are you trying to use a passphrase, or have you converted it to a hex key?
edit: sorry if I added more confusion than help - above I was typing WPA but thinking WEP. I have and do use WPA, but I haven't used WEP.
Last edited by Trilby (2012-07-18 11:35:59)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
@Trilby
I was just trying what nomorewindows suggested. I already have it configured and set up as a daemon but I continue to get the previously stated error messages.
@HungGarTiger
Thanks for that. It keeps the errors from interupting the boot. The deamons have not been altered except for replacing network with net-profiles.
At this point my initial problem is solved but google turned up no meaningful results on my error messages. I could mark the thread as solved but those errors are just bugging me despite their appearant insignificance.
Offline
iwconfig is *not* for WPA, only for WEP. And if you're using WEP you should be lynched.
Cube_Code, which wireless card do you have (lspci -nn will tell you that)?
Offline
It's a Belkin usb F7D1101 wireless adapter [Realtek RTL8188SU].
Offline
Which driver are you using with that, r8172u? That's one of the few remaining wext drivers, so those messages are normal, and harmless. There's a simple way to get rid of them, but finding that out I leave as an exercise to you . Hint: read the documentation on netcfg profiles.
Offline
Which driver are you using with that, r8172u? That's one of the few remaining wext drivers, so those messages are normal, and harmless. There's a simple way to get rid of them, but finding that out I leave as an exercise to you . Hint: read the documentation on netcfg profiles.
Thanks for the hint. Can you give me one for finding out which driver I am using?
Offline
Pages: 1