OpenMoko / Freerunner and Ubuntu

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 netmask
  4. sudo route add usb0
  5. sudo iptables -I INPUT 1 -s -j ACCEPT
  6. sudo iptables -I OUTPUT 1 -s -j ACCEPT
  7. sudo iptables -A POSTROUTING -t nat -j MASQUERADE -s
  8. sudo echo 1 > /proc/sys/net/ipv4/ip_forward

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