Re: wicd with WPA2 fails

2010-07-16 Thread Bob McGowan
On 07/15/2010 03:28 AM, Paul Scott wrote:
 On Thu, Jul 15, 2010 at 12:25:26PM +0200, Sven Joachim wrote:
 On 2010-07-15 12:15 +0200, Paul Scott wrote:

 On Thu, Jul 15, 2010 at 11:40:27AM +0200, Sven Joachim wrote:

 It might be better to put away wicd for a moment and invoke
 wpa_supplicant directly with the -d switch.  You may have to set the
 ssid first with iwconfig(8).

 I have read the man page.  I apparently need a valid wpa_supplicant.conf 
 file.  The only one 
 I can find (/etc/dbus-1/system.d/wpa...) doesn't seem to be valid.  I get 
 lots of errors 
 about that file when I supply the -D -i and -c parameters.

 There are several sample configuration files in the
 /usr/share/doc/wpasupplicant/examples directory.  The wpa-psk-tkip.conf
 file could be a good starting point.

 
 Thanks.  I'll try that in a few hours.
 
 Paul
 

One thing I've done a few times, that may help here, is to create a
temporary wrapper script to run some command.

That is, go to the executable file location, rename it, say xx.orig, and
create a short script named xx, that will start the xx.orig with the
debug options you want.  You probably want to use as the last arg the
form $@ (include the quotes), which will supply any arguments from the
script to the real program exactly as they were given to the script.

In case there's some std* output from the original that doesn't get
written to a log file, you can add this at the top of the script, to
capture that output in your own log file:

  exec /tmp/xx.orig.$$.log 21

Or just put everything after the 'exec' above, after the xx.orig command
line.  The advantage of using the 'exec' form is that any output the
script generates for any problem will also be written to the file
(syntax errors, other commands failing, etc).

-- 
Bob McGowan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c408b61.2080...@symantec.com



Re: wicd with WPA2 fails

2010-07-15 Thread Thierry Chatelet
On Thursday 15 July 2010 03:39:56 Paul Scott wrote:
 sid fully updated
 
 wicd connects fine if I turn wireless security on the WRT54G2 router
 off.  When I set the router to WPA2 - AES I get (from wicd.log)
 
 2010/07/14 17:40:41 :: iwconfig eth2
 2010/07/14 17:40:41 :: WPA_CLI RESULT IS SCANNING
 2010/07/14 17:40:42 :: wpa_supplicant authentication may have failed.
 2010/07/14 17:40:42 :: connect result is Failed
 2010/07/14 17:40:42 :: exiting connection thread
 2010/07/14 17:40:43 :: Sending connection attempt result bad_pass
 2010/07/14 17:40:43 :: ifconfig eth0
 2010/07/14 17:40:43 :: ifconfig eth2
 2010/07/14 17:40:43 :: Forced disconnect on
 2010/07/14 17:40:43 :: attempting to set hostname with dhclient
 2010/07/14 17:40:43 :: using dhcpcd or another supported client may work
 better
 
 
 TIA for any help,
 
 Paul Scott

Try removing network-manager
Thierry


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201007150843.06714.tchate...@free.fr



Re: wicd with WPA2 fails

2010-07-15 Thread Paul Scott
On Thu, Jul 15, 2010 at 08:43:06AM +0200, Thierry Chatelet wrote:
 On Thursday 15 July 2010 03:39:56 Paul Scott wrote:
  sid fully updated
  
  wicd connects fine if I turn wireless security on the WRT54G2 router
  off.  When I set the router to WPA2 - AES I get (from wicd.log)
  
  2010/07/14 17:40:41 :: iwconfig eth2
  2010/07/14 17:40:41 :: WPA_CLI RESULT IS SCANNING
  2010/07/14 17:40:42 :: wpa_supplicant authentication may have failed.
  2010/07/14 17:40:42 :: connect result is Failed
  2010/07/14 17:40:42 :: exiting connection thread
  2010/07/14 17:40:43 :: Sending connection attempt result bad_pass
  2010/07/14 17:40:43 :: ifconfig eth0
  2010/07/14 17:40:43 :: ifconfig eth2
  2010/07/14 17:40:43 :: Forced disconnect on
  2010/07/14 17:40:43 :: attempting to set hostname with dhclient
  2010/07/14 17:40:43 :: using dhcpcd or another supported client may work
  better
  
  
  TIA for any help,
  
  Paul Scott
 
 Try removing network-manager

network-manager is not installed.

Paul



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100715082325.gc22...@mail.ultrasw.com



Re: wicd with WPA2 fails

2010-07-15 Thread Camaleón
On Wed, 14 Jul 2010 18:39:56 -0700, Paul Scott wrote:

 sid fully updated
 
 wicd connects fine if I turn wireless security on the WRT54G2 router
 off.  When I set the router to WPA2 - AES I get (from wicd.log)
 
 2010/07/14 17:40:41 :: iwconfig eth2
 2010/07/14 17:40:41 :: WPA_CLI RESULT IS SCANNING 
 2010/07/14 17:40:42 :: wpa_supplicant authentication may have failed.
 ^^

(...)

Try starting wp_supplicant in debug mode to make the log more verbose 
about that error. It seems failing at some point of the authentication.

Also, try to lower the security a bit by choosing WPA-PSK (TKIP) or WPA2-
PSK (AES+TKIP) instead just AES. Stronger encryption requires better 
coberture so devices can dialogue smoothly.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.07.15.08.52...@gmail.com



Re: wicd with WPA2 fails

2010-07-15 Thread Paul Scott
On Thu, Jul 15, 2010 at 08:52:24AM +, Camaleón wrote:
 On Wed, 14 Jul 2010 18:39:56 -0700, Paul Scott wrote:
 
  sid fully updated
  
  wicd connects fine if I turn wireless security on the WRT54G2 router
  off.  When I set the router to WPA2 - AES I get (from wicd.log)
  
  2010/07/14 17:40:41 :: iwconfig eth2
  2010/07/14 17:40:41 :: WPA_CLI RESULT IS SCANNING 
  2010/07/14 17:40:42 :: wpa_supplicant authentication may have failed.
  ^^
 
 (...)
 
 Try starting wp_supplicant in debug mode to make the log more verbose 
 about that error. It seems failing at some point of the authentication.

wicd calls wpa_supplicant with wext.  I don't see a preferences setting to 
change 
to cause more debugging.

 Also, try to lower the security a bit by choosing WPA-PSK (TKIP) or WPA2-
 PSK (AES+TKIP) instead just AES. Stronger encryption requires better 
 coberture so devices can dialogue smoothly.

I just tried as many variations as I could without success.  I'm not 100% sure
I am always matching the router settings with the laptop wicd settings.

Thanks,

Paul



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100715092950.gd22...@mail.ultrasw.com



Re: wicd with WPA2 fails

2010-07-15 Thread Sven Joachim
On 2010-07-15 11:29 +0200, Paul Scott wrote:

 On Thu, Jul 15, 2010 at 08:52:24AM +, Camaleón wrote:
 On Wed, 14 Jul 2010 18:39:56 -0700, Paul Scott wrote:
 
  sid fully updated
  
  wicd connects fine if I turn wireless security on the WRT54G2 router
  off.  When I set the router to WPA2 - AES I get (from wicd.log)
  
  2010/07/14 17:40:41 :: iwconfig eth2
  2010/07/14 17:40:41 :: WPA_CLI RESULT IS SCANNING 
  2010/07/14 17:40:42 :: wpa_supplicant authentication may have failed.
  ^^
 
 (...)
 
 Try starting wp_supplicant in debug mode to make the log more verbose 
 about that error. It seems failing at some point of the authentication.

 wicd calls wpa_supplicant with wext.  I don't see a preferences setting to 
 change 
 to cause more debugging.

It might be better to put away wicd for a moment and invoke
wpa_supplicant directly with the -d switch.  You may have to set the
ssid first with iwconfig(8).

Sven


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87r5j5ozg4@turtle.gmx.de



Re: wicd with WPA2 fails

2010-07-15 Thread Camaleón
On Thu, 15 Jul 2010 02:29:50 -0700, Paul Scott wrote:

 On Thu, Jul 15, 2010 at 08:52:24AM +, Camaleón wrote:

  :: wpa_supplicant authentication may have failed.
  ^^
 
 (...)
 
 Try starting wp_supplicant in debug mode to make the log more verbose
 about that error. It seems failing at some point of the authentication.
 
 wicd calls wpa_supplicant with wext.  I don't see a preferences setting
 to change to cause more debugging.

wpa_supplicant can be run directly. IIRC, -dd modifier switched into 
debug mode. man wpa_supplicant for additional/detailed info on how to 
get this done.
 
 Also, try to lower the security a bit by choosing WPA-PSK (TKIP) or
 WPA2- PSK (AES+TKIP) instead just AES. Stronger encryption requires
 better coberture so devices can dialogue smoothly.
 
 I just tried as many variations as I could without success.  I'm not
 100% sure I am always matching the router settings with the laptop wicd
 settings.

That is an important setting to check. Reviwer your /etc/dbus-1/system.d/
wpa_supplicant.conf or whatever the config file is. AP and 
wpa_supplicant settings must match.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.07.15.09.41...@gmail.com



Re: wicd with WPA2 fails

2010-07-15 Thread Paul Scott
On Thu, Jul 15, 2010 at 11:40:27AM +0200, Sven Joachim wrote:
 On 2010-07-15 11:29 +0200, Paul Scott wrote:
 
  On Thu, Jul 15, 2010 at 08:52:24AM +, Camaleón wrote:
  On Wed, 14 Jul 2010 18:39:56 -0700, Paul Scott wrote:
  
   sid fully updated
   
   wicd connects fine if I turn wireless security on the WRT54G2 router
   off.  When I set the router to WPA2 - AES I get (from wicd.log)
   
   2010/07/14 17:40:41 :: iwconfig eth2
   2010/07/14 17:40:41 :: WPA_CLI RESULT IS SCANNING 
   2010/07/14 17:40:42 :: wpa_supplicant authentication may have failed.
   ^^
  
  (...)
  
  Try starting wp_supplicant in debug mode to make the log more verbose 
  about that error. It seems failing at some point of the authentication.
 
  wicd calls wpa_supplicant with wext.  I don't see a preferences setting to 
  change 
  to cause more debugging.
 
 It might be better to put away wicd for a moment and invoke
 wpa_supplicant directly with the -d switch.  You may have to set the
 ssid first with iwconfig(8).

