Neo freerunner: Difference between revisions
Line 3: | Line 3: | ||
== [http://wiki.openmoko.org/wiki/USB_Networking USB Networking] on [[Ubuntu]] == | == [http://wiki.openmoko.org/wiki/USB_Networking USB Networking] on [[Ubuntu]] == | ||
Edit the file /etc/network/interfaces on your Ubuntu machine to look like this (replacing 192.168.1. | Edit the file /etc/network/interfaces on your Ubuntu machine to look like this: | ||
(replacing 192.168.1.25 with your [[IP]]) | |||
auto usb0 | auto usb0 |
Revision as of 16:37, 25 July 2008
Once I received my Neo Freerunner, I logged into the openmoko wiki and setup
USB Networking on Ubuntu
Edit the file /etc/network/interfaces on your Ubuntu machine to look like this: (replacing 192.168.1.25 with your IP)
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 root@192.168.0.202 root@192.168.0.202'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. You'll also want to update the nameserver entry in /etc/network/interfaces
# 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
# cd /etc/opkg/ # wget http://buildhost.automated.it/scaredycat.conf # opkg update
Adding helper applications
Add a filemanager, timesheet and todo list from ScaredyCat:
# 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
Get GPS working
# opkg install gpsd openmoko-agpsui http://www.tangogps.org/downloads/tangogps_0.9.2-r1_armv4t.ipk # echo "GPS_DEV=\"/dev/ttySAC1\"" > /etc/default/gpsd # /etc/init.d/gpsd restart
Start the GPS program, and go stand in an open field for 10 minutes :)
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 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
Adjust the microphone
# vi /usr/share/openmoko/scenarios/gsmhandset.state
Scroll down to control.48, and under 'Mic2 Capture Volume' change the value to 2 or 3