Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit

Reply
 
LinkBack (7) Thread Tools Display Modes
Old 01-07-2010, 05:09 PM   7 links from elsewhere to this Post. Click to view. #1 (permalink)
geek........
 
Gauravs90's Avatar
 
Join Date: Sep 2008
Location: Meerut
Posts: 415
Default Get connected to internet in Ubuntu 10.04 Lucid Lynx with nokia via Bluetooth

I'm writing this tutorial for the people who want to connect to internet using there mobiles via bluetooth in Ubuntu linux.

This tutorial is specifically for Nokia Symbian Phones but it may work for other phones too.

prerequisites:

1. A bluetooth enabled mobile. I'm using Nokia 3230.
2. GPRS data plan should be enabled in your phone. I'm using Aircel's unlimited data plan.
3. A bluetooth adapter.
4. Ubuntu installed in your computer

Now the tutorial starts:


1. Connect or plug-in your bluetooth to computer. Ubuntu should automatically detect it and bluetooth icon should be visible in top right corner.

2. Enable bluetooth on your phone.

Skip this step 3 if you have already paired your phone.
3. Now click on bluetooth icon on your desktop and choose 'set up new device' from the option. Now a window appears with your phone name listed in it, select your phone and click forward, enter pin displayed on your desktop in your phone.

4. Now your phone is paired with your desktop. Now get into your terminal.

5. Type this command in terminal
Code:
$ sdptool search DUN
You should get this
Code:
Searching for DUN on 00:13:FD:CC:F6:5C ...
Service Name: Dial-Up Networking
Service RecHandle: 0x10005
Service Class ID List:
  "Dialup Networking" (0x1103)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 2
Language Base Attr List:
  code_ISO639: 0x454e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100
Note your phones mac address and channel number which is in red.
In my case phone's mac address is 00:13:FD:CC:F6:5C and channel number is 2.

6. Now type in terminal
Code:
sudo gedit  etc/bluetooth/rfcomm.conf
And add the following

Code:
rfcomm0 {
        bind yes;
        device 00:13:FD:CC:F6:5C;
        channel 2;
        comment "Nokia 3230 via Bluetooth";
}
Enter your phones's mac address and channel number
save and exit.

7. now test the connection by following commands

Code:
$ sudo rfcomm release 0
$ sudo rfcomm connect 0
After a delay you will get the following

Code:
Connected /dev/rfcomm0 to 00:13:FD:CC:F6:5C on channel 2
Press CTRL-C for hangup
Now you have data connection to your phone!.
Press ctrl+C to break connection.

8. Now we have to setup ppp. In my case service provider is Aircel, Type in

Code:
$ sudo gedit /etc/ppp/peers/aircel
And enter the following

Code:
# Aircel PPP initialisation/termination script
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/aircel
-connect"
disconnect "/usr/sbin/chat -v -f /etc/chatscripts/aircel-disconnect"
silent
debug
/dev/rfcomm0
115200
defaultroute
usepeerdns
Save and exit

9. Now type in

Code:
$ sudo gedit /etc/chatscripts/aircel-connect
Enter the following

Code:
# Aircel PPP CONNECT script
TIMEOUT         5
ECHO            ON
ABORT           '\nBUSY\r'
ABORT           '\nERROR\r'
ABORT           '\nNO ANSWER\r'
ABORT           '\nNO CARRIER\r'
ABORT           '\nNO DIALTONE\r'
ABORT           '\nRINGING\r\n\r\nRINGING\r'
''              \rAT
TIMEOUT         12

OK              ATE1
OK              'AT+cgdcont=1,"IP","aircelgprs"'
OK              ATD*99***1#
Note- In place of aircelgprs you have to put in your APN.
Now save and exit.

10. Now type in

Code:
$ sudo gedit /etc/chatscripts/aircel-disconnect
And enter the following

Code:
# Aircel PPP DISCONNECT script
ABORT        "BUSY"        
ABORT        "ERROR"        
ABORT        "NO DIALTONE"    
SAY        "\nSending break to the modem\n"    
""        "\K"        
""        "\K"        
""        "\K"        
""        "+++ATH"    
""        "+++ATH"    
""        "+++ATH"    
SAY        "\nPDP context detached\n"
Save and exit.

Now we are ready to connect to internet! for first time

11. Open terminal and type in

Code:
$ sudo rfcomm connect 0
Don't close this terminal and open another terminal

Code:
$ sudo pon aircel
Congratulation now your phone must be connected to internet verify it by GPRS icon in your phone.
Now bring up firefox and hit any site.

12. To disconnect from internet type this in same terminal as where you typed pon aircel

Code:
$ sudo poff aircel
Hope this tutorial helped you.

Last edited by Gauravs90; 01-07-2010 at 06:31 PM.
Gauravs90 is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 02-07-2010, 02:04 PM   #2 (permalink)
Powered by Android
 
Join Date: Apr 2005
Posts: 4
Default Re: Get connected to internet in Ubuntu 10.04 Lucid Lynx with nokia via Bluetooth

Excellent tutorial. Will try out on my Thinkpad running Ubuntu 10.04 LTS
manitcse_2005 is offline   Reply With Quote
Old 05-07-2010, 12:08 PM   #3 (permalink)
Right Off the Assembly Line
 
kaliyaodi's Avatar
 
Join Date: Jun 2010
Posts: 11
Default Re: Get connected to internet in Ubuntu 10.04 Lucid Lynx with nokia via Bluetooth

Quote:
Originally Posted by Gauravs90 View Post
I'm writing this tutorial for the people who want to connect to internet using there mobiles via bluetooth in Ubuntu linux.

This tutorial is specifically for Nokia Symbian Phones but it may work for other phones too.

prerequisites:

1. A bluetooth enabled mobile. I'm using Nokia 3230.
2. GPRS data plan should be enabled in your phone. I'm using Aircel's unlimited data plan.
3. A bluetooth adapter.
4. Ubuntu installed in your computer

Now the tutorial starts:


1. Connect or plug-in your bluetooth to computer. Ubuntu should automatically detect it and bluetooth icon should be visible in top right corner.

2. Enable bluetooth on your phone.

Skip this step 3 if you have already paired your phone.
3. Now click on bluetooth icon on your desktop and choose 'set up new device' from the option. Now a window appears with your phone name listed in it, select your phone and click forward, enter pin displayed on your desktop in your phone.

4. Now your phone is paired with your desktop. Now get into your terminal.

5. Type this command in terminal
Code:
$ sdptool search DUN
You should get this
Code:
Searching for DUN on 00:13:FD:CC:F6:5C ...
Service Name: Dial-Up Networking
Service RecHandle: 0x10005
Service Class ID List:
  "Dialup Networking" (0x1103)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 2
Language Base Attr List:
  code_ISO639: 0x454e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100
Note your phones mac address and channel number which is in red.
In my case phone's mac address is 00:13:FD:CC:F6:5C and channel number is 2.

6. Now type in terminal
Code:
sudo gedit  etc/bluetooth/rfcomm.conf
And add the following

Code:
rfcomm0 {
        bind yes;
        device 00:13:FD:CC:F6:5C;
        channel 2;
        comment "Nokia 3230 via Bluetooth";
}
Enter your phones's mac address and channel number
save and exit.

7. now test the connection by following commands

Code:
$ sudo rfcomm release 0
$ sudo rfcomm connect 0
After a delay you will get the following

Code:
Connected /dev/rfcomm0 to 00:13:FD:CC:F6:5C on channel 2
Press CTRL-C for hangup
Now you have data connection to your phone!.
Press ctrl+C to break connection.

8. Now we have to setup ppp. In my case service provider is Aircel, Type in

Code:
$ sudo gedit /etc/ppp/peers/aircel
And enter the following

Code:
# Aircel PPP initialisation/termination script
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/aircel
-connect"
disconnect "/usr/sbin/chat -v -f /etc/chatscripts/aircel-disconnect"
silent
debug
/dev/rfcomm0
115200
defaultroute
usepeerdns
Save and exit

9. Now type in

Code:
$ sudo gedit /etc/chatscripts/aircel-connect
Enter the following

Code:
# Aircel PPP CONNECT script
TIMEOUT         5
ECHO            ON
ABORT           '\nBUSY\r'
ABORT           '\nERROR\r'
ABORT           '\nNO ANSWER\r'
ABORT           '\nNO CARRIER\r'
ABORT           '\nNO DIALTONE\r'
ABORT           '\nRINGING\r\n\r\nRINGING\r'
''              \rAT
TIMEOUT         12

