sidux.com
Menu

News

Give back
Last 3 Contributions
25-08-2008 20.00
20-08-2008 15.00
18-08-2008 15.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
skyshow
9 Post subject: wpa roaming problem  PostPosted: Jul 24, 2008 - 09:17 AM



Joined: Jan 05, 2007
Posts: 74
Location: Germany
Status: Offline
I actually tried to install wpa roaming following the howto in the sidux manual here :
http://manual.sidux.com/de/internet-con ... gui-de.htm

But the final result after writing "/usr/sbin/wpa_gui" in a console was like this:
Quote:
[/Failed to open control connection to wpa_supplicant.
PING failed - trying to reconnect
PING failed - trying to reconnect
PING failed - trying to reconnect
PING failed - trying to reconnect
PING failed - trying to reconnect/]


my /etc/network/interfaces
Quote:
# The loopback network interface
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug wlan0

iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supllicant.conf

# id_str="home"
iface home inet static
address 192.168.x.x
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.x.x



my /etc/wpa_supplicant/supplicant.conf

Quote:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="MySSID"
scan_ssid=1
psk="Mykey"
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
auth_alg=OPEN
priority=1000
id_str="home"

}


naturally i substituted the "x",the "SSID and the "Mykey" to the right ones.
But I really don't know why it doesn't work ?

additionally here the output of iwconfig


Quote:
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:off/any
Mode:Managed Frequency:2.437 GHz Access Point: Not-Associated
Bit Rate:54 Mb/s Tx-Power:20 dBm Sensitivity=0/3
RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


Are there mistakes in my posted files ? or an has anybody an idea what's wrong ?

My system data:
Quote:
Host/Kernel/OS "michel" running Linux 2.6.25-11.slh.2-sidux-686 i686 [ sidux 2008-02 Έρεβος - kde-full - (200806251805) ]
CPU Info (1) Intel Core2 Duo T5250 @ 2048 KB cache flags( sse3 nx lm ) clocked at [ 1500.000 MHz ]
(2) Intel Core2 Duo T5250 @ 2048 KB cache flags( sse3 nx lm ) clocked at [ 1500.000 MHz ]
Videocard nVidia GeForce 8600M GS [ ]
Network cards RaLink Device 0781
Realtek RTL8101E PCI Express Fast Ethernet controller, at port: 4000
Processes 109 | Uptime 2:02 | Memory 191.7/2026.2MB | HDD ATA WDC WD2500BEVS-2,Generic- SD/MMC/MS/MSPro Size 250GB (52%used) | Client Shell | Infobash v3.01


iwlist s says
Quote:
wlan0 Scan completed :
Cell 01 - Address:XX:VV:XX:VV:XX
ESSID:"XXXXXXXXXXX"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:68/100 Signal level:-52 dBm Noise level:-96 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:bcn_int=100
Extra:atim=0
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK



Every comment is welcome !



Thanks in advance
skyshow


Embarassed

_________________
sidux 2008-02 Έρεβος - kde-full
Anybody who knows a problem and doesn't talk about it, is probably part of the problem.
 
 View user's profile Send private message  
Reply with quote Back to top
hubi
Post subject: Re: wpa roaming problem  PostPosted: Jul 24, 2008 - 12:55 PM



Joined: Nov 30, 2006
Posts: 3087
Location: Budapest
Status: Offline
skyshow,

I have never tried a setup without DHCP, so I can only guess by what I see. Before the last bracket "}" you have a blank line. There should not be a blank line. No idea if that has any effect, but it is the only mistake I see in your wpa_supplicant.conf, so it might be the cause (supposing all your private data and the network parameters are correctly set).
skyshow wrote:
my /etc/wpa_supplicant/supplicant.conf

Quote:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="MySSID"
scan_ssid=1
psk="Mykey"
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
auth_alg=OPEN
priority=1000
id_str="home"

}

Correctly it should be then:
Code:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
         ssid="MySSID"
         scan_ssid=1
         psk="Mykey"
         key_mgmt=WPA-PSK
         pairwise=TKIP
         group=TKIP
         auth_alg=OPEN
         priority=1000
         id_str="home"
}
Priority 1000 should work but I was hinted by the manual crew that it goes up to 1000, I personally use priority=15 as highest. But I don't think that's the cause.

skyshow wrote:
]naturally i substituted the "x",the "SSID and the "Mykey" to the right ones.
You have your WPA key in "", so it is written in ASCII. If you use the HexCode phrase, you do not need "". I have never tried my ASCII key, only HexCode passphrases, so I cannot comment on using them.

As I said, only the blank line seems to be a mistake at first sight. Delete it and restart your network (or reboot). See how it works then.

