Nokia s60 stuff

Applications installed

FExplorer

This is a file browser with extended capabilities like taking screenshot. If you want to hack your telephone, you definitely need a good file browser. I am currently using the 1.16 BETA version. The developer is working on supporting S 60 3rd edition that runs Symbian 9.1.

FExplorer


URL: http://www.gosymbian.com/
Opera Mobile

You can get a 25 days trail version of this browser (despite the web site says 14 days trail). Usage beyond will cost you 225 NOK (that is about 27 Euros ).

OperaStartPage

Version: 8.51 version Build 7032.
URL: http://www.opera.com/products/mobile/products/s60/
Gnubox

Gnubox is an application that let you change the network connection settings of many Symbian mobile phones to enable them to have an internet connection over bluetooth. This again let you use applications like the Opera Mobile web browser on your symbian mobile, set it to use bluetooth to connect to your bluetooth enabled linux box. Thus enabling you to surf the internet through your linux box using it's internet connection. In other words you don't have to pay your telephone operator to use the internet.

This is my set up:
OSs tested: Ubuntu linux Breezy/5.10 laptop with a working USB bluetooth dongle, Ubuntu Dapper LTS, and Mandriva 2006 all using bluez
Mobile phones tested: Nokia 6630 and a Nokia N70
gnubox: Using the gnubox_6630_80_81.sis and gnubox_N70.sis (from the testing directory).
Internet options tested: NextGenTel ADSL connection and a local LAN with static IP addresses

Some details about my system:
root@ubuntu:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:10:60:5B:C9:20
inet addr:10.24.123.35 Bcast:255.255.255.255 Mask:255.255.255.248
inet6 addr: fe80::210:60ff:fe5b:c920/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2033 (1.9 KiB) TX bytes:1719 (1.6 KiB)
Interrupt:10 Base address:0x4000ig

DNS settings (for ADSL connection seen below)

root@ubuntu:~$ cat /etc/resolv.conf
nameserver 217.13.7.140
nameserver 217.13.4.24

Test to see if your system have discovered your bluetooth dongle

root@ubuntu:~# hciconfig
hci0: Type: USB
BD Address: 00:10:C6:1E:ED:62 ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING
RX bytes:117 acl:0 sco:0 events:15 errors:0
TX bytes:310 acl:0 sco:0 commands:14 errors:0

Scan for you mobile phone from you box (as a system check)

root@ubuntu:~# hcitool scan
Scanning ...
00:12:62:E3:18:E1 Nokia 6630
root@ubuntu:~#

There is no /dev/rfcomm0 so I make it like this:

root@ubuntu:~# mknod /dev/rfcomm0 c 216 0

On Ubuntu Breezy I had some troubles and discovered that the ppp package was not installed. Check this if dund gives you weird messages when testing the connection (see 'Bring up if' later).

My dun file:
root@ubuntu:~# cat /etc/ppp/peers/dun
460800
debug
10.24.123.35:10.24.123.45
ms-dns 217.13.7.140
lock
crtscts
noauth

iptables command (for my ADSL network at home):

root@ubuntu:~/scripts# iptables -t nat -A POSTROUTING -s 10.24.123.0/24 -j MASQUERADE

Enabling ip_forwarding (you need to be root for this):

root@ubuntu:~/scripts# echo 1 > /proc/sys/net/ipv4/ip_forward

Starting dun (BlueZ Bluetooth dial-up networking daemon):

root@ubuntu:~/scripts# dund -n --listen --encrypt call dun
dund[7515]: Bluetooth DUN daemon version 2.20

Setting up a new connection
Then I made a new connection in my Nokia:
Name : Bt
Data bearer: Packet data
Access point name: Bt
User name: rune
Prompt password: No
Password: ****
Authentication: Normal


Go into the advanced setting and put in an IP address and DNS servers form resolve.conf

IP settings

DNS settings

Started gnubox again. It did not find the Bt connection so I ran Options | Install | create records. Exited gnubox and launched it again. This time the Bt connection was found (see below)

Bt discovered

Then I choose Options | 2box bluettooth | Lan Access Server. Selected my Ubuntu bluetooth and answered "Yes" to "Do you want to require encryption ?"

Testing with Opera Mobile (this does not work with my N70 in 'off line' mode)
Launched Opera Mobile and set it to use the Bt connection in the preferences (on my N70 I used IM+).

OperaBtGnubox

This is the output from the console I ran dund from (this is similar to the output you get if you try to debug with 'Bring up if')

dund[7632]: New connection from 00:12:62:E3:18:E1
using channel 2
Using interface ppp0
Connect: ppp0 < --> /dev/rfcomm0
sent [LCP ConfReq id=0x1 ]
rcvd [LCP ConfAck id=0x1 ]
rcvd [LCP ConfReq id=0x1 ]
sent [LCP ConfAck id=0x1 ]
sent [LCP EchoReq id=0x0 magic=0xae352435]
sent [CCP ConfReq id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
rcvd [LCP Ident id=0x2 magic=0x5fbbd961 "Symbian Epoc"]
rcvd [LCP EchoRep id=0x0 magic=0x5fbbd961]
rcvd [IPCP ConfReq id=0x1
]
sent [IPCP ConfNak id=0x1 ]
rcvd [LCP ProtRej id=0x3 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfRej id=0x1 ]
sent [IPCP ConfReq id=0x2 ]
rcvd [IPCP ConfReq id=0x2
]
sent [IPCP ConfAck id=0x2 ]
rcvd [IPCP ConfAck id=0x2 ]
Cannot determine ethernet address for proxy ARP
local IP address 10.24.123.35
remote IP address 10.24.123.45
Script /etc/ppp/ip-up started (pid 7664)
Script /etc/ppp/ip-up finished (pid 7664), status = 0x0

ifconfig gives me this under ppp0:
root@ubuntu:~# ifconfig
....
....
....
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.24.123.35 P-t-P:10.24.123.45 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:64 (64.0 b) TX bytes:85 (85.0 b)