Re: 2008.12 and USB network Ubuntu Intrepid
On Mon, 22 Dec 2008 23:11:00 +0100 Pander pan...@users.sourceforge.net wrote: What complete set of configuration changes and shell scripts are you using? Please update the Wiki if it is out of date because once I got it running and now (because I'm not a networking/iptables crack) it is not anymore. Thanks. Probably the wiki instructions work for some/most distributions, I was just unable to get it working for Ubuntu (Hardy heron). What I do is just iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 sysctl -w net.ipv4.ip_forward=1 and then run the script I pasted. The above stuff is from the Wiki. There is probably some proper fix for the problem, but I don't know how it's supposed to work (editing /etc/network/interafces doesn't work for me at least). // Simon ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: 2008.12 and USB network Ubuntu Intrepid
On Mon, 22 Dec 2008 02:51:35 -0800 (PST) Bernt be...@trash-mail.com wrote: On FR I've installed 2008.12 and on my laptop Ubuntu Interpid with wicd. I have to use `sudo ifdown usb0` and `sudo ifup usb0` every time I reboot or unplugged the usb cable from my freerunner. It's not so nice, but you can give it a try until there is a solution again for automatic reconnect. Probably there is some proper fix to get this running cleanly, but I resorted to a simple script that simply configures the interface when I plug in the freerunner. It's found below and I just start it manually once after logging in. // Simon #!/bin/sh echo Starting ifcfg daemon while [ 1 ]; do tail -F /var/log/kern.log | grep -lq usb0: register 'cdc_ether' if [ $? -eq 0 ]; then echo Setting up usb0 /sbin/ifconfig usb0 192.168.0.200 else sleep 1 fi done ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: 2008.12 and USB network Ubuntu Intrepid
What complete set of configuration changes and shell scripts are you using? Please update the Wiki if it is out of date because once I got it running and now (because I'm not a networking/iptables crack) it is not anymore. Thanks. Simon Kagstrom wrote: On Mon, 22 Dec 2008 02:51:35 -0800 (PST) Bernt be...@trash-mail.com wrote: On FR I've installed 2008.12 and on my laptop Ubuntu Interpid with wicd. I have to use `sudo ifdown usb0` and `sudo ifup usb0` every time I reboot or unplugged the usb cable from my freerunner. It's not so nice, but you can give it a try until there is a solution again for automatic reconnect. Probably there is some proper fix to get this running cleanly, but I resorted to a simple script that simply configures the interface when I plug in the freerunner. It's found below and I just start it manually once after logging in. // Simon #!/bin/sh echo Starting ifcfg daemon while [ 1 ]; do tail -F /var/log/kern.log | grep -lq usb0: register 'cdc_ether' if [ $? -eq 0 ]; then echo Setting up usb0 /sbin/ifconfig usb0 192.168.0.200 else sleep 1 fi done ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
2008.12 and USB network Ubuntu Intrepid
Hi all, On FR I've installed 2008.12 and on my laptop Ubuntu Interpid with wicd. I've tried several combinations of http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others and ifconfig once told me it has a usb0 when I still had network-manager but so far I've not been able to ping or ssh the FR. Now with wicd, I have added this # freerunner allow-hotplug usb0 iface usb0 inet static address 192.168.0.200 netmask 255.255.255.0 up iptables -A POSTROUTING -t nat -s 192.168.0.0/24 -j MASQUERADE up echo 1 /proc/sys/net/ipv4/ip_forward down iptables -D POSTROUTING -t nat -s 192.168.0.0/24 -j MASQUERADE added the udev rule and script and patched this /etc/udev/rules.d/85-ifupdown.rules Should this be enough? Update, I had it running after manually running freerunner start but now it is dead again :( What is the exact (and minimal) configuration for my setup with wicd to get this working? Thanks, Pander ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community