hubi

_________________
Bonitas stultitiaque sodales sunt.
 
 View user's profile Send private message  
Reply with quote Back to top
hubi
Post subject: Re: wpa roaming problem  PostPosted: Jul 24, 2008 - 01:05 PM



Joined: Nov 30, 2006
Posts: 3087
Location: Budapest
Status: Offline
I think I got it!

You have a terrible typo in your /etc/network/interfaces!
Code:
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supllicant.conf


It is SUPPLICANT and not SUPLLICANT!

So the line must read:
Code:
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf


hubi

_________________
Bonitas stultitiaque sodales sunt.


Last edited by hubi on Jul 24, 2008 - 02:48 PM; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
slam
Post subject: RE: Re: wpa roaming problem  PostPosted: Jul 24, 2008 - 02:41 PM
Team Member


Joined: Nov 24, 2006
Posts: 1751
Location: w3
Status: Offline
Well done, hubi!

That's why we probably should teach and encourage people even more to use copy & paste - instead of typing.

Greetings,
Chris

_________________
64bit stuff for sidux
development is life - code.zikula.org
an operating system must operate - sidux.com
 
 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number 
Reply with quote Back to top
skyshow
15 Post subject: solved  PostPosted: Jul 25, 2008 - 04:53 AM



Joined: Jan 05, 2007
Posts: 74
Location: Germany
Status: Offline
@hubi
you are an exact observer, thanks a lot, the typo was the mistake and additionally I deleted the blank line. I searched for hours.
Wink
btw, for the tip with the Hex code, how can I switch my ASCII -passphrase to Hex code.

@slam
You are absolutly right, but believe me for a beginner like me, it is quite good to make mistakes, because in this case to have to try out why the mistake come up and then you will probably understand how the system tricks !The only needed things are time and nerves.

But thanks a lot for your support

best regards

skyshow

_________________
sidux 2008-02 Έρεβος - kde-full
Anybody who knows a problem and doesn't talk about it, is probably part of the problem.
 
 View user's profile Send private message  
Reply with quote Back to top
skyshow
15 Post subject:   PostPosted: Jul 25, 2008 - 01:13 PM



Joined: Jan 05, 2007
Posts: 74
Location: Germany
Status: Offline
@hubi

solved, I got the hex code.And I'd like to tell you, the roaming feature is very nice as well as your wiki howto belong to that topic.

Many thanks
skyshow

_________________
sidux 2008-02 Έρεβος - kde-full
Anybody who knows a problem and doesn't talk about it, is probably part of the problem.
 
 View user's profile Send private message  
Reply with quote Back to top
hubi
Post subject:   PostPosted: Jul 25, 2008 - 01:29 PM



Joined: Nov 30, 2006
Posts: 3087
Location: Budapest
Status: Offline
skyshow,

great Very Happy

Just for the record if someone pops in how to create a HEX passphrase (I just wanted to post it). As user (the real ssid and passphrase without brackets):
Code:
wpa_passphrase <ssid> <passphrase>
hubi

_________________
Bonitas stultitiaque sodales sunt.


Last edited by hubi on Jul 26, 2008 - 03:20 PM; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
kelmo
Post subject:   PostPosted: Jul 26, 2008 - 02:46 PM



Joined: Dec 19, 2006
Posts: 815

Status: Offline
hubi, it is:
Code:

wpa_passphrase <ssid> <passphrase>
 
 View user's profile Send private message  
Reply with quote Back to top
hubi
Post subject:   PostPosted: Jul 26, 2008 - 03:21 PM



Joined: Nov 30, 2006
Posts: 3087
Location: Budapest
Status: Offline
thx, kelmo, I changed it as well now.

hubi

Note to self: never write without doublechecking Wink

_________________
Bonitas stultitiaque sodales sunt.
 
 View user's profile Send private message  
Reply with quote Back to top
mrsarmitage
Post subject:   PostPosted: Jul 29, 2008 - 09:20 PM



Joined: Dec 07, 2006
Posts: 54
Location: Berlin
Status: Offline
thanks hubi for your tutorial on wpa-roaming - inspired by this thread I tries it as well and after some attempts it worked:

etc/network/interfaces:

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback




allow-hotplug ath0
iface ath0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf


and:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="RedStar"
key_mgmt=NONE
wep_key0="xxx"
priority=10
id_str="home"
}

wpa-gui writes the configuration into your wpa_supplicant.conf when it is successfully startet. Reboot is important after you have configured your etc/network/interfaces and your wpa_supplicant.conf
And yes WEP ist not secure.
Gretings UB
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 1 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux is Free Software released under the GNU/GPL license and other compatible licenses.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed by w3you.