Re: NetworkManager works just fine (was: [ubuntu host] NetworkManager improvements)

2009-02-24 Thread Daniel.Li
On Tue, 2009-02-24 at 00:18 -0500, Joel Newkirk wrote:
> Thanks. With the current Ubuntu there have been problems where NM
> tries
> to take control of usb0 despite being told not to, or refuses to
> follow
> manual setting within its own GUI, but also it has had problems where
> it
> tries to point default route out usb0, or brings eth0 down and back
> up,
> or other odd behavior. Lately most of that seems fixed.

Well, ubuntu 8.10 works. 
http://wiki.openmoko.org/wiki/USB_Networking#Ubuntu_8.10_-_Easy_Way 
-- 
Daniel.Li 
PALFocus (http://palfocus.oicp.net)



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


Re: NetworkManager works just fine (was: [ubuntu host] NetworkManager improvements)

2009-02-23 Thread Joel Newkirk
On Mon, 23 Feb 2009 15:35:41 +0200
"Patrick C. F. Ernzer"  wrote:

> Hello,
> 
> On Sun, 22 Feb 2009 21:13:17 -0500
> Joel Newkirk  wrote:
> 
> [...]
> > Has anyone else been successful with Ubuntu NetworkManager recently?
> [...]
> 
> Not Ubuntu but NetworkManager in general. As said on the wiki page,
> one needs to nail down the MAC address for NM to dish out the same IP.
> 
> I use the following on many boxes, so the version numbers can be off a
> bit.
> 
> NetworkManager-0.7.0-1.git20090102.fc10.i386
> 
> create /usr/local/sbin/freerunner-usb-add.sh
> create /etc/udev/rules.d/80-freerunner.rules
> cd /etc/udev/rules.d/
> chcon --reference=40-multipath.rules 80-freerunner.rules
> chmod 744 freerunner-usb-add.sh
> udevcontrol --reload_rules
> 
> Depending on how your firewall is set up, you may or may not have to
> issue the following
> 
> iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
> iptables -I FORWARD 1 -s 192.168.0.202 -j ACCEPT
> iptables -I INPUT 1 -s 192.168.0.202 -j ACCEPT
> echo 1 > /proc/sys/net/ipv4/ip_forward
> 
> RU
> 
> PCFE

Thanks. With the current Ubuntu there have been problems where NM tries
to take control of usb0 despite being told not to, or refuses to follow
manual setting within its own GUI, but also it has had problems where it
tries to point default route out usb0, or brings eth0 down and back up,
or other odd behavior. Lately most of that seems fixed. 

j


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


NetworkManager works just fine (was: [ubuntu host] NetworkManager improvements)

2009-02-23 Thread Patrick C. F. Ernzer
Hello,

On Sun, 22 Feb 2009 21:13:17 -0500
Joel Newkirk  wrote:

[...]
> Has anyone else been successful with Ubuntu NetworkManager recently?
[...]

Not Ubuntu but NetworkManager in general. As said on the wiki page, one
needs to nail down the MAC address for NM to dish out the same IP.

I use the following on many boxes, so the version numbers can be off a
bit.

NetworkManager-0.7.0-1.git20090102.fc10.i386

create /usr/local/sbin/freerunner-usb-add.sh
create /etc/udev/rules.d/80-freerunner.rules
cd /etc/udev/rules.d/
chcon --reference=40-multipath.rules 80-freerunner.rules
chmod 744 freerunner-usb-add.sh
udevcontrol --reload_rules

Depending on how your firewall is set up, you may or may not have to
issue the following

iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
iptables -I FORWARD 1 -s 192.168.0.202 -j ACCEPT
iptables -I INPUT 1 -s 192.168.0.202 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward

RU

PCFE
-- 
 http://www.pcfe.net/ 
 Patrick C. F. Ernzer  | e-mail: p...@pcfe.net
--go-and-make-your-own-disclaimer--+--
Damn right I'm good in bed.
I can sleep for days.


freerunner-usb-add.sh
Description: application/shellscript


80-freerunner.rules
Description: Binary data
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [ubuntu host] NetworkManager improvements

2009-02-23 Thread Cédric Berger
On Mon, Feb 23, 2009 at 04:02, Denis Johnson  wrote:
>
> If anyone has already tried then please chime in.
>

Indeed with NetworkManager connecting the Freerunner was sometimes a pain.

So I switched to wicd a month ago, and now it connects flawlessly... I
kept my network config file the same as I used before.

PS. Also wicd now allows me to turn on/off wifi on my laptop when I
want. With NetworkManager, if I did not turn it on at boot time, it
was not recognized afterwards... And I also prefer its wifi
scanning/configuration, though I still do not understand why it does
not always show my AP (as if it was an hidden network).

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


Re: [ubuntu host] NetworkManager improvements

2009-02-22 Thread Denis Johnson
On Mon, Feb 23, 2009 at 12:13 PM, Joel Newkirk  wrote:
> I know several people here have had problems with the NetworkManager
> bugs in Intrepid.

Although slightly OT in regards to your FR question, I have found many
recommend to install Wicd, http://www.wicd.net/ which removes Network
Manager and allows you to use profiles and the like. All my problems
in relation to standard Ubuntu wireless and wired network networking
have gone away since I have updated my machines.  However, I am not
certain how Wicd plays with the FR USB settings as I am yet to try try
and connect my FR on a Wicd based machine. When I get a chance to I
will report here.

If anyone has already tried then please chime in.

cheers Denis

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


[ubuntu host] NetworkManager improvements

2009-02-22 Thread Joel Newkirk
I know several people here have had problems with the NetworkManager
bugs in Intrepid.

I installed Xubuntu 8.10 on my new netbook the other day, upgraded
everything, and found that if I used the networkmanager applet to define
the interface 'auto usb0' with manual IP of
192.168.0.201/255.255.255.252 (the subnet I use for my FreeRunner, two
IPs plus network and broadcast) it 'just works' again. On my desktop
Ubuntu (gnome) however, I've still been unable to get it to handle it
correctly. (I'm seeing some odd misbehavior in the gnome NM applet,
it's possible that either xfce's nm-applet or NM itself is why my
netbook works, but gnome nm-applet may still be broken)

Has anyone else been successful with Ubuntu NetworkManager recently?
And did you revert from a manual config via /etc/network/interfaces
to allowing NM to handle usb0?

BTW, if anyone is interested I have a working udhcpd set up where my FR
hands out 192.168.0.201/30 to whatever asks for an IP on usb0, so I can
just jack in and go, more often than not, on a new host.  The daemon
listens only on usb0, and hands out only an IP and subnet with no
routes, which works fine with NetworkManager default - it finds usb0
without a problem on a 'virgin' host and asks for DHCP, and the FR
provides. :)  Oh, udhcpd is one of the functions rolled into busybox,
so it's already on the FR by default and just needs config and launch.

j

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