Re: Is there any kind of network manager?

2008-11-24 Thread Arigead
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joel Newkirk wrote:
> On Sat, 22 Nov 2008 02:58:48 +0100, "Marco Trevisan (Treviño)"
> <[EMAIL PROTECTED]> wrote:
>> Alastair Johnson wrote:
>>> Or you could follow 
>>>   Joel Newkirk's simple lightweight configuration described at 
>>> http://jthinks.com/better-freerunner-networking
>> About this... Have you tried it?
>> Does it fix the most common network issues?
>>
>> Thanks...
> 
> It's more of an 'anti-network-manager' - it's strictly intended as sane
> defaults that let networking run more smoothly when various interfaces come
> and go.  GPRS configuration/activation/deactivation is outside its scope,
> same for WiFi. It utilizes resolvconf, and supports local DNS caching if
> desired.  It consists of a few alterations and additions to ppp, udhcpc,
> resolvconf, udev and general network config.  Manual network config needs
> to work with resolvconf and observe appropriate route metrics, nothing
> more.  (wifi 20, USB 30, GPRS 40)
> 
> What it's intended to do:
> 
> Prioritize default routes and DNS so that traffic will always use WiFi if
> it's available, USBnet if there's no wifi but we're tethered, and gprs if
> there's no usb.  Doesn't matter if more than one interface is up, they
> don't change each other's DNS or gateway settings or anything.  (It also
> should deal with usb-attached ethernet or wifi, prioritized between onboard
> wifi and usb, but it knows nothing of VPN or Bluetooth - enfolding
> Bluetooth and 3G/other usb-based devices is pretty simple, VPN potentially
> less so)
> 
> 
> Frameworkd already offers gprs up/down support, wifi is on the schedule. 
> Once network status/control is more solid under frameworkd I suspect a
> network manager may be rather straightforward to code.  Edje GUI with a
> fairly thin middle layer talking to dbus.  Until then, I've installed my
> netfix-j2.tar.gz fixes (plus resolvconf when not preinstalled - the tarball
> includes missing files from resolvconf) on 2008.x, FSO, Raster, and SHR,
> set up a desktop icon on each to toggle GPRS, another to toggle wifi
> (ifup/ifdown in a simple script, with my prewritten wpa_supplicant.conf
> that talks to my home WPA, work WPA, jobsites, and open public wifi in that
> priority) and it 'just works'.
> 
> My opinion is that the only network manager-ish features we actually need
> on the FreeRunner are status information, configuration and toggling of
> GPRS and VPNs, and as full-featured wifi detecting/tracking/remembering as
> we can get.  (I want to be able to query a list of previously-seen usable
> wifi within 1/4 mile, for instance)  I tend to think purpose-built instead
> of off-the-shelf for this.
> 
> j

Been thinking about this subject recently as I started messing with GPRS
 connections on FSO. Network management on the FR is one thing, but
adding a connected device is a mental mess, (for me anyhow). If I'm
connected, via a USB cable, to an eeePC then sometimes I want the eeePC
to be my router and forward from the FR to the world via its Network
connection and sometimes I want to use the FR as a Router and forward
traffic from the eeePC. Have to reconfigure both devices when you switch
between the two modes of opperation. Not sure how you'd automate this
without creating a security issue.

I shall for the time being minimise my messing ;-)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJKtGKXlbjSJ5n4BARAiXsAKCyw2eVJn2n3GHwTk3viHgS9NGILgCeNdFz
H4RYCO1YPAG2yUbuKld3zJQ=
=gxmN
-END PGP SIGNATURE-

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Is there any kind of network manager?

2008-11-21 Thread Joel Newkirk
On Sat, 22 Nov 2008 02:58:48 +0100, "Marco Trevisan (Treviño)"
<[EMAIL PROTECTED]> wrote:
> Alastair Johnson wrote:
>> Or you could follow 
>>   Joel Newkirk's simple lightweight configuration described at 
>> http://jthinks.com/better-freerunner-networking
> 
> About this... Have you tried it?
> Does it fix the most common network issues?
> 
> Thanks...

