True USB plug and play experience

7 messages Options
Embed this post
Permalink
Laszlo KREKACS

True USB plug and play experience

Reply Threaded More More options
Print post
Permalink
Dear list,

I have using my laptop+2 Freerunners since more than a
month now with this setup.

I have written down this tutorial, because I have promised
to Paul Fertser:-)

http://wiki.openmoko.org/wiki/User:Klaszlo#True_plug-and-play_experience_using_usb_networking

It is working fine with ubuntu 9.04(jaunty), but I have difficulty
with 8.10 (intrepid) my gf's laptop, maybe
it is dependent on the Networkmanager version, maybe my
memory is a little bit fuzzy, as I setup a month ago originally.
So please test it and report.

What are the achieved features you may ask, here it goes:
* manually assigned IP to the freerunner (no DHCP wait)
* each freerunner recognised and separate name is assigned to it. (ie.
when I plug my freerunner in my laptop, it displays "Laci's moko")
* a script is executed when the freerunner is plugged in
 (it set up the iptables rule currently for the network, but it will
 (in the future) also auto-sync some stuff with my laptop))
* I can access the internet from the freerunner without problem (no
need any manual command typed in the terminal)
* Each freerunner is recognised individually, and the appropriate part
of the script is executed


Please respect this work, as it took several days,
and some heavy help from NetworkManager's developers (namely dcbw,
asac and NoelJB)
to fully setup and debug it. It had various problems and headaches.


I hope you enjoy using it, and report back how is it going.
I personally love the plug and play experience.

Best regards,
 Laszlo

_______________________________________________
Openmoko community mailing list
[hidden email]
http://lists.openmoko.org/mailman/listinfo/community
David Samblas Martinez

Re: True USB plug and play experience

Reply Threaded More More options
Print post
Permalink
Hi Lazlo
I was trying to follow your tutorial of USB plug and play but I have a doubt,
How did you find the UUID and the MacAddress? last  one I guess if the
HWaddr of usb0 interface if you do Ifconfig from the freerunner  but I
don't know where start to find the UUID thing.
Regards and thanks a lot for the Tutorial :)

David Reyes Samblas Martinez
http://www.tuxbrain.com
Open ultraportable & embedded solutions
Openmoko, Openpandora,  Arduino
Hey, watch out!!! There's a linux in your pocket!!!




2009/10/16 Laszlo KREKACS <[hidden email]>:

> Dear list,
>
> I have using my laptop+2 Freerunners since more than a
> month now with this setup.
>
> I have written down this tutorial, because I have promised
> to Paul Fertser:-)
>
> http://wiki.openmoko.org/wiki/User:Klaszlo#True_plug-and-play_experience_using_usb_networking
>
> It is working fine with ubuntu 9.04(jaunty), but I have difficulty
> with 8.10 (intrepid) my gf's laptop, maybe
> it is dependent on the Networkmanager version, maybe my
> memory is a little bit fuzzy, as I setup a month ago originally.
> So please test it and report.
>
> What are the achieved features you may ask, here it goes:
> * manually assigned IP to the freerunner (no DHCP wait)
> * each freerunner recognised and separate name is assigned to it. (ie.
> when I plug my freerunner in my laptop, it displays "Laci's moko")
> * a script is executed when the freerunner is plugged in
>  (it set up the iptables rule currently for the network, but it will
>  (in the future) also auto-sync some stuff with my laptop))
> * I can access the internet from the freerunner without problem (no
> need any manual command typed in the terminal)
> * Each freerunner is recognised individually, and the appropriate part
> of the script is executed
>
>
> Please respect this work, as it took several days,
> and some heavy help from NetworkManager's developers (namely dcbw,
> asac and NoelJB)
> to fully setup and debug it. It had various problems and headaches.
>
>
> I hope you enjoy using it, and report back how is it going.
> I personally love the plug and play experience.
>
> Best regards,
>  Laszlo
>
> _______________________________________________
> Openmoko community mailing list
> [hidden email]
> http://lists.openmoko.org/mailman/listinfo/community
>

_______________________________________________
Openmoko community mailing list
[hidden email]
http://lists.openmoko.org/mailman/listinfo/community
David Samblas Martinez

Re: True USB plug and play experience

Reply Threaded More More options
Print post
Permalink
ok some trial and error and it works
MacAddres is the on reported in the host though dmesg (for example,
you can also obtain it though ifconfig) and the uuid, seems arbitrary
mean while you use the same in all the scripts
Thanks  Lazlo :)

David Reyes Samblas Martinez
http://www.tuxbrain.com
Open ultraportable & embedded solutions
Openmoko, Openpandora,  Arduino
Hey, watch out!!! There's a linux in your pocket!!!




2009/10/20 David Reyes Samblas Martinez <[hidden email]>:

> Hi Lazlo
> I was trying to follow your tutorial of USB plug and play but I have a doubt,
> How did you find the UUID and the MacAddress? last  one I guess if the
> HWaddr of usb0 interface if you do Ifconfig from the freerunner  but I
> don't know where start to find the UUID thing.
> Regards and thanks a lot for the Tutorial :)
>
> David Reyes Samblas Martinez
> http://www.tuxbrain.com
> Open ultraportable & embedded solutions
> Openmoko, Openpandora,  Arduino
> Hey, watch out!!! There's a linux in your pocket!!!
>
>
>
>
> 2009/10/16 Laszlo KREKACS <[hidden email]>:
>> Dear list,
>>
>> I have using my laptop+2 Freerunners since more than a
>> month now with this setup.
>>
>> I have written down this tutorial, because I have promised
>> to Paul Fertser:-)
>>
>> http://wiki.openmoko.org/wiki/User:Klaszlo#True_plug-and-play_experience_using_usb_networking
>>
>> It is working fine with ubuntu 9.04(jaunty), but I have difficulty
>> with 8.10 (intrepid) my gf's laptop, maybe
>> it is dependent on the Networkmanager version, maybe my
>> memory is a little bit fuzzy, as I setup a month ago originally.
>> So please test it and report.
>>
>> What are the achieved features you may ask, here it goes:
>> * manually assigned IP to the freerunner (no DHCP wait)
>> * each freerunner recognised and separate name is assigned to it. (ie.
>> when I plug my freerunner in my laptop, it displays "Laci's moko")
>> * a script is executed when the freerunner is plugged in
>>  (it set up the iptables rule currently for the network, but it will
>>  (in the future) also auto-sync some stuff with my laptop))
>> * I can access the internet from the freerunner without problem (no
>> need any manual command typed in the terminal)
>> * Each freerunner is recognised individually, and the appropriate part
>> of the script is executed
>>
>>
>> Please respect this work, as it took several days,
>> and some heavy help from NetworkManager's developers (namely dcbw,
>> asac and NoelJB)
>> to fully setup and debug it. It had various problems and headaches.
>>
>>
>> I hope you enjoy using it, and report back how is it going.
>> I personally love the plug and play experience.
>>
>> Best regards,
>>  Laszlo
>>
>> _______________________________________________
>> Openmoko community mailing list
>> [hidden email]
>> http://lists.openmoko.org/mailman/listinfo/community
>>
>

_______________________________________________
Openmoko community mailing list
[hidden email]
http://lists.openmoko.org/mailman/listinfo/community
Laszlo KREKACS

Re: True USB plug and play experience

Reply Threaded More More options
Print post
Permalink
In reply to this post by David Samblas Martinez
On Tue, Oct 20, 2009 at 1:56 PM, David Reyes Samblas Martinez
<[hidden email]> wrote:
> Hi Lazlo
> I was trying to follow your tutorial of USB plug and play but I have a doubt,
> How did you find the UUID and the MacAddress?

Mac adress: just ifconfig on the laptop, while the freerunner is plugged in.

UUID: it is a simple identifier for the connection. It can be anything, only
requirements, that you use HEX numbers. (0-9a-f)
It identifies the connection internally in NetworkManager. Using this
identifier you can write script for it.

Please report back, if you success.

I plan to migrate to ubuntu 9.10 once it is out, and redo this config.
(I had no luck with ubuntu 8.10. So Im interested in your experience)

Best regards,
 Laszlo

_______________________________________________
Openmoko community mailing list
[hidden email]
http://lists.openmoko.org/mailman/listinfo/community
Laszlo KREKACS

Re: True USB plug and play experience

Reply Threaded More More options
Print post
Permalink
In reply to this post by David Samblas Martinez
On Tue, Oct 20, 2009 at 2:22 PM, David Reyes Samblas Martinez
<[hidden email]> wrote:
> ok some trial and error and it works
> MacAddres is the on reported in the host though dmesg (for example,
> you can also obtain it though ifconfig) and the uuid, seems arbitrary
> mean while you use the same in all the scripts
> Thanks  Lazlo :)

Oh, I missed this message. Nice to hear, you succeed on your own!

* What is your system?
* Any additional tweaking?
* Your NetworkManager version?

Best regards,
 Laszlo

_______________________________________________
Openmoko community mailing list
[hidden email]
http://lists.openmoko.org/mailman/listinfo/community
David Samblas Martinez

Re: True USB plug and play experience

Reply Threaded More More options
Print post
Permalink
2009/10/20 Laszlo KREKACS <[hidden email]>:

> On Tue, Oct 20, 2009 at 2:22 PM, David Reyes Samblas Martinez
> <[hidden email]> wrote:
>> ok some trial and error and it works
>> MacAddres is the on reported in the host though dmesg (for example,
>> you can also obtain it though ifconfig) and the uuid, seems arbitrary
>> mean while you use the same in all the scripts
>> Thanks  Lazlo :)
>
> Oh, I missed this message. Nice to hear, you succeed on your own!
>
> * What is your system?
> * Any additional tweaking?
> * Your NetworkManager version?
>
> Best regards,
>  Laszlo
>
> _______________________________________________
> Openmoko community mailing list
> [hidden email]
> http://lists.openmoko.org/mailman/listinfo/community
>
I have singing  victory to early, but not for your work Lazlo your
config and scripts seems to run awesome luckily I have identified what
is the bug

my system is the sharp Netwalker, Ubuntu 9.04 for Arm , NM 0-7.0.100

interface wakes up and goes down automagicaly ok with the right ip and
I can ping/ssh the neo just plug and play but no internet on the neo,
error on the 10myiptables script ,
iptables complains about lack of support in the kernel and after check
it there is  lack of Network filter support in the out of the box
kernel, now I'm crosscompiling a new kernel with some more extras for
the device, lets see if I'm lucky or I have to restore the device :P

David Reyes Samblas Martinez
http://www.tuxbrain.com
Open ultraportable & embedded solutions
Openmoko, Openpandora,  Arduino
Hey, watch out!!! There's a linux in your pocket!!!

_______________________________________________
Openmoko community mailing list
[hidden email]
http://lists.openmoko.org/mailman/listinfo/community
Laszlo KREKACS

Re: True USB plug and play experience

Reply Threaded More More options
Print post
Permalink
In reply to this post by Laszlo KREKACS
On Fri, Oct 16, 2009 at 2:27 PM, Laszlo KREKACS
<[hidden email]> wrote:
> http://wiki.openmoko.org/wiki/User:Klaszlo#True_plug-and-play_experience_using_usb_networking
>
> It is working fine with ubuntu 9.04(jaunty), but I have difficulty
> with 8.10 (intrepid) my gf's laptop, maybe
> it is dependent on the Networkmanager version, maybe my
> memory is a little bit fuzzy, as I setup a month ago originally.
> So please test it and report.

I have just completed the above howto with tested distributions.
So I have tested it under
ubuntu 8.10 - NOT working
ubuntu 9.04 - works
ubuntu 9.10 - works

So basically I have verified my tutorial on ubuntu 9.10, and works great,
no information is lacking, so I can say, that the ubuntu 8.10 is not working.
Time to upgrade;-)

Hope others find this script useful, and can test on other distro too.

Best regards,
 Laszlo

_______________________________________________
Openmoko community mailing list
[hidden email]
http://lists.openmoko.org/mailman/listinfo/community