PDA

View Full Version : HOWTO: Share your Ubuntu connection with Symbian phones


kiddyfurby
June 12th, 2007, 12:56 AM
This guide will let you share your internet connection by Bluetooth
so that you can surf the net on your bed without paying high GPRS/HSDPA rates

I m just summarizing the steps, credits goes to the author of websites at the end of this post

This is my first HOWTO, feel free to correct my mistakes

My setup:
Nokia n73 (most Symbian phones will do, even Sony Ericsson's)
Feisty i386 (just about any distro will do)
bluetooth dongle supported by Ubuntu (mine is CSR)
wireless connection to AirStation router

Pair up your phone and your computer
make sure you have bluez-gnome installed, otherwise install it by the following command:
aptitude install bluez-gnome
make sure you have a bluetooth icon in the notification area (otherwise you can't set PIN while pairing)
on your phone, go to Connect > Bluetooth >. Paired devices > Option > New paired device, choose your computerSetup your phone:
Backup your phone!
I m a noob and can't fix your phone if anything goes wrong
Install gnubox for Series 60 v3 (http://discussion.forum.nokia.com/forum/archive/index.php/t-96953.html) or other Symbians (http://gnubox.dnsalias.org/gnubox/#download)(if you have a s60v3 phone, you will have to sign the sis file. just follow the instruction on the download page, 5th reply)
Run gnubox, Options > Debug > Dump Full CommsDB, this dump the network configuration, in case any thing goes wrong
Create an Access point, goto Tools > Settings > Connection > Accesspoints
Name it "Bt" (case sensitive), set Data Bearer to "data call" and dial-up number to some random number
Run gnubox again, Options > Install > Create records
Restart gnubox, Options > Install > set RAS login script
Restart gnubox, Options > 2box Bluetooth > LAN Access server, select your computer, no encryption if it askSetup your ubuntu
put the following into /etc/ppp/peers/dun
115200
noauth
192.168.11.30:192.168.11.40 (make sure these address doesn't crash with other on your network)
crtscts
ms-dns <your dns server>
lock

execute the following as root, to setup network forwarding, otherwise you can only access LAN from the phone
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.11.0/24 -j MASQUERADE
dund --msdun --listen call dunDONE! grab your phone, fire up the Web app. and enjoy!


References
http://gnubox.dnsalias.org/gnubox/
http://mikie.iki.fi/symbian/bt-ap.htmlAdded iptables line so that it would work for people who aren't connected to NAT routers

ramadhian
November 24th, 2007, 01:31 PM
No Gateway Reply ,,

thats what I always saw in my Phone browser

favad
May 24th, 2008, 03:26 PM
Thank you for creating this guide. I am using N73-Music Edition

All seems to be done correctly. Added the text in the file
115200
noauth
192.168.11.30:192.168.11.40 (make sure these address doesn't crash with other on your network)
crtscts
ms-dns <192.168.1.1>
lock

Steps 2,3 and 4 done with root login.
root@favad-desktop:~# echo 1 > /proc/sys/net/ipv4/ip_forward
root@favad-desktop:~# iptables -t nat -A POSTROUTING -s 192.168.11.0/24 -j MASQUERADE
root@favad-desktop:~# dund --msdun --listen call dun


However when I open Opera and select Bt as the Access Point, it says connecting and nothing happens, a few seconds later it again asks me to choose Access point but nothing happens this time too. Instead this time I get the message Failed to connect to the Internet from my Opera browser.

I'll be very much grateful if someone could guide me. I aren't very familiar with Terminal Commands and have been trying to setup internet via blue tooth on my phone since ages.

favad

ario
June 27th, 2008, 07:42 AM
the problem is he didn't told us what is <your dns server> and this (make sure these address doesn't crash with other on your network) is a comment after the command i think. I also didn't seed the file /etc/ppp/peers/dun and created it myself.
I'm using 6600 and installed gnubox6600 and didn't seen and of options he said in my gnubox options menu.
Things are more complicated that we think.
I've didn't seen anyone who replies to these forums all over the web and seid "I have success. Thanks" :( :( :(

ario
June 27th, 2008, 07:42 AM
the problem is he didn't told us what is <your dns server> and this (make sure these address doesn't crash with other on your network) is a comment after the command i think. I also didn't seed the file /etc/ppp/peers/dun and created it myself.
I'm using 6600 and installed gnubox6600 and didn't seen and of options he said in my gnubox options menu.
Things are more complicated that we think.
I've didn't seen anyone who replies to these forums all over the web and seid "I have success. Thanks" :( :( :(

art_linux
June 28th, 2008, 06:57 AM
i did it very simply with blueman. my phone isn't a smartphone, just only SE k550i, but bluetooth pan network works too.
here is a translated post from my blog, how to configure bluetooth pan network with SE phones
http://64.233.179.104/translate_c?hl=ru&ie=UTF-8&oe=UTF-8&langpair=ru|en&u=http://artsownblog.blogspot.com/2008/06/bluetooth-pan-network.html
i'm from russia, so posts in my blog is in russian :)

i hope somebody find it helpful :)

kiddyfurby
July 2nd, 2008, 11:46 AM
i m using n73 so i should be able to help.

1. (make sure these address doesn't crash with other on your network) is a comment
2. behind ms-dns you should put your dns address, you can find it in /etc/resolv.conf

hope that helps

gravyflex
July 29th, 2008, 08:33 PM
I keep getting the following error when I launch the connection from my E50.


squid@storm:~$ sudo dund -s -p -A -E -n call dun
dund[7815]: Bluetooth DUN daemon version 3.26
dund[7822]: New connection from 00:19:B7:40:EA:EC
using channel 4
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
Receive serial link is not 8-bit clean:
Problem: all had bit 7 set to 0
Modem hangup


I have no idea what could be the problem. Any ideas?

kiddyfurby
July 30th, 2008, 02:11 AM
I keep getting the following error when I launch the connection from my E50.


squid@storm:~$ sudo dund -s -p -A -E -n call dun
dund[7815]: Bluetooth DUN daemon version 3.26
dund[7822]: New connection from 00:19:B7:40:EA:EC
using channel 4
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <magic 0xd9b3f0f> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
Receive serial link is not 8-bit clean:
Problem: all had bit 7 set to 0
Modem hangup

I have no idea what could be the problem. Any ideas?
that's a problem from the phone.
perhaps E50 is not (yet) supported? try to find a matching gnubox
but sorry i have no idea if gnubox for E50 exists or not

gravyflex
July 30th, 2008, 08:57 PM
Someone has gotten it to work with the Nokia E50...

http://slawek.mikula.googlepages.com/nokiae50gnuboxandfring

whochismo
February 16th, 2009, 06:26 PM
i did it very simply with blueman. my phone isn't a smartphone, just only SE k550i, but bluetooth pan network works too.
here is a translated post from my blog, how to configure bluetooth pan network with SE phones
http://64.233.179.104/translate_c?hl=ru&ie=UTF-8&oe=UTF-8&langpair=ru|en&u=http://artsownblog.blogspot.com/2008/06/bluetooth-pan-network.html
i'm from russia, so posts in my blog is in russian :)

i hope somebody find it helpful :)

I tried to use blueman as well (the othey way didn't work for me), and now I can see that the phone connects to the computer via bluetooth when some software in the phone tries to access internet, but the connection doesn't work. Maybe a dhcp problem?

What I am doing wrong? My computer uses intrepid, with the latest version of blueman, and the phone is a nokia 6120 (a symbian S60v3 phone) with gnubox installed. It seems that the problem is in the computer side.

Thanks in advance

Hemanti
May 8th, 2009, 08:03 PM
Same problem here. Would be helpful if anyone knew what to do...

kiddyfurby
May 8th, 2009, 09:27 PM
I've now got myself an android (yay!)
so i no longer use a symbian phone (was a long time symbian fan)

just a little tip: i don't think symbian support PAN
i have no idea what blueman is but if it uses PAN then chance is that symbian don't support it

munishvit
July 21st, 2009, 11:21 PM
Bump!!!