It's more of an 'anti-network-manager' - it's strictly intended as sane
defaults that let networking run more smoothly when various interfaces come
and go.  GPRS configuration/activation/deactivation is outside its scope,
same for WiFi. It utilizes resolvconf, and supports local DNS caching if
desired.  It consists of a few alterations and additions to ppp, udhcpc,
resolvconf, udev and general network config.  Manual network config needs
to work with resolvconf and observe appropriate route metrics, nothing
more.  (wifi 20, USB 30, GPRS 40)

What it's intended to do:

Prioritize default routes and DNS so that traffic will always use WiFi if
it's available, USBnet if there's no wifi but we're tethered, and gprs if
there's no usb.  Doesn't matter if more than one interface is up, they
don't change each other's DNS or gateway settings or anything.  (It also
should deal with usb-attached ethernet or wifi, prioritized between onboard
wifi and usb, but it knows nothing of VPN or Bluetooth - enfolding
Bluetooth and 3G/other usb-based devices is pretty simple, VPN potentially
less so)


Frameworkd already offers gprs up/down support, wifi is on the schedule. 
Once network status/control is more solid under frameworkd I suspect a
network manager may be rather straightforward to code.  Edje GUI with a
fairly thin middle layer talking to dbus.  Until then, I've installed my
netfix-j2.tar.gz fixes (plus resolvconf when not preinstalled - the tarball
includes missing files from resolvconf) on 2008.x, FSO, Raster, and SHR,
set up a desktop icon on each to toggle GPRS, another to toggle wifi
(ifup/ifdown in a simple script, with my prewritten wpa_supplicant.conf
that talks to my home WPA, work WPA, jobsites, and open public wifi in that
priority) and it 'just works'.

My opinion is that the only network manager-ish features we actually need
on the FreeRunner are status information, configuration and toggling of
GPRS and VPNs, and as full-featured wifi detecting/tracking/remembering as
we can get.  (I want to be able to query a list of previously-seen usable
wifi within 1/4 mile, for instance)  I tend to think purpose-built instead
of off-the-shelf for this.

j


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Is there any kind of network manager?

2008-11-21 Thread Marco Trevisan (Treviño)
Alastair Johnson wrote:
> Or you could follow 
>   Joel Newkirk's simple lightweight configuration described at 
> http://jthinks.com/better-freerunner-networking

About this... Have you tried it?
Does it fix the most common network issues?

Thanks...

-- 
Treviño's World - Life and Linux
http://www.3v1n0.net/


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Is there any kind of network manager?

2008-11-21 Thread Alastair Johnson
Leonti Bielski wrote:
> Hi!
> As in the subject - is there any connection manager available for
> Freerunner to switch and manage between WiFi, GPRS and usb?
> I've seen connection manager in Illume, but it seems to be empty. What
> is left to implement to get it working?
> Are there any alternatives?
> It's possible to connect to WiFi with command line or mofi, to GPRS
> with simple script, but maybe there is something better already?
> Are there any particular plans for network management?

Did you have a particular distro in mind? Qtopia has GUI network 
management. Debian and Gentoo have their usual options. Android would 
have its GUI, but not all of the networking is currently working. The 
connection manager in 2008.x was going to use connman as a lighter 
version of NetworkManager, but it turned out to have too many incomplete 
parts as yet. FSO and SHR don't yet have anything as networking has only 
just made it onto the roadmap.

You can always use NetworkManager, though AFAIK nobody has done a GUI 
for it that suits the small screen and lack of tray. Or you could follow 
  Joel Newkirk's simple lightweight configuration described at 
http://jthinks.com/better-freerunner-networking

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Is there any kind of network manager?

2008-11-20 Thread Leonti Bielski
Hi!
As in the subject - is there any connection manager available for
Freerunner to switch and manage between WiFi, GPRS and usb?
I've seen connection manager in Illume, but it seems to be empty. What
is left to implement to get it working?
Are there any alternatives?
It's possible to connect to WiFi with command line or mofi, to GPRS
with simple script, but maybe there is something better already?
Are there any particular plans for network management?

Leonti

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Network Manager

2008-04-03 Thread Alex Zhang

Hi Mickey,

Uh Oh... we have half a dozen of MIPS machines in OpenEmbedded. Building
all that stuff could have been done by:

MACHINE = "mtx-1"
DISTRO = "openmoko"

bitbake networkmanager
  


Thanks a million for your tip, I will have a try.  :)

Cheers,
Alex

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Network Manager

2008-04-03 Thread Michael 'Mickey' Lauer

Am Dienstag, den 01.04.2008, 22:07 +0800 schrieb Alex Zhang:
> > That is the point where a good build system comes into play.
> > OpenEmbedded handles this for us. I hope you don't build all the stuff
> > for your device by hand.
> >
> >   
> 
> Yes, I did it by hand, because my device is based on MIPS. I have no 
> idea how to setup OE to support MIPS. :-[
> I wrote a little Makefile to build GLib, DBus, HAL, UDEV, Libnl ... NM, 
> it works just fine for me. :)

Uh Oh... we have half a dozen of MIPS machines in OpenEmbedded. Building
all that stuff could have been done by:

MACHINE = "mtx-1"
DISTRO = "openmoko"

bitbake networkmanager

:M:


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Network Manager

2008-04-02 Thread Stefan Schmidt
Hello.

Sorry for the delay.

On Tue, 2008-04-01 at 22:07, Alex Zhang wrote:
>
>
> Yes, I did it by hand, because my device is based on MIPS. I have no  
> idea how to setup OE to support MIPS. :-[
> I wrote a little Makefile to build GLib, DBus, HAL, UDEV, Libnl ... NM,  
> it works just fine for me. :)

That is something that you can of course always to. You just have to
look at the tradeoff. What time it costs you to setup OE for MIPS and
what kind of hassle a self hacked solution can bring over the time.

>>> In addition, though NM-0.7 has a clear framework, but it's not ready ATM :(
>>> 
>>
>> Well, have you tested it at least? I'm using SVN rev 3202 of the NM
>> daemon here for some months now. 
>
> I run SVN r3506 or NM-0.6.5 on my device. They are NOT work so good as  
> my expected, maybe I miss something.

Well if you only try 0.6.x I would recommend releases and not svn
versions. 0.7 is totally different and so not really compareable to
0.6.x

>> It allows me to connect to wired
>> ethernet, open wifi, WEP wifi, WPA wifi and WPA2 wifi. It is not SVN
>> HEAD but runs pretty stable. 
>
> You mean on your PC or GTA02?

PC

>> Of course I'm also waiting for a 0.7
>> release, but having all the API changes in mind, coding against 0.6.6
>> makes no sense.
>>
>>   
>>> Anyway, glad to see you're starting such project, Hope can share some 
>>>  idea with you :)


Let me know if you have something special in mind.

>> So if your device uses EFL enlazar could be interesting for you. Or
>> better e_nm could be interesting. If you don't you EFL, enlazar gives
>> you nothing extra.
>>   
> Sorry, What's EFL & e_nm?

EFL == Enlightenment Foundation Libraries (Evas, Edje, ETK, EWL,
etc..)

e_nm is a convience library for the dbus calls to NM. It's part of
e_dbus. You can think about it like what is libnm-glib for GTK is e_nm
for EFL.

regards
Stefan Schmidt


signature.asc
Description: Digital signature
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Network Manager

2008-04-01 Thread Andy Green

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:

| And for business needs, a VPN manager would be very nice (OpenVPN or
| OpenSWAN IPSEC based).

This would indeed be very useful, not just for business either: it
allows safe use of open WLAN without possibility of snooping by the AP
owner or anyone else monitoring.

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkfyUOUACgkQOjLpvpq7dMqv4gCfQmdDXRu8tO6WPW1usMTYF10p
tvgAn0vAQSPar89XunmUqEYNHnP/wOMd
=Ppci
-END PGP SIGNATURE-

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Network Manager

2008-04-01 Thread Alex Zhang

Hi Stefan,

Long time no see. :)
I think it's easy to develop a daemon talking with NM to manage the  
networks. But most important thing is to merge NM into our devices,  
because NM depends on many packages like: libnl, hal, udev, dhclient,  
wpa_supplicant ...



That is the point where a good build system comes into play.
OpenEmbedded handles this for us. I hope you don't build all the stuff
for your device by hand.

  


Yes, I did it by hand, because my device is based on MIPS. I have no 
idea how to setup OE to support MIPS. :-[
I wrote a little Makefile to build GLib, DBus, HAL, UDEV, Libnl ... NM, 
it works just fine for me. :)

In addition, though NM-0.7 has a clear framework, but it's not ready ATM :(



Well, have you tested it at least? I'm using SVN rev 3202 of the NM
daemon here for some months now. 


I run SVN r3506 or NM-0.6.5 on my device. They are NOT work so good as 
my expected, maybe I miss something.

It allows me to connect to wired
ethernet, open wifi, WEP wifi, WPA wifi and WPA2 wifi. It is not SVN
HEAD but runs pretty stable. 


You mean on your PC or GTA02?

Of course I'm also waiting for a 0.7
release, but having all the API changes in mind, coding against 0.6.6
makes no sense.

  
Anyway, glad to see you're starting such project, Hope can share some  
idea with you :)



To elaborate a bit more on enlazar. It is not a daemon. It is an UI
for NM using EFL written against a given product spec. The major work
goes into e_nm, a convenience library inside e_dbus.

There are also more ideas how to improve NM itself on mobile
devices. For example keep the wifi connection down most of the time
and react on "network requests" of applications. Like pppd dial on
demand. But that are just ideas right now.
  


Yes, it needs many effort to improve NM for embedded device.

So if your device uses EFL enlazar could be interesting for you. Or
better e_nm could be interesting. If you don't you EFL, enlazar gives
you nothing extra.
  

Sorry, What's EFL & e_nm?

Thanks so much for your comments!
Alex

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Network Manager

2008-04-01 Thread Stefan Schmidt
On Mon, 2008-03-31 at 20:54, Alex Zhang wrote:
> Alexandre Ghisoli wrote:
>> Le lundi 31 mars 2008 à 11:30 +0800, Alex Zhang a écrit :
>>   
>>
>> An feature that would be nice is roaming. Imagine you are using WiFi at
>> home and you are leaving the WiFi range.
>> A warning box could tell you will loose your connection and then open a
>> GMS (GPRS ) connexion to keep it connected.

From the user experience I would avoid a popup and just to the
roaming. But that is detail.

>> And for business needs, a VPN manager would be very nice (OpenVPN or
>> OpenSWAN IPSEC based).

Once the VPN plugin stuff from 0.6.6 is ported to 0.7 that should work
well. Of course you would need to reconsider the UI, but most of the
work is inside the NM daemon anyway.

> Cool! I like such ideas. If use NM as backend, it's not so hard to  
> support these features. :)

If you like to speedup those efforts you can always help upstream to
get it in place.

regards
Stefan Schmidt


signature.asc
Description: Digital signature
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Network Manager

2008-04-01 Thread Stefan Schmidt
Hello.

On Mon, 2008-03-31 at 14:06, Alex Zhang wrote:
>>
>> The project is http://projects.openmoko.org/projects/enlazar/
>
> I think it's easy to develop a daemon talking with NM to manage the  
> networks. But most important thing is to merge NM into our devices,  
> because NM depends on many packages like: libnl, hal, udev, dhclient,  
> wpa_supplicant ...

That is the point where a good build system comes into play.
OpenEmbedded handles this for us. I hope you don't build all the stuff
for your device by hand.

> In addition, though NM-0.7 has a clear framework, but it's not ready ATM :(

Well, have you tested it at least? I'm using SVN rev 3202 of the NM
daemon here for some months now. It allows me to connect to wired
ethernet, open wifi, WEP wifi, WPA wifi and WPA2 wifi. It is not SVN
HEAD but runs pretty stable. Of course I'm also waiting for a 0.7
release, but having all the API changes in mind, coding against 0.6.6
makes no sense.