OK              ATE1
OK              'AT+cgdcont=1,"IP","aircelgprs"'
OK              ATD*99***1#
Note- In place of aircelgprs you have to put in your APN.
Now save and exit.

10. Now type in

Code:
$ sudo gedit /etc/chatscripts/aircel-disconnect
And enter the following

Code:
# Aircel PPP DISCONNECT script
ABORT        "BUSY"        
ABORT        "ERROR"        
ABORT        "NO DIALTONE"    
SAY        "\nSending break to the modem\n"    
""        "\K"        
""        "\K"        
""        "\K"        
""        "+++ATH"    
""        "+++ATH"    
""        "+++ATH"    
SAY        "\nPDP context detached\n"
Save and exit.

Now we are ready to connect to internet! for first time

11. Open terminal and type in

Code:
$ sudo rfcomm connect 0
Don't close this terminal and open another terminal

Code:
$ sudo pon aircel
Congratulation now your phone must be connected to internet verify it by GPRS icon in your phone.
Now bring up firefox and hit any site.

12. To disconnect from internet type this in same terminal as where you typed pon aircel

Code:
$ sudo poff aircel
Hope this tutorial helped you.
hey can you send one more for connecting nokia 2600c with ubuntu with the help of datacable.
kaliyaodi is offline   Reply With Quote
Old 05-07-2010, 05:26 PM   #4 (permalink)
geek........
 
Gauravs90's Avatar
 
Join Date: Sep 2008
Location: Meerut
Posts: 415
Default Re: Get connected to internet in Ubuntu 10.04 Lucid Lynx with nokia via Bluetooth

Does Nokia 2600c supports Nokia PC Suite?

If yes,
Connect 2600c to desktop via cable and select Nokia PC Suite in your phone and you are done.

If no,
Search on web i don't know
Gauravs90 is offline   Reply With Quote
Old 05-07-2010, 11:03 PM   #5 (permalink)
Right Off the Assembly Line
 
kaliyaodi's Avatar
 
Join Date: Jun 2010
Posts: 11
Default Re: Get connected to internet in Ubuntu 10.04 Lucid Lynx with nokia via Bluetooth

Quote:
Originally Posted by Gauravs90 View Post
Does Nokia 2600c supports Nokia PC Suite?

If yes,
Connect 2600c to desktop via cable and select Nokia PC Suite in your phone and you are done.

If no,
Search on web i don't know
hey but how can i rum nokia pc-suit on ubuntu.
i just have an exe file of nokia pc-suit.
kaliyaodi is offline   Reply With Quote
Old 06-07-2010, 02:36 PM   #6 (permalink)
geek........
 
Gauravs90's Avatar
 
Join Date: Sep 2008
Location: Meerut
Posts: 415
Default Re: Get connected to internet in Ubuntu 10.04 Lucid Lynx with nokia via Bluetooth

You don't have to run PC suite on ubuntu

Ubuntu has support for nokia phones by default, just select PC Suite in your phone when it asks.
Gauravs90 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.thinkdigit.com/forum/tutorials/128938-get-connected-internet-ubuntu-10-04-lucid-lynx-nokia-via-bluetooth.html
Posted By For Type Date
ubuntu 10.04 + bluetooth internet - Яндекс: нашлась 51тыс. ответов This thread Refback 01-05-2011 01:45 PM
orkut - Messages This thread Refback 29-12-2010 01:57 PM
Ubuntu Lucid & DUN blogdoch.net ? jetzt wird zurckgeblogt This thread Refback 08-08-2010 05:35 PM
Symbian S60 5thEdition This thread Refback 23-07-2010 12:39 AM
Symbian S60 5thEdition This thread Refback 23-07-2010 12:07 AM
Zpisky zo ?ivota oby?ajnho admina: Symbiani mobil ako BT modem pre Ubuntu (10.04) This thread Refback 22-07-2010 11:48 PM
Zpisky zo ?ivota oby?ajnho admina This thread Refback 21-07-2010 02:48 AM


All times are GMT +5.5. The time now is 09:38 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2