You should have a package “wvdial” which dials the modem
To install it
$apt-get install wvdial
Then you have to configure a file in /etc/wvdial.conf by
$wvdialconf //this will detect your modem and its speed
edit the page /etc/wvdial.conf
$vim /etc/wvdial.conf
[Dialer Defaults]
Init = AT+CGDCONT=1,”IP”,”airtelgprs.com”,””,0,0
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
Stupid Mode = yes
Phone = *99#
Password = a
Username = b
Save the file and do $wvdial // you can see some messages in the terminal
open another terminal and type $ping google.com
and open a browser or type $firefox google.com
This configuration is only for connecting Mobile through usb..
If you want to connect it through bluetooth some more work is to be done…
First of all, install the bluetooth package
$apt-get install bluez-gnome bluez-utils
then configure the bluetooth connection by
$hcitool scan // you can see an ID and name of ur phone
Edit the file /etc/bluetooth/rfcomm.conf as follows
#
# RFCOMM configuration file.
#
rfcomm0 {
# # Automatically bind the device at startup
bind yes;
#
# # Bluetooth address of the device
device 00:1D:3B:09:12:C3;
#
# # RFCOMM channel for the connection
channel 1;
#
# # Description of the connection
comment “Dial-up Networking”;
}
then edit /etc/wvdial.conf as
[Dialer bluetooth]
Init = AT+CGDCONT=1,”IP”,”airtelgprs.com”,””,0,0
Modem Type = Bluetooth Modem
Baud = 460800
New PPPD = yes
Modem = /dev/rfcomm0
Stupid Mode = yes
Phone = *99#
Password = a
Username = b
Save the file and type
$wvdial bluetooth
and $firefox google.com //from another terminal
The complete wvdial.conf file looks like this:
[Dialer Defaults]
Init = AT+CGDCONT=1,”IP”,”airtelgprs.com”,””,0,0
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
Stupid Mode = yes
Phone = *99#
Password = a
Username = b
[Dialer bluetooth]
Init = AT+CGDCONT=1,”IP”,”airtelgprs.com”,””,0,0
Modem Type = Bluetooth Modem
Baud = 460800
New PPPD = yes
Modem = /dev/rfcomm0
Stupid Mode = yes
Phone = *99#
Password = a
Username = b
If you have usb type
$wvdial //this will automatically dial the default part
If you have bluetooth type
$wvdial bluetooth