S
sariq
Guest
Tutorial - internet through airtelgprs in Ubuntu
source: *help.ubuntu.com/community/BluetoothDialup
edited by me at some steps, as steps were not working. here is the steps which actually worked on aitel gprs:-
1.Make your phone Bluetooth discoverable.
Run the following at a shell prompt:
Copy the MAC address (the text with the capital letters, numbers, and ':'s) somewhere convenient. You'll need it many times. in my case it was 11:11:11:11:11:11
2.Pairing : search from your device, it will find your computer with the name ubuntu-0, pair it use pin 1234
3.Get the channel number for your phone's dialup service by running the following, replacing your-phone-mac-address with the proper data
* Look under "Service Name: Dial-up Networking"
* Under "Protocol Descriptor List:" and "RFCOMM", there should be a number after "Channel:"
* Remember that number; you'll need it for the rfcomm configuration, in my case it was 1
4.Edit file /etc/bluetooth/rfcomm.conf
* Paste the following into the file, replacing your-phone-mac-address and your-phone-rfcomm-channel with appropriate values
* Save and close the rfcomm.conf file
5. Restart bluetooth services. This will create the rfcomm0 device (and rfcomm1, rfcomm2 if configured)
6. Create a peers file for the connection
* Paste the following into the file (the file should start out blank)
* Save and close the BluetoothDialup file
7. Create a chatscript for the connection
* Paste the following into the file (the file should start out blank).
* Save and close the BluetoothDialup file
8. Dialing permission
* Add the user who wants dialing permission to the 'dialout' group
You can also do this from GUI, System->Administration->Users & Groups. Check for user permissions and make sure that Allow to use modem checkbox is checked.
9. using the connection in subsequent connections
* Start the connection using pon command
* End the connection using poff command
* After pon you can verify if the connection has started using plog command
source: *help.ubuntu.com/community/BluetoothDialup
edited by me at some steps, as steps were not working. here is the steps which actually worked on aitel gprs:-
1.Make your phone Bluetooth discoverable.
Run the following at a shell prompt:
Code:
$ hcitool scan
2.Pairing : search from your device, it will find your computer with the name ubuntu-0, pair it use pin 1234
3.Get the channel number for your phone's dialup service by running the following, replacing your-phone-mac-address with the proper data
Code:
$ sdptool browse your-phone-mac-address
* Under "Protocol Descriptor List:" and "RFCOMM", there should be a number after "Channel:"
* Remember that number; you'll need it for the rfcomm configuration, in my case it was 1
4.Edit file /etc/bluetooth/rfcomm.conf
Code:
$ gksudo gedit /etc/bluetooth/rfcomm.conf
Code:
rfcomm0 {
bind yes;
device 11:11:11:11:11:11;
channel 1;
comment "Bluetooth PPP connection";
}
5. Restart bluetooth services. This will create the rfcomm0 device (and rfcomm1, rfcomm2 if configured)
Code:
$ sudo /etc/init.d/bluez-utils restart
6. Create a peers file for the connection
Code:
$ gksudo gedit /etc/ppp/peers/BluetoothDialup
Code:
debug
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup"
usepeerdns
/dev/rfcomm0 115200
defaultroute
crtscts
lcp-echo-failure 0
7. Create a chatscript for the connection
Code:
$ gksudo gedit /etc/chatscripts/BluetoothDialup
Code:
TIMEOUT 35
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
OK 'AT+CGDCONT=1,"IP","airtelgprs.com"'
OK ATD*99***1#
CONNECT ""
8. Dialing permission
* Add the user who wants dialing permission to the 'dialout' group
Code:
$ sudo adduser your-username-here dialout
9. using the connection in subsequent connections
* Start the connection using pon command
Code:
$ pon BluetoothDialup
Code:
$ poff BluetoothDialup
Code:
$ plog BluetoothDialup
Last edited by a moderator: