LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2011, 01:31 AM   #1
amilauduwerella
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 57

Rep: Reputation: 17
Connect to wireless network Arch linux


Hi all,

i just install arch linux yesterday.
And I have an issue with the wireless connection.

I can see wireless connections, when i click on thet networkmanager,
But i cannot connect. If I remove WPA or any security from the wireless connection(from my wifi router) I can connect to wireless network without any issue. But when there is any security is involved to the connection it does not connect.

Please tell me how to connect to wireless. I've been using debian for a long time, but there was no any issue with this connectiong thing.

I am new to arch linux.
Appreciate your help on this.
Thanks.
 
Old 05-12-2011, 02:01 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
How did you connect with Debian?

Markus
 
Old 05-12-2011, 02:28 AM   #3
amilauduwerella
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 17
Hi,

using network-manager, it was easy, when i just click there it ask for the PSK and if I enter that then it connects.

Thanks,
 
Old 05-12-2011, 02:29 AM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
With Arch you can use wicd or wpa_supplicant, which encryption are you using?

Markus
 
Old 05-12-2011, 02:37 AM   #5
amilauduwerella
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 17
i use WPA encryption.
at the moment I have no any encryption, if I use so I cannot connect, but i want WPA to be used as the encryption.

Last edited by amilauduwerella; 05-12-2011 at 02:41 AM. Reason: more info
 
Old 05-12-2011, 02:46 AM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
I'm using wpa2 and have wpa_supplicant installed. wpa_supplicant comes with a configurationfile wpa_supplicant.conf which has to be configured with ssid and psk. Now I'm using Slackware, but once I've tried Arch on both of my laptops I used wpa_supplicant without any problems.

Markus
 
Old 05-12-2011, 02:53 AM   #7
amilauduwerella
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 17
I just changed it to WPA2 now, and my "/etc/wpa_supplicant.conf" has following lines,
please correct me if i wrong.

network={
ssid="squeeze"
scan_ssid=1
key_mgmt=WPA-PSK
psk=24ampitiya
priority=1
}

__________________________________________________
NOTE


squeeze is my SSID
24ampitiya is my PSK
 
Old 05-12-2011, 02:59 AM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
You can execute wpa_supplicant on the commadline:
Code:
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
where -D -i and -c are driver, interface and path to the config-file. If it doesn't work you'll get some errormessages which may be helpful. You can use the iwconfig command in order to check (in another terminal while wpa_supplicant is running) if you're now connected.

Markus
 
Old 05-12-2011, 03:02 AM   #9
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
BTW: the psk in your wpa_supplicant.conf file has to be quoted, here an example of my computer
Code:
samsung:~# cat /etc/wpa_supplicant.conf 
ctrl_interface=/var/run/wpa_supplicant GROUP=0

network={
        ssid="my ssid"
        proto=WPA RSN
        key_mgmt=WPA-PSK
        pairwise=TKIP
        psk="my key"
}

# Wildcard match for SSID (plaintext APs only). This example select any
# open AP regardless of its SSID.
#network={
#       key_mgmt=NONE
#}
samsung:~#
Markus
 
Old 05-12-2011, 03:18 AM   #10
amilauduwerella
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 17
Quote:
# wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.confLine 562: Invalid PSK '24ampitiya'.
Line 562: failed to parse psk '24ampitiya'.
Line 564: WPA-PSK accepted for key management, but no PSK configured.
Line 564: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant.conf'.
Quote:
#iwconfig
lo no wireless extensions.

wlan0 Ralink STA ESSID:"" Nickname:"RT2860STA"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thrff Fragment thrff
Encryption keyff
Link Quality=100/100 Signal level:-43 dBm Noise level:-115 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

eth0 no wireless extensions.


i even tried netcfg,
/etc/network.d/home file looks,

CONNECTION='wireless'
DESCRIPTION='A simple WPA encrypted wireless connection'
INTERFACE='wlan0'
SECURITY='wpa'
ESSID='squeeze'
KEY='24ampitiya'
IP='dhcp'

]# netcfg home
:: home up [BUSY]
> WPA Authentication/Association Failed
[FAIL]
#
 
Old 05-12-2011, 03:22 AM   #11
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Quote:
Code:
Line 562: failed to parse psk '24ampitiya'.
as I wrote, you'll have to quote the psk.

Markus
 
Old 05-12-2011, 03:49 AM   #12
amilauduwerella
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 17
id does not give any error message but its not getting an IP address.

Quote:
# wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
#
#
# iwconfig
lo no wireless extensions.

wlan0 Ralink STA ESSID:"" Nickname:"RT2860STA"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thrff Fragment thrff
Encryption keyff
Link Quality=10/100 Signal level:0 dBm Noise level:-115 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

eth0 no wireless extensions.
 
Old 05-12-2011, 03:53 AM   #13
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Quote:
Originally Posted by amilauduwerella
Code:
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
it doesn't get an IP-adress because it is not authenticated at the accesspoint.

Could you please post the output of
Code:
lspci -k | grep -iA5 wireless
Markus
 
Old 05-12-2011, 03:59 AM   #14
amilauduwerella
Member
 
Registered: Feb 2009
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 17
Hi Markus,

Quote:
# lspci -k | grep -iA5 wireless
02:00.0 Network controller: Ralink corp. RT3090 Wireless 802.11n 1T/1R PCIe
Subsystem: Hewlett-Packard Company Device 1453
Kernel driver in use: rt2860
Kernel modules: rt2800pci, rt2860sta
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
Subsystem: Hewlett-Packard Company Device 1426
 
Old 05-12-2011, 04:11 AM   #15
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Look if the first line of your wpa_supplicant.conf is similar to mine
Code:
ctrl_interface=/var/run/wpa_supplicant GROUP=0
...
maybe there is something wrong....

and if this doesn't help, we'll have to check the kernelmodules.
Quote:
Originally Posted by amilauduwerella
Code:
Kernel driver in use: rt2860
Kernel modules: rt2800pci, rt2860sta
you may use lsmod in order to check which modules are loaded. As you know you can load and unload modules with modprobe and rmmod. Yet it seems your wireless adapter is using the rt2860 module. maybe you get it working with the other module rt2800pci. Check also that not both modules are loaded!

Markus
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect to wireless network Broadcom BMC3412(?) Arch linux phpeter Linux - Wireless Networking 14 01-03-2011 07:56 AM
How can connect from Linux to wireless network ? eng_mohammedmostafa Linux - Software 3 06-04-2009 10:46 PM
connecting arch to the wireless network jkh Arch 11 04-30-2005 06:05 PM


All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration