OpenMoko / Freerunner and Ubuntu

Sebastian Bergmann » 04 July 2008 » in Computers and Gadgets » 9 Comments

First error

Today I received my OpenMoko / FreeRunner mobile phone Linux computer.

Here is how I set up the USB networking between the FreeRunner and my notebook (which runs on Ubuntu Linux):

  1. sudo aptitude install dnsmasq
  2. sudo iptables -F
  3. sudo ifconfig usb0 192.168.0.200 netmask 255.255.255.0
  4. sudo route add 192.168.0.202 usb0
  5. sudo iptables -I INPUT 1 -s 192.168.0.202 -j ACCEPT
  6. sudo iptables -I OUTPUT 1 -s 192.168.0.200 -j ACCEPT
  7. sudo iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
  8. sudo echo 1 > /proc/sys/net/ipv4/ip_forward

Now you can log into the FreeRunner via SSH using ssh root@192.168.0.202 and the FreeRunner has network access through the USB connection.

Defined tags for this entry: , , ,

Trackback specific URI for this entry

9 Comments to "OpenMoko / Freerunner and Ubuntu"

Display comments as (Linear | Threaded)
  1. Balu
    05/07/2008 at 13:10 Permalink
    Und telefonieren kann man damit dann auch? :)

    Reply

  2. Sebastian Bergmann
    05/07/2008 at 22:00 Permalink
    Ah, yes: making and receiving phone calls also works.

    Reply

  3. Arne
    13/07/2008 at 18:28 Permalink
    Command no 8 doesn't do it for me: 'permission denied'. The following command does it, since the entire command is executed as root:
    > sudo bash -c 'echo 1 > /proc/sys/net/ipv4/ip_forward'

    Cheers,
    Arne

    Reply

  4. Andre
    21/07/2008 at 16:04 Permalink
    I thought the freerunner had wifi capability. Why do USB networking?

    Still pretty neat though!

    Reply

  5. David
    26/07/2008 at 14:48 Permalink
    Thank you!!!!

    I received my FreeRunner three days ago and till now I wasn't able to set up USB networking.
    Command 8 hasn't worked for me so I have used Arne's.

    Thank you Sebastian, and thank you Arne!

    David

    Reply

  6. Cold-Gin
    06/10/2008 at 02:08 Permalink
    Thank you for this helpful page. I can SSH, but I cannot login. I have tried blank, openmoko, and simply enter for the root password, but no dice... Anybody have this problem? Thanks

    Reply

  7. Ester
    16/02/2009 at 11:15 Permalink
    Nothing worked for me. I can ssh from Freerunner to Ubuntu laptop but not from the laptop to the Freerunner, I get "Connection Refused". Firewall is set up to accept port 22 and ssh service, and I have installed everything I need. Is there an internal built-in firewall into the Freerunner by any chance?

    Reply

  8. rmatthew
    20/05/2009 at 06:24 Permalink
    This worked the first time for me woo-hoo

    Reply

  9. Ranjit
    29/04/2010 at 18:09 Permalink
    Just had trouble with the ssh and this worked like a magic wand...

    Reply

0 Trackbacks to "OpenMoko / Freerunner and Ubuntu"

  1. No Trackbacks

Add Comment


To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Submitted comments will be subject to moderation before being displayed.