PDA

View Full Version : Use a Nokia phone to connect to internet using pppconfig



zero-n
September 18th, 2010, 04:39 PM
Before we start connecting to Internet using your phone is not a good way cause it is costly so be AWARE of what you are doing.



I am running Ubuntu 10.04 LTS & using N73 (http://en.wikipedia.org/wiki/Nokia_N73) Nokia phone connected with DKU-50 cable. & pppconfig is installed be default so there is no need to install it.


1- Connect your phone & when prompt select PC Suite Mode so your phone can be recognized as a modem.

2- Open terminal and run this command


sudo dmesg | tail
the output should be something like this:


[ 6274.113214] usb 4-2: configuration #1 chosen from 1 choice
[ 6274.127179] cdc_acm 4-2:1.8: ttyACM0: USB ACM device
[ 6274.133111] usb 4-2: bad CDC descriptors
[ 6274.143475] usb 4-2: bad CDC descriptors
[ 6358.144057] usb 4-2: USB disconnect, address 5
[ 6363.572030] usb 4-2: new full speed USB device using uhci_hcd and address 6
[ 6363.744998] usb 4-2: configuration #1 chosen from 1 choice
[ 6363.758924] cdc_acm 4-2:1.8: ttyACM0: USB ACM device
[ 6363.764907] usb 4-2: bad CDC descriptors
[ 6363.772421] usb 4-2: bad CDC descriptors
what is important here is ttyACM0 (my phone modem) form the command output remember your ttyXXX cause you will need it.

3- From terminal run this command


sudo pppconfig
4- Select Create a connection.

5- Enter your Internet provider name or any name you like. remember you will need this name to make the connection. I will call it isp.

6- Use your DNS server type mine is Dynamic.

7- Select PAP authentication method.

8- Enter you username. You can't leave this field empty.

9- Enter your password. You can't leave this field empty.

10- Enter you port speed. If you are not sure just accept the default.

11- Select method of dialing as Tone.

12 - Enter phone number.

13- You can select yes to detect modem automatically or no to specify it by you self i will choose no & i will use the name form step2 preceded with /dev


/dev/ttyACM0
14 - Select Finished write file & return to main menu. Configuration file will be in /etc/ppp/peers/CONNECTION_NAME_AT_STEP_2.

15- Quit the tool





Connect & Disconnect:

1- connect:


sudo pon CONNECTION_NAME_AT_STEP_2
2- disconnect:


sudo poff CONNECTION_NAME_AT_STEP_2
change CONNECTION_NAME_AT_STEP_2 with your specified name


If you want to change something you can edit /etc/ppp/peers/CONNECTION_NAME_AT_STEP_2

credit goes here (http://atunu.blogspot.com/2008/02/linux-redux-use-your-gprs-phone-as.html)