You are not logged in.

#1 2011-01-26 23:18:21

Deities
Member
Registered: 2011-01-26
Posts: 4

[Solved] Wifi on Netbook running Arch; Problems connecting to WPA_PSK

Running AR928X Wifi Card on this Netbook
I have no cable access. I must set up everything with wifi from the start. This is hard to do as my wifi is yet to be working.
[Yes I have followed the wiki. Seems my netbook will not work the way it is meant to]



I installed base and base_devel along with: wireless_tools, wep_supplicant, sudo
Lets start with this: I have no knowledge of Arch or even linux. I jumped from windows into arch by deleting my 250 Gb HDD for it. ^.^


What I did from Boot:

lsmod | grep ath9k
modprobe ath9k
ifconfig
iwconfig
wlan0

IEEE 802.11bgn  Mode: Managed  Access Point: Not-Associated
Tx-Power= 20dBm
Retry  long limit:7  RTS thr: off  Fragment thr: off
Encryption Key: off
Power Management: on

iwlist wlan0 scan
Come up with 23+ connections. All protected so I have to do this with MINE!



Here is the problem I am having. Assigning the WPA_PSK key to my network.
iwconfig <INTERFACE> essid <ESSID>


sudo mv /etc/wpa_supplicant.conf{,.bak}
echo "ctrl_interface=DIR=/var/run/wpa_supplcant GROUP=$USERNAME" | sudo tee /etc/wpa_supplcant.conf
wpa_passphrase '<ESSID>' '<PSK>' | sudo tee -a /etc/wpa_supplcant.conf

Can someone check the above code. I got it from a friend but I think he messed up.


sudo chmod 0600 /etc/wpa_supplicant.conf
wpa_supplicant -B -Dwext -i <INTERFACE> -c /etc/wpa_supplicant.conf

This is where the problems starts:
"Failed to initialize control interface 'DIR=/var/run/wpa_supplcant GROUP='

Probably has something to do with the code that needs checking above. If thats the case I need a tut on how to remove the file.

Lastly:

dhcpcd <INTERFACE>
dhclient <INTERFACE>

Tutorial I followed and got this far: http://ubuntuforums.org/showpost.php?p= … stcount=13

Last edited by Deities (2011-01-27 17:25:31)

Offline

#2 2011-01-26 23:54:37

schen
Member
Registered: 2009-06-06
Posts: 468

Re: [Solved] Wifi on Netbook running Arch; Problems connecting to WPA_PSK

# wpa_passphrase mywireless "secretpassphrase" > /etc/wpa_supplicant.conf/

Run this.

Then modify wpa_supplicant.conf to this.

 network={
       ssid="mywireless"
       proto=RSN
       key_mgmt=WPA-PSK
       pairwise=CCMP TKIP
       group=CCMP TKIP 
       psk=7b271c9a7c8a6ac07d12403a1f0792d7d92b5957ff8dfd56481ced43ec6a6515
}

Bring up your wireless interface, then run this.

# wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf 

Output will show "Associated".

You can then run dhcpcd and verifiy with ifconfig.

Offline

#3 2011-01-27 00:17:11

Deities
Member
Registered: 2011-01-26
Posts: 4

Re: [Solved] Wifi on Netbook running Arch; Problems connecting to WPA_PSK

SOLVED!

Thanks a ton! Amazing support!

Offline

#4 2011-01-27 02:48:01

schen
Member
Registered: 2009-06-06
Posts: 468

Re: [Solved] Wifi on Netbook running Arch; Problems connecting to WPA_PSK

Next time, just read the ArchWiki, then use the forums. It is a great knowledge source and has nearly every solution. The beginner's guide is a great starting point.

Also, edit the thread title and mark as solved.

Offline

Board footer

Powered by FluxBB