> Anyway, glad to see you're starting such project, Hope can share some  
> idea with you :)

To elaborate a bit more on enlazar. It is not a daemon. It is an UI
for NM using EFL written against a given product spec. The major work
goes into e_nm, a convenience library inside e_dbus.

There are also more ideas how to improve NM itself on mobile
devices. For example keep the wifi connection down most of the time
and react on "network requests" of applications. Like pppd dial on
demand. But that are just ideas right now.

So if your device uses EFL enlazar could be interesting for you. Or
better e_nm could be interesting. If you don't you EFL, enlazar gives
you nothing extra.

regards
Stefan Schmidt


signature.asc
Description: Digital signature
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Network Manager

2008-03-31 Thread Alexandre Ghisoli

Le lundi 31 mars 2008 à 11:30 +0800, Alex Zhang a écrit :
> Hi All,
> 
> As we know, there are many ways to access Internet in GTA02:
>   - wired:usbnet
>   - wireless:wifi, bluetooth
>   - GSM
> 
> Is there any daemon or framework OM uses to manage these networks as 
> NetworkManager on PC right now?
> 
> We are developing a portable media device with usbnet & wifi support, I 
> am planning to use NM-0.7 or to develop a daemon for managing the networks.
> 
> Any idea or comments?

Sure, it's nice to ear from that kind of project.

An feature that would be nice is roaming. Imagine you are using WiFi at
home and you are leaving the WiFi range.
A warning box could tell you will loose your connection and then open a
GMS (GPRS ) connexion to keep it connected.

And for business needs, a VPN manager would be very nice (OpenVPN or
OpenSWAN IPSEC based).

Thanks

-- 
Alexandre


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Network Manager

2008-03-30 Thread Alex Zhang

Hi Tick,


In fact we have a project doing such thing, and we are very welcome 
you join us. :D


Cool! Will be great to share experience with you.

The project is http://projects.openmoko.org/projects/enlazar/


I think it's easy to develop a daemon talking with NM to manage the 
networks. But most important thing is to merge NM into our devices, 
because NM depends on many packages like: libnl, hal, udev, dhclient, 
wpa_supplicant ...

In addition, though NM-0.7 has a clear framework, but it's not ready ATM :(

Anyway, glad to see you're starting such project, Hope can share some 
idea with you :)


Cheers,
Alex

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Network Manager

2008-03-30 Thread Tick

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Alex,
~It's great to hear you want to use NM-0.7 to develop a daemon for 
managing the network.
In fact we have a project doing such thing, and we are very welcome you 
join us. :D

The project is http://projects.openmoko.org/projects/enlazar/
You may contact with Stefan with the details.

Cheers,
Tick

Alex Zhang 提到:
| Hi All,
|
| As we know, there are many ways to access Internet in GTA02:
|  - wired:usbnet
|  - wireless:wifi, bluetooth
|  - GSM
|
| Is there any daemon or framework OM uses to manage these networks as 
NetworkManager on PC right now?

|
| We are developing a portable media device with usbnet & wifi support, 
I am planning to use NM-0.7 or to develop a daemon for managing the 
networks.

|
| Any idea or comments?
|
| Alex
|
| ___
| Openmoko community mailing list
| community@lists.openmoko.org
| http://lists.openmoko.org/mailman/listinfo/community

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH8GF9PNWONWpVfqoRAjbeAKCHtnr5tRWBK67W7ibBXyix4TAJJwCggJnF
flbIACM+dThgqMl+gzunXRc=
=YP7R
-END PGP SIGNATURE-


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Network Manager

2008-03-30 Thread Alex Zhang

Hi All,

As we know, there are many ways to access Internet in GTA02:
 - wired:usbnet
 - wireless:wifi, bluetooth
 - GSM

Is there any daemon or framework OM uses to manage these networks as 
NetworkManager on PC right now?


We are developing a portable media device with usbnet & wifi support, I 
am planning to use NM-0.7 or to develop a daemon for managing the networks.


Any idea or comments?

Alex

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community