Re: [gentoo-user] Network manager for laptop

2008-05-06 Thread Jan Seeger
At Tue, 06 May 2008 13:48:46 +0800,
William Kenworthy wrote:
 
 On Tue, 2008-05-06 at 01:42 -0300, Daniel da Veiga wrote:
  On Mon, May 5, 2008 at 7:12 PM, deface [EMAIL PROTECTED] wrote:
snipped the frustration
 been there, done that ... and gave up.
 
 Write your own scripts and shortcut the frustration.
 
 Keep a directory with a subdirectory for each site.  Have all config
 files needed properly configured and stored there. Lastly, a simple
 script just copies in the required files over the top of the last lot
 and restarts the services.  I have a desktop icon and a GUI (using
 gtkdialog) so I can easily select the correct site.
 
 Ive tried a few like network manager, and also tried to get gentoo's
 networking to do it semi-automaticly to help, but all I ended up with
 was a frustratingly fragile mess.

I have a laptop too, and I always found that the gentoo networking
scripts where fully sufficient for keeeping me on-line. Okay, the
wireless is a bit flaky, but only when connecting. Note: I do not use
network manager.

What exactly are your problems?

Regards,
Jan Seeger
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-06 Thread Daniel da Veiga
On Tue, May 6, 2008 at 3:51 AM, Jan Seeger [EMAIL PROTECTED] wrote:
 At Tue, 06 May 2008 13:48:46 +0800,

 William Kenworthy wrote:
  
   On Tue, 2008-05-06 at 01:42 -0300, Daniel da Veiga wrote:
On Mon, May 5, 2008 at 7:12 PM, deface [EMAIL PROTECTED] wrote:
  snipped the frustration

  been there, done that ... and gave up.
  
   Write your own scripts and shortcut the frustration.
  
   Keep a directory with a subdirectory for each site.  Have all config
   files needed properly configured and stored there. Lastly, a simple
   script just copies in the required files over the top of the last lot
   and restarts the services.  I have a desktop icon and a GUI (using
   gtkdialog) so I can easily select the correct site.
  
   Ive tried a few like network manager, and also tried to get gentoo's
   networking to do it semi-automaticly to help, but all I ended up with
   was a frustratingly fragile mess.

  I have a laptop too, and I always found that the gentoo networking
  scripts where fully sufficient for keeeping me on-line. Okay, the
  wireless is a bit flaky, but only when connecting. Note: I do not use
  network manager.

  What exactly are your problems?


Gentoo networking configuration is OK. It works for the most part, but
you just need something were you can quickly type a password for a
protected WPA network and it connects. Yes, you CAN edit the files by
hand and provide the information, but that just makes your net
configuration file a mess. I ended up with a pretty mess of over a
dozen networks, most of them I used only once.

I'm all for the console and editing configuration files, but a laptop
or notebook is meant to be a fast tool to be connected everywhere,
isnt it?


Right now I'm switching to XFCE and I'll try more stuff, like
pynetworkmanager...

-- 
Daniel da Veiga
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-06 Thread Jan Seeger
At Tue, 6 May 2008 12:42:15 -0300,
Daniel da Veiga wrote:
snip, snip
 Gentoo networking configuration is OK. It works for the most part, but
 you just need something were you can quickly type a password for a
 protected WPA network and it connects. Yes, you CAN edit the files by
 hand and provide the information, but that just makes your net
 configuration file a mess. I ended up with a pretty mess of over a
 dozen networks, most of them I used only once.
 
 I'm all for the console and editing configuration files, but a laptop
 or notebook is meant to be a fast tool to be connected everywhere,
 isnt it?

Yeah, that's true. I still bite the bullet and edit
wpa_supplicant.conf by hand. Add it once, and from then on, it works
pretty automatically. However, when you connect to a *lot* of
networks, I can imagine that this quickly gets ugly. Maybe write a
script which uses something like sqlite to store your configuration?

Alternatively, use the emacs outline mode to fold the lines^^

Regards,
Jan
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-05 Thread Daniel da Veiga
On Sat, May 3, 2008 at 1:09 PM, b.n. [EMAIL PROTECTED] wrote:
 Daniel da Veiga ha scritto:

  On Fri, May 2, 2008 at 9:49 PM, b.n. [EMAIL PROTECTED] wrote:
 
   Daniel da Veiga ha scritto:
  
  
Nah, I guess its something related to my card (and driver) and
   
   wpa_supplicant.
You told that wicd somehow works better. Seems more related to
   NetworkManager, then...
  
  
 
  You can say so, but WICD and NetworkManager are completely different
  programs, they both call wpa_supplicant, but in completely different
  ways, as far as I can see. NM tries to use DBUS to talk to supplicant,
  while WICD launches supplicant directly, by pointing it to a generated
  config file.
 
  But yes, I suppose NM is broken in the sense it can't talk to
  wpa_supplicant on my laptop.
 

  I know almost nothing about dbus, but have you checked that dbus works for
 other programs?


I tested it with other apps, logging stuff and all. All parts working,
including wpa_supplicant, iwconfig and dhclient. All stuff that should
make NM magic happes, but still nothing. They all work OK, as manually
I can connect to each and every wireless I tried (WPA, WEP, open).

-- 
Daniel da Veiga
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-05 Thread deface

Daniel da Veiga wrote:

I've been struggling with network managing in my laptop for some time
now. There's no decent way to keep it on config files. I connect to a
LOT of completely different wired and wireless networks.

I'm using Gnome, but I have all KDE libraries as dependencies for some
stuff. The machine is an Asus EEE 701 with an Atheros card. I'm using
ndiswrapper trying to avoid patching the madwifi drivers, waiting for
the official commit. My first try was NetworkManager, beautiful tool,
allowed me to manage my wired and open wireless connections fine, but
once I need WPA for wireless at the University, it failed on me. It
seems it can't talk to wpa_supplicant the right way. One possible fix
would be downgrade to version 0.5.4 of wpa_supplicant, but its not in
portage anymore, so I quit.

Next I tried some gtk stuff, scripting stuff, gosh, so many.

End up with WICD, wich for the most part works fine. I didn't have the
time to check why the heck it tries to connect to None more often
then it tries with the SSID Im telling it to (maybe some
configuration file lost in the way), but anyway, change driver from
ndiswrapper or wext and it eventually works.

What are you guys using? Im accepting suggestions!

  
I haven't read the rest of the replies, but have you tried going UP, and 
not DOWN? meaning a CVS version of NM? This is a beautiful application, 
which has filled many much needed holes in the world of linux and 
wireless. NM is under rapid development and many changes are commited. 
(if you've gone up, sorry .. like i said; haven't read the rest of the 
replies on this one.)



