LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-08-2006, 06:29 PM   #1
mirto
Member
 
Registered: May 2005
Location: Brazil
Distribution: Debian Testing
Posts: 89

Rep: Reputation: 15
Wifi and WPA


Sorry guys, I know that google has a lot of materials but, I'm with a lot of hurry to get that working... I had tried some times with wpa supplicant but without success. So I hv a wifi up and working (mad wifi) and I use Debian eth0. The wifi is set up like this:
essid LIBRARY-WIFI
and the wpa key is a string like this universitystudent (Every body can have it, but they add my mac address).
Any help will be apreciate! sory for my bad english...
 
Old 06-08-2006, 06:33 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,678

Rep: Reputation: 122Reputation: 122
Install the wireless tools (apt-get install wireless-tools) and make sure the keys on sender and reciever are *exactly* equal.
 
Old 06-08-2006, 06:36 PM   #3
mirto
Member
 
Registered: May 2005
Location: Brazil
Distribution: Debian Testing
Posts: 89

Original Poster
Rep: Reputation: 15
Thanks man but the wireless tools packges doesn't work with wpa keys.
 
Old 06-08-2006, 06:48 PM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,763

Rep: Reputation: 201Reputation: 201Reputation: 201
If you have Gnome & HAL installed, try this:

http://www.gnome.org/projects/NetworkManager/

I've heard that it works pretty well.
 
Old 06-08-2006, 07:24 PM   #5
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,678

Rep: Reputation: 122Reputation: 122
@Mirto: sorry, I overlooked you were using Wifi. That's not the same as wlan Can't help you then I'm afraid.
 
Old 06-08-2006, 07:30 PM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Look in /usr/share/doc/packages/wpa_supplicant

The sample wpa_supplicant.conf file contains dozens of examples. Some of them may come close.
 
Old 06-08-2006, 07:38 PM   #7
mirto
Member
 
Registered: May 2005
Location: Brazil
Distribution: Debian Testing
Posts: 89

Original Poster
Rep: Reputation: 15
actually it is wlan, but mad wifi uses it as ath0 and it works fine with AP without encryption...
jschiwal I tried that too but nothing... (btw on win it works fine...)
 
Old 06-11-2006, 06:56 AM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
I think that you need to find out from the University what they are using.
The "universitystudent" might be an ssid password rather than a preshared key.

What information does "iwlist ath0 scan" show.

If wpa_supplicant is running, you can run "wpa_cli" as root.
wpa_cli -p /var/run/wpa_supplicant -i ath0

Then enter:
scan
scan_results

You should get a response like this:
00:14:bf:13:0d:9d 2462 175 [WPA-PSK-TKIP] jesnet
00:14:bf:98:27:ad 2437 170 [WPA-PSK-TKIP] linksys_SES_38253
00:14:a5:30:01:b4 2422 180 [WEP] Motorola
00:14:a5:0d:a0:fb 2412 201 Motorola
00:16:b6:30:ca:81 2437 197 linksys

Note what is inside the square brackets for LIBRARY-WIFI.

Last edited by jschiwal; 06-13-2006 at 01:45 AM.
 
Old 06-12-2006, 09:34 AM   #9
mirto
Member
 
Registered: May 2005
Location: Brazil
Distribution: Debian Testing
Posts: 89

Original Poster
Rep: Reputation: 15
I don hv iflist but I think you mean iwlist? so the output:
ath0 Scan completed :
Cell 01 - Address: 00:13:10:FE:D1:E0
ESSID:"WIFI-BIBLIOTECA"
Mode:Master
Frequency:2.447 GHz (Channel 8)
Quality=17/94 Signal level=-78 dBm Noise level=-95 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:bcn_int=100
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK

And I don have also var/run/wpa_supplicant, and both scan commands...
I just hv done an apt-get install wpa_supplicant

Last edited by mirto; 06-12-2006 at 09:36 AM.
 
Old 06-13-2006, 02:03 AM   #10
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Thank you for the correction. I went back and corrected my typo.

First of all, the essid is "WIFI-BIBLIOTECA" instead of "LIBRARY-WIFI".

I grep'ed the wpa_supplicant.conf file in /usr/share/doc/packages/wpa_supplicant/ for "CCMP TKIP".

This configuration example looks like it may be the closest to what you need:
[code]
# Only WPA-PSK is used. Any valid cipher combination is accepted.
network={
ssid="example"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
priority=2
}
[code]

You will need to change the ssid and psk entries of course.

I wonder if your system even started the wpa_supplicant program. You may have to do that yourself. Try restarting the network and see if wpa_supplicant is running:
Code:
ps -u root | grep wpa
It is also possible that in your system, another location is listed other than /var/run/wpa_supplicant/.

Either read the /etc/wpa_supplicant.conf file or try "lsof -c wpa_supplicant".
If your system has the psk key and other parameters in another configuration file, it is possible that wpa_supplicant is started using a dynamically created file and /etc/wpa_supplicant.conf is ignored.
Possibly /var/run/wpa_supplicant-wlan0.conf.

The "scan" and "scan_results" are commands in the wpa_cli shell and not bash commands.
 
Old 06-22-2006, 03:15 PM   #11
mirto
Member
 
Registered: May 2005
Location: Brazil
Distribution: Debian Testing
Posts: 89

Original Poster
Rep: Reputation: 15
hi I changed the /etc/wpa_supplicant.conf to like this, and I did a command like this to start the wpa_supplicant
wpa_supplicant -Bw -iath0 -Dmadwifi -c/etc/wpa_supplicant.conf
and there it was when I did ps -u root |grep wpa...
well but it din't work I typed iwconfig ath0
and it show the WIFI-BIBLIOTECA after a while but it didn't associate to the ap (that par that show the mac of the ap)
Can someon give me an idea ??
pls!

network={
ssid="WIFI-BIBLIOTECA"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
priority=2
}

thanks everybody...
 
  


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
Can Aironet350 wifi do WEP/WPA? ssalman Linux - Wireless Networking 10 09-11-2007 01:09 AM
Which distro does have out-of-box support for wifi + WPA? hyapadi Linux - Wireless Networking 6 10-04-2005 09:17 AM
Wpa Help shinny Linux - Wireless Networking 2 08-28-2005 09:53 AM
How do i set up WPA PSK with wpa supplicant and linuxant? Eleavings Linux - Wireless Networking 4 12-27-2004 11:24 AM
Ralink WIFI with Asus@Home WIFI wavemachine Linux - Hardware 0 10-20-2004 03:10 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration