Re: udev rule for the freerunner or make usb networking enduser friendly
On Wednesday 02 September 2009, Olivier Migeot wrote: On Wed, Sep 2, 2009 at 6:41 AM, c_ccchan...@yahoo.com wrote: Hi, Same here - just a static ip for the fr's mac address on ubuntu works great for me. I've been on static IP for quite a while, but between work and home it was starting to get messy. With udhcpd, it's now much more convenient. I could even decide to change the Moko's network for something less common than 192.168.0.0 at no cost. The best would be to have a very light dhcpd daemon who only runs on USB insertion, serves only one address with a very long lease, and then dies after a few minutes. But maybe I'm dreaming there ;) Check dnsmasq which is available in OE, and provides a lightweight caching DNS server and DHCP server. I don't know if it's in the SHR feeds or not, but it worked well when I tried it a while back. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: udev rule for the freerunner or make usb networking enduser friendly
On Thu, Sep 10, 2009 at 1:26 PM, Al Johnson openm...@mazikeen.demon.co.uk wrote: Check dnsmasq which is available in OE, and provides a lightweight caching DNS server and DHCP server. I don't know if it's in the SHR feeds or not, but it worked well when I tried it a while back. How lighter could it be than a /bin/busybox symlink? ;) Plus I don't really need the DNS part. But thanks anyway. -- Olivier ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: udev rule for the freerunner or make usb networking enduser friendly
On Thursday 10 September 2009, Olivier Migeot wrote: On Thu, Sep 10, 2009 at 1:26 PM, Al Johnson openm...@mazikeen.demon.co.uk wrote: Check dnsmasq which is available in OE, and provides a lightweight caching DNS server and DHCP server. I don't know if it's in the SHR feeds or not, but it worked well when I tried it a while back. How lighter could it be than a /bin/busybox symlink? ;) I thought busybox only did the client end. Good to know I was wrong :-) ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: udev rule for the freerunner or make usb networking enduser friendly
On Wed, Sep 2, 2009 at 6:41 AM, c_ccchan...@yahoo.com wrote: Hi, Same here - just a static ip for the fr's mac address on ubuntu works great for me. I've been on static IP for quite a while, but between work and home it was starting to get messy. With udhcpd, it's now much more convenient. I could even decide to change the Moko's network for something less common than 192.168.0.0 at no cost. The best would be to have a very light dhcpd daemon who only runs on USB insertion, serves only one address with a very long lease, and then dies after a few minutes. But maybe I'm dreaming there ;) -- Olivier ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: udev rule for the freerunner or make usb networking enduser friendly
El Monday, 31 de August de 2009 18:40:33 Laszlo KREKACS va escriure: Hi! I would like to use my freerunner in a plugplay mode. Just attach to the computer, and simply ssh in using terminal or nautilus. I've it working on leny with the following configs: on /etc/udev/rules.d/70-persistent-net.rules I force the frerruner to be usb0 see (http://wiki.openmoko.org/wiki/OUI): # USB device 0x1457:0x5122 (cdc_ether) freeruner SUBSYSTEM==net, ACTION==add, DRIVERS==?*, \ ATTR{address}==00:1f:11:??:??:??, ATTR{type}==1, KERNEL==eth*, \ NAME=usb0 set /etc/network/interfaces and /etc/network/freerunner as tell in the wiki page: http://wiki.openmoko.org/wiki/Usb_networking#Masquerading_support and for $HOME/.ssh/config use: http://wiki.openmoko.org/wiki/Usb_networking#Changing_host_keys ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: udev rule for the freerunner or make usb networking enduser friendly
Radek Polak wrote: Laszlo KREKACS wrote: I would like to use my freerunner in a plugplay mode. Just attach to the computer, and simply ssh in using terminal or nautilus. You have to setup dhcp server on your freerunner. E.g. on debian: Seems like a lot of effort, I find it easier to set up static 192.168.0.200 for eth1 on the computer. This avoids running a dhcp server on the rather limited phone. Still, the dhcp server may be easier if you regularly connect to many different computers. Helge Hafting ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: udev rule for the freerunner or make usb networking enduser friendly
Hi, Same here - just a static ip for the fr's mac address on ubuntu works great for me. -- View this message in context: http://n2.nabble.com/udev-rule-for-the-freerunner-or-make-usb-networking-enduser-friendly-tp3554706p3564747.html Sent from the Openmoko Community mailing list archive at Nabble.com. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
udev rule for the freerunner or make usb networking enduser friendly
Hi! I would like to use my freerunner in a plugplay mode. Just attach to the computer, and simply ssh in using terminal or nautilus. Currently 2 things break the above experience: 1. I need to issue manually the following command: sudo ip address add 192.168.0.200/24 dev eth3 If you use two freerunner, it will get different ethX interface (eth2 vs. eth3) which is rather annoying. There is ifrename (http://linux.die.net/man/8/ifrename), which could fix it. 2. After some seconds (30-40 sec) the connection is broken. I need to reissue the above command, and after it does not break anymore. I highly suspect Networkmanager is f*cking with me. So the question is, can it be written an udev rule, which do the above things automatically, and also stop disconnecting the freerunner? The current way is really hard to teach for a nonexperienced user (ie. gf), how to upload musics to the music player device.;-\ Best regards, Laszlo ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: udev rule for the freerunner or make usb networking enduser friendly
Laszlo KREKACS laszlo.krekacs.l...@gmail.com writes: The current way is really hard to teach for a nonexperienced user (ie. gf), how to upload musics to the music player device.;-\ Hahaha, a gf capable of applying the bass fix shouldn't need much help disabling NM and adding several trivial strings to /etc/network/interfaces (Debian) or /etc/conf.d/net (Gentoo). Really, the way you propose is wrong, you need to use your OS's facilities, all modern distros support proper hotplug and configuring of network devices. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercer...@gmail.com ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: udev rule for the freerunner or make usb networking enduser friendly
Laszlo KREKACS wrote: I would like to use my freerunner in a plugplay mode. Just attach to the computer, and simply ssh in using terminal or nautilus. You have to setup dhcp server on your freerunner. E.g. on debian: apt-get install dhcp3-server edit dhcp server configuration: nano /etc/dhcp3/dhcpd.conf and place something like this there: option domain-name-servers 208.67.222.222, 208.67.220.220; option routers 192.168.0.202; subnet 192.168.0.0 netmask 255.255.255.0 { option routers 192.168.0.1; # Unknown clients get this pool. pool { #option domain-name-servers bogus.example.com; max-lease-time 7200; range 192.168.0.200 192.168.0.201; allow unknown clients; } } Now restart dhcps server: /etc/init.d/dhcp3-server restart plug your Freerunner and NetworkManager should always assign the right IP address. Regards Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community