deface
--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-05 Thread Daniel da Veiga
On Mon, May 5, 2008 at 7:12 PM, deface [EMAIL PROTECTED] wrote:

 Daniel da Veiga wrote:

  I've been struggling with network managing in my laptop for some time
  now. There's no decent way to keep it on config files. I connect to a
  LOT of completely different wired and wireless networks.
 
  I'm using Gnome, but I have all KDE libraries as dependencies for some
  stuff. The machine is an Asus EEE 701 with an Atheros card. I'm using
  ndiswrapper trying to avoid patching the madwifi drivers, waiting for
  the official commit. My first try was NetworkManager, beautiful tool,
  allowed me to manage my wired and open wireless connections fine, but
  once I need WPA for wireless at the University, it failed on me. It
  seems it can't talk to wpa_supplicant the right way. One possible fix
  would be downgrade to version 0.5.4 of wpa_supplicant, but its not in
  portage anymore, so I quit.
 
  Next I tried some gtk stuff, scripting stuff, gosh, so many.
 
  End up with WICD, wich for the most part works fine. I didn't have the
  time to check why the heck it tries to connect to None more often
  then it tries with the SSID Im telling it to (maybe some
  configuration file lost in the way), but anyway, change driver from
  ndiswrapper or wext and it eventually works.
 
  What are you guys using? Im accepting suggestions!
 
 
 
  I haven't read the rest of the replies, but have you tried going UP, and
 not DOWN? meaning a CVS version of NM? This is a beautiful application,
 which has filled many much needed holes in the world of linux and wireless.
 NM is under rapid development and many changes are commited. (if you've gone
 up, sorry .. like i said; haven't read the rest of the replies on this one.)



I have run both stable and testing versions on portage. I even tried
compiling from source, and that failed, can't recall the reason.

I'm still looking for a stable network manager app. I'm currently
switching from Gnome to XFCE, so I'm gonna try some other apps, like
pynetworkmanager...

-- 
Daniel da Veiga
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-05 Thread W.Kenworthy
On Tue, 2008-05-06 at 01:42 -0300, Daniel da Veiga wrote:
 On Mon, May 5, 2008 at 7:12 PM, deface [EMAIL PROTECTED] wrote:
 
  Daniel da Veiga wrote:
 
   I've been struggling with network managing in my laptop for some time
   now. There's no decent way to keep it on config files. I connect to a
   LOT of completely different wired and wireless networks.
  

been there, done that ... and gave up.

Write your own scripts and shortcut the frustration.

Keep a directory with a subdirectory for each site.  Have all config
files needed properly configured and stored there. Lastly, a simple
script just copies in the required files over the top of the last lot
and restarts the services.  I have a desktop icon and a GUI (using
gtkdialog) so I can easily select the correct site.

Ive tried a few like network manager, and also tried to get gentoo's
networking to do it semi-automaticly to help, but all I ended up with
was a frustratingly fragile mess.

At least now it works reliably, and saves me lots of time as well.

BillK

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-03 Thread b.n.

Daniel da Veiga ha scritto:

On Fri, May 2, 2008 at 9:49 PM, b.n. [EMAIL PROTECTED] wrote:

Daniel da Veiga ha scritto:


Nah, I guess its something related to my card (and driver) and

wpa_supplicant.
  You told that wicd somehow works better. Seems more related to
NetworkManager, then...



You can say so, but WICD and NetworkManager are completely different
programs, they both call wpa_supplicant, but in completely different
ways, as far as I can see. NM tries to use DBUS to talk to supplicant,
while WICD launches supplicant directly, by pointing it to a generated
config file.

But yes, I suppose NM is broken in the sense it can't talk to
wpa_supplicant on my laptop.


I know almost nothing about dbus, but have you checked that dbus works 
for other programs?


m.


--
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Network manager for laptop

2008-05-02 Thread Daniel da Veiga
I've been struggling with network managing in my laptop for some time
now. There's no decent way to keep it on config files. I connect to a
LOT of completely different wired and wireless networks.

I'm using Gnome, but I have all KDE libraries as dependencies for some
stuff. The machine is an Asus EEE 701 with an Atheros card. I'm using
ndiswrapper trying to avoid patching the madwifi drivers, waiting for
the official commit. My first try was NetworkManager, beautiful tool,
allowed me to manage my wired and open wireless connections fine, but
once I need WPA for wireless at the University, it failed on me. It
seems it can't talk to wpa_supplicant the right way. One possible fix
would be downgrade to version 0.5.4 of wpa_supplicant, but its not in
portage anymore, so I quit.

Next I tried some gtk stuff, scripting stuff, gosh, so many.

End up with WICD, wich for the most part works fine. I didn't have the
time to check why the heck it tries to connect to None more often
then it tries with the SSID Im telling it to (maybe some
configuration file lost in the way), but anyway, change driver from
ndiswrapper or wext and it eventually works.

What are you guys using? Im accepting suggestions!

-- 
Daniel da Veiga
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-02 Thread Albert Hopkins
On Fri, 2008-05-02 at 11:41 -0300, Daniel da Veiga wrote:
 I've been struggling with network managing in my laptop for some time
 now. There's no decent way to keep it on config files. I connect to a
 LOT of completely different wired and wireless networks.
 
 I'm using Gnome, but I have all KDE libraries as dependencies for some
 stuff. The machine is an Asus EEE 701 with an Atheros card. I'm using
 ndiswrapper trying to avoid patching the madwifi drivers, waiting for
 the official commit. My first try was NetworkManager, beautiful tool,
 allowed me to manage my wired and open wireless connections fine, but
 once I need WPA for wireless at the University, it failed on me. It
 seems it can't talk to wpa_supplicant the right way. One possible fix
 would be downgrade to version 0.5.4 of wpa_supplicant, but its not in
 portage anymore, so I quit.

Where does it say that the NetworkManager needs a downgraded version of
wpa_supplicant?  The reason that I ask is that I use NetworkManager on
my laptop and it's been great.. except for at work where we use
Enterprise WPA or whatever it's called.  I haven't been able to log in,
but a workmate of mine installed a fresh copy of Hardy Heron and it
worked the first time.  I haven't really had the time/interest to figure
out why it wasn't working on my Gentoo laptop.

Thanks,
-a


-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-02 Thread Daniel da Veiga
On Fri, May 2, 2008 at 11:47 AM, Albert Hopkins [EMAIL PROTECTED] wrote:
 On Fri, 2008-05-02 at 11:41 -0300, Daniel da Veiga wrote:
   I've been struggling with network managing in my laptop for some time
   now. There's no decent way to keep it on config files. I connect to a
   LOT of completely different wired and wireless networks.
  
   I'm using Gnome, but I have all KDE libraries as dependencies for some
   stuff. The machine is an Asus EEE 701 with an Atheros card. I'm using
   ndiswrapper trying to avoid patching the madwifi drivers, waiting for
   the official commit. My first try was NetworkManager, beautiful tool,
   allowed me to manage my wired and open wireless connections fine, but
   once I need WPA for wireless at the University, it failed on me. It
   seems it can't talk to wpa_supplicant the right way. One possible fix
   would be downgrade to version 0.5.4 of wpa_supplicant, but its not in
   portage anymore, so I quit.

  Where does it say that the NetworkManager needs a downgraded version of
  wpa_supplicant?  The reason that I ask is that I use NetworkManager on
  my laptop and it's been great.. except for at work where we use
  Enterprise WPA or whatever it's called.  I haven't been able to log in,
  but a workmate of mine installed a fresh copy of Hardy Heron and it
  worked the first time.  I haven't really had the time/interest to figure
  out why it wasn't working on my Gentoo laptop.


http://www.linuxquestions.org/questions/linux-wireless-networking-41/ath0wireless-couldnt-connect-to-the-supplicant.-511815/

But again, its one of the MANY threads, posts and questions about
NetworkManager and WPA around the web. The fact is, I found many
people with this problem, tried all their solutions but still no
game. I get the infamous couldn't connect to the supplicant syslog
error. Believe me, I spent a LOT of time trying to figure this out...

WICD had the None problem (must have something to do with the
00:00:00:00:00 failed authentication in wpa_supplicant (wich is
something I must research too), that makes it annoying, but not
impossible to use it.

Any more suggestions?

-- 
Daniel da Veiga
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-02 Thread b.n.

Daniel da Veiga ha scritto:


http://www.linuxquestions.org/questions/linux-wireless-networking-41/ath0wireless-couldnt-connect-to-the-supplicant.-511815/

But again, its one of the MANY threads, posts and questions about
NetworkManager and WPA around the web. The fact is, I found many
people with this problem, tried all their solutions but still no
game. I get the infamous couldn't connect to the supplicant syslog
error. Believe me, I spent a LOT of time trying to figure this out...

WICD had the None problem (must have something to do with the
00:00:00:00:00 failed authentication in wpa_supplicant (wich is
something I must research too), that makes it annoying, but not
impossible to use it.

Any more suggestions?


I have a Macbook Pro laptop with Gentoo, with WPA working fine with 
NetworkManager (Madwifi drivers).


I now do not have time to check the full configs. However I remember 
that mixing wpa_supplicant configuration and NetworkManager was BAD. I 
kept a very confused diary of my Macbook Gentoo install, the relevant 
part is:


ok, found problem. using the conf.d/net and wpa_supplicant.conf WITH
NetworkManager is just problems.
so I am trying to use only NetworkManager.

...and it's what I'm currently doing. I guess NetworkManager takes care 
of wpa_supplicant.


Then, madwifi drivers for that card are a bit flaky, but that's another 
story...


Tell me what info you need, I may try to help you.

m.
--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-02 Thread Albert Hopkins
Well, I tried downgrading to version 0.5.4 of wpa_supplicant but it
didn't help with the situation.  The error logs show a time-out
communicating with the AP.

-a

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-02 Thread Daniel da Veiga
On Fri, May 2, 2008 at 4:22 PM, b.n. [EMAIL PROTECTED] wrote:
 Daniel da Veiga ha scritto:
 
 http://www.linuxquestions.org/questions/linux-wireless-networking-41/ath0wireless-couldnt-connect-to-the-supplicant.-511815/
 
  But again, its one of the MANY threads, posts and questions about
  NetworkManager and WPA around the web. The fact is, I found many
  people with this problem, tried all their solutions but still no
  game. I get the infamous couldn't connect to the supplicant syslog
  error. Believe me, I spent a LOT of time trying to figure this out...
 
  WICD had the None problem (must have something to do with the
  00:00:00:00:00 failed authentication in wpa_supplicant (wich is
  something I must research too), that makes it annoying, but not
  impossible to use it.
 
  Any more suggestions?
 

  I have a Macbook Pro laptop with Gentoo, with WPA working fine with
 NetworkManager (Madwifi drivers).

  I now do not have time to check the full configs. However I remember that
 mixing wpa_supplicant configuration and NetworkManager was BAD. I kept a
 very confused diary of my Macbook Gentoo install, the relevant part is:

  ok, found problem. using the conf.d/net and wpa_supplicant.conf WITH
  NetworkManager is just problems.
  so I am trying to use only NetworkManager.

  ...and it's what I'm currently doing. I guess NetworkManager takes care of
 wpa_supplicant.

  Then, madwifi drivers for that card are a bit flaky, but that's another
 story...

  Tell me what info you need, I may try to help you.


I'll try removing the config for the whole thing and see how it works,
but NetworkManager has problems launching wpa_supplicant (or
controlling it at least) using DBUS, and that has not been solved yet,
so I won't bet on it. I'm not with my EEE right now, so, as soon as I
get home...

All I need is to know if you can actually use WPA, store the keys,
reboot, and try again, with the same SSID, it fails for me all the
time. (and var log messages says couldn't connect to the
supplicant).

-- 
Daniel da Veiga
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-02 Thread b.n.

Daniel da Veiga ha scritto:

I'll try removing the config for the whole thing and see how it works,
but NetworkManager has problems launching wpa_supplicant (or
controlling it at least) using DBUS, and that has not been solved yet,
so I won't bet on it. I'm not with my EEE right now, so, as soon as I
get home...


What happens? what error messages?


All I need is to know if you can actually use WPA, store the keys,
reboot, and try again, with the same SSID, it fails for me all the
time. (and var log messages says couldn't connect to the
supplicant).


I think yes, since I use it everyday with my WPA router at home. I must 
confess that I didn't experience such difficulties. Hope it's not a new 
bug waiting to bite me...


m.
--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-02 Thread Daniel da Veiga
On Fri, May 2, 2008 at 6:48 PM, b.n. [EMAIL PROTECTED] wrote:
 Daniel da Veiga ha scritto:

  I'll try removing the config for the whole thing and see how it works,
  but NetworkManager has problems launching wpa_supplicant (or
  controlling it at least) using DBUS, and that has not been solved yet,
  so I won't bet on it. I'm not with my EEE right now, so, as soon as I
  get home...
 

  What happens? what error messages?


Nothing happens, when I try connecting, it asks for my key, I submit
it, and then it dies. /var/log/messages says Couldn't connect to the
supplicant. It appears to be a error regarding wpa_supplicant and
DBUS.



  All I need is to know if you can actually use WPA, store the keys,
  reboot, and try again, with the same SSID, it fails for me all the
  time. (and var log messages says couldn't connect to the
  supplicant).
 

  I think yes, since I use it everyday with my WPA router at home. I must
 confess that I didn't experience such difficulties. Hope it's not a new bug
 waiting to bite me...



Nah, I guess its something related to my card (and driver) and wpa_supplicant.


-- 
Daniel da Veiga
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-02 Thread b.n.

Daniel da Veiga ha scritto:

Nah, I guess its something related to my card (and driver) and wpa_supplicant.


 You told that wicd somehow works better. Seems more related to 
NetworkManager, then...


m.
--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Network manager for laptop

2008-05-02 Thread Daniel da Veiga
On Fri, May 2, 2008 at 9:49 PM, b.n. [EMAIL PROTECTED] wrote:
 Daniel da Veiga ha scritto:

  Nah, I guess its something related to my card (and driver) and
 wpa_supplicant.
 

   You told that wicd somehow works better. Seems more related to
 NetworkManager, then...


You can say so, but WICD and NetworkManager are completely different
programs, they both call wpa_supplicant, but in completely different
ways, as far as I can see. NM tries to use DBUS to talk to supplicant,
while WICD launches supplicant directly, by pointing it to a generated
config file.

But yes, I suppose NM is broken in the sense it can't talk to
wpa_supplicant on my laptop.

-- 
Daniel da Veiga
-- 
gentoo-user@lists.gentoo.org mailing list