How to connect gp internet in ubuntu via cable & via bluetooth

Many of us knew how to connect a modem in ubuntu via data cable. But who don’t here’s the how to.
Those who want to get connected via cable:

1.First connect your phone via data cable.
2.Then in terminal type sudo nautilus followed by your password.
3.Go to etc folder. Open the wvdial.conf file.
4.Write these lines there:
[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = AT&F
Init2 = AT E0 V1 &D2 &C1 &S0 S0=0 +dr=1
Init3 = AT+IFC=2,2;+CVHU=1
Init4 = ATS7=60+DS=3,0;&K3
Init5 = AT+CGDCONT=,,”gpinternet”
Init6 = ATS0=0
ISDN = 0
Modem Type = Nokia GSM Phone USB Modem
Phone = *99#
Username = any
Password = any
Stupid Mode = 1
Note:The term gpinternet in GP’s APN. For Bangla Link=”blweb”. For Aktel=”aktelinternet”
5.Dial your connection using:
sudo wvdial
6.Now you’re all set. Just press Ctrl+C to disconnect.
N.B:(I’ve avoided locating your modem part. Because if you connect it, It’ll be there.)
Those who doesn’t want any wire:
I don’t like bluez to use bluetooth modem in ubuntu. Rather I use it by following these process.
1.Turn the bluetooth in your phone on & make it discoverable.
2.Insert the bluetooth Dongle in the USB.
3.Open Terminal & type:
sudo hcitool scan

4.It should give following results:
Scanning …
00:11:34:BO:EE:FF gp
(Here 00:11:34:BO:EE:FF is the Phone’s address. It is different according to mobile. Yours must be different. And gp is the phone name)
5.Now copy the phone’s address and edit etc/bluetooth/rfcomm.conf file. To do,type the following command in terminal:
sudo gedit /etc/bluetooth/rfcomm.conf
Make the file as follows. Just delete the ADDRESS_OF_YOUR_PHONE and paste the phone’s address here
It’d be like this:
rfcomm0 {

device ADDRESS_OF_YOUR_PHONE; # You should paste the phone’s address here.
channel 1;
comment “Write the phone name”;

}

6.Now run the following two commands in terminal:
sudo sdptool add –channel=1 OPUSH
sudo rfcomm bind /dev/rfcomm0 ADDRESS_OF_YOUR_PHONE

7.Now open the /etc/bluetooth/hcid.conf file. To do it, type:
sudo gedit /etc/bluetooth/hcid.conf
Make the file as follows:
options {
autoinit yes;
security auto;
pairing multi;
passkey “1234″;
}

device {
name “%h-%d”;
class 0×000100;
iscan enable; pscan enable;
discovto 0;
lm accept;
lp rswitch,hold,sniff,park;
}

8.Now run the following command. It will create a new file named gpinternet in /etc/ppp/peers location:
sudo gedit /etc/ppp/peers/gpinternet
9.Make the file as follows:
/dev/rfcomm0 460800 connect ‘/usr/sbin/chat -v -f /etc/ppp/chat-gpinternet’

crtscts
modem -detach
noccp
defaultroute
usepeerdns
noauth
ipcp-accept-remote
ipcp-accept-local
noipdefault

10.Then create another file named chat-gpinternet in the /etc/ppp location:
sudo gedit /etc/ppp/chat-gpinternet
11.And make the file as follows:
” ATZ OK AT+CGDCONT=1,”IP”,”gpinternet”

OK “ATD*99***1#”

CONNECT ”
(This the configuration file according to your mobile operator. here gpinternet is the access point and *99***1# is the phone number. This configuration will only work for the mobile operator “Grameen Phone” of Bangladesh. If you are using another operator then you have to take the access point and phone number form the mobile operator.)
12.Every thing is done. Now just run the following command to connect internet via bluetooth by mobile:
sudo pppd call gpinternet
13.For first time, you need to give pass key both in mobile and pc. Now enjoy internet.

Every time you wanna connect to internet after reboot the pc, you need to run the command:
sudo sdptool add –channel=1 OPUSH
sudo rfcomm bind /dev/rfcomm0 ADDRESS_OF_YOUR_PHONE
sudo pppd call gpinternet

Hope this will work. For any types of assistance mail me at ZOMBIEGENERATOR@GMAIL.COM

7 comments to How to connect gp internet in ubuntu via cable & via bluetooth

  1. Mashuk says:

    Hi..
    i have a nokia 3110 classic!! so..is it just connecting the net using phone via data cable??
    in that case…what would i select after plugging my phone…select Nokia Mode or what??

  2. ptz camera says:

    I am so happy to read this. This is the kind of info that needs to be given and not the random misinformation that is at the other blogs. Appreciate your sharing this beneficial content.

  3. This will be a excellent web site, will you be interested in doing an interview about just how you developed it? If so e-mail me!

  4. Adam Feenan says:

    Well, I don’t know if that is going to work for me, however definitely proved helpful for you! :) Excellent post!

  5. Do you guys have a facebook fan web page? I looked for one on twitter but could not locate it, I would really like to become a fan!

  6. Highly energetic post, I loved that bit. Will there be a part 2?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s