I have read the man page.  I apparently need a valid wpa_supplicant.conf file.  
The only one 
I can find (/etc/dbus-1/system.d/wpa...) doesn't seem to be valid.  I get lots 
of errors 
about that file when I supply the -D -i and -c parameters.

Thanks,

Paul




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100715101522.ga30...@mail.ultrasw.com



Re: wicd with WPA2 fails

2010-07-15 Thread Sven Joachim
On 2010-07-15 12:15 +0200, Paul Scott wrote:

 On Thu, Jul 15, 2010 at 11:40:27AM +0200, Sven Joachim wrote:
 
 It might be better to put away wicd for a moment and invoke
 wpa_supplicant directly with the -d switch.  You may have to set the
 ssid first with iwconfig(8).

 I have read the man page.  I apparently need a valid wpa_supplicant.conf 
 file.  The only one 
 I can find (/etc/dbus-1/system.d/wpa...) doesn't seem to be valid.  I get 
 lots of errors 
 about that file when I supply the -D -i and -c parameters.

There are several sample configuration files in the
/usr/share/doc/wpasupplicant/examples directory.  The wpa-psk-tkip.conf
file could be a good starting point.

Sven


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87k4oxoxd5@turtle.gmx.de



Re: wicd with WPA2 fails

2010-07-15 Thread Paul Scott
On Thu, Jul 15, 2010 at 12:25:26PM +0200, Sven Joachim wrote:
 On 2010-07-15 12:15 +0200, Paul Scott wrote:
 
  On Thu, Jul 15, 2010 at 11:40:27AM +0200, Sven Joachim wrote:
  
  It might be better to put away wicd for a moment and invoke
  wpa_supplicant directly with the -d switch.  You may have to set the
  ssid first with iwconfig(8).
 
  I have read the man page.  I apparently need a valid wpa_supplicant.conf 
  file.  The only one 
  I can find (/etc/dbus-1/system.d/wpa...) doesn't seem to be valid.  I get 
  lots of errors 
  about that file when I supply the -D -i and -c parameters.
 
 There are several sample configuration files in the
 /usr/share/doc/wpasupplicant/examples directory.  The wpa-psk-tkip.conf
 file could be a good starting point.
 

Thanks.  I'll try that in a few hours.

Paul



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100715102818.gb30...@mail.ultrasw.com



Re: wicd with WPA2 fails

2010-07-15 Thread Liam O'Toole
On 2010-07-15, Paul Scott waterho...@ultrasw.com wrote:
 On Thu, Jul 15, 2010 at 11:40:27AM +0200, Sven Joachim wrote:
SNIP
 It might be better to put away wicd for a moment and invoke
 wpa_supplicant directly with the -d switch.  You may have to set the
 ssid first with iwconfig(8).

 I have read the man page.  I apparently need a valid wpa_supplicant.conf 
 file.  The only one 
 I can find (/etc/dbus-1/system.d/wpa...) doesn't seem to be valid.  I get 
 lots of errors 
 about that file when I supply the -D -i and -c parameters.


I haven't used wicd for a while, but I recall that it writes its own
wpa_supplicant.conf file based on the settings you provide in the UI.
Try looking under /etc/wicd.

-- 
Liam O'Toole
Cork, Ireland



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/slrni3tq2q.66g.liam.p.oto...@dipsy.selfip.org



wicd with WPA2 fails

2010-07-14 Thread Paul Scott

sid fully updated

wicd connects fine if I turn wireless security on the WRT54G2 router 
off.  When I set the router to WPA2 - AES I get (from wicd.log)


2010/07/14 17:40:41 :: iwconfig eth2
2010/07/14 17:40:41 :: WPA_CLI RESULT IS SCANNING
2010/07/14 17:40:42 :: wpa_supplicant authentication may have failed.
2010/07/14 17:40:42 :: connect result is Failed
2010/07/14 17:40:42 :: exiting connection thread
2010/07/14 17:40:43 :: Sending connection attempt result bad_pass
2010/07/14 17:40:43 :: ifconfig eth0
2010/07/14 17:40:43 :: ifconfig eth2
2010/07/14 17:40:43 :: Forced disconnect on
2010/07/14 17:40:43 :: attempting to set hostname with dhclient
2010/07/14 17:40:43 :: using dhcpcd or another supported client may work 
better



TIA for any help,

Paul Scott



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4c3e66ec.7050...@ultrasw.com