Neo freerunner

From Hackepedia
Revision as of 16:00, 23 July 2008 by Franks (talk | contribs)
Jump to navigationJump to search

Once I received my Neo Freerunner, I logged into the openmoko wiki and setup

USB Networking on Ubuntu

Replace 192.168.1.25 below with the IP of your desktop eth0:

$ cat /etc/network/interfaces
auto usb0
iface usb0 inet static
       address 192.168.0.200
       netmask 255.255.255.0
       network 192.168.0.0
       up iptables -A POSTROUTING -t nat -j SNAT --to-source 192.168.1.25 &
       up echo 1 > /proc/sys/net/ipv4/ip_forward &
       up iptables -P FORWARD ACCEPT &
       down iptables -D POSTROUTING -t nat -j SNAT --to-source 192.168.1.25 &
# ifdown usb0 && ifup usb0

If that worked, you should now see something similar to:

$ ifconfig usb0
usb0      Link encap:Ethernet  
         inet addr:192.168.0.200  Bcast:192.168.0.255  Mask:255.255.255.0
 $ netstat -rn | grep usb0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 usb0
$ ssh [email protected]
[email protected]'s password: 

hit enter and you should see:

root@om-gta02:~# 


Initial SSH Connection

Once connected via ssh, these are the commands I ran, your mileage may vary:

# vi /etc/resolv.conf

changed the IP to that of my favourite DNS nameserver.

# opkg update

As of July 23,2008 they don't seem to digitally sign their packages, so you will see 4 errors for files that end with .sig

# opkg upgrade

There were a couple of times I was prompted to merge files, I chose "I" to install maintainer's version, as the phone is new I've not yet edited anything myself so there is no risk of clobbering my changes.

Adding repositories

I chose to add the ScaredyCat repository and add a filemanager, timesheet and todo list:

# cd /etc/opkg/
# wget http://buildhost.automated.it/scaredycat.conf
# opkg update 


Adding helper applications

# opkg install gpe-filemanager gpe-timesheet gpe-todo
# /etc/init.d/xserver-nodm restart

Replace the default keyboard with missing characters, with a full keyboard that will require the stylus:

# opkg remove -force-depends multitap-pad
# opkg install matchbox-keyboard-inputmethod matchbox-keyboard-im matchbox-keyboard-applet

Get a list of available packages:

# opkg list

Adding internet applications

Install the openmoko web browser:

# opkg install openmoko-browser2

Install pigin for chat

# opkg install pidgin


Add wifi with WPA on Ubuntu

# cat /etc/wpa_supplicant/wpa_supplicant.conf
network={
     ssid="your_ssid"
     proto=WPA
     key_mgmt=WPA-PSK
     pairwise=TKIP
     group=TKIP
     scan_ssid=1
     psk="secret key"
     priority=10
}

# vi /etc/network/interfaces

When you see the line:

iface eth0 inet dhcp

add a line right underneath it:

 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

and save the file.

Now switch from USB to try wifi:

# ifdown eth0 && ifup eth0
sed: unrecognized option `--quiet'
BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary
Usage: sed [-efinr] pattern [files...]
WPA: Configuring Interface
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
udhcpc (v1.11.1) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
Sending discover...

at this point my DHCP server responded with an IP. I now have wifi access! If you had issues, on the phone you can run

# ifdown eth0 && ifup usb0