লিনাক্স মিন্টে ব্লুটুথ ইন্টারনেট কানেকশন:

লিনাক্স মিন্টে ব্লুটুথ-ইন্টারনেট কানেকশন করার জন্য আমি প্রথমে বহু চেষ্টা করেও ব্যর্থ হয়েছিলাম। ইনটারনেট ঘেঁটে নানা পদ্ধতিতে চেষ্টা করেও যখন হলোনা তখন সারিম ভাইয়ের শরণাপন্ন হই। তিনি একটা বাংলা সাইটের লিংক দিলেন। এই উপায়ে চেষ্টা করে কাজ হয়েছে। সামান্য কিছু রদবদল করতে হয়েছে অবশ্য। হ্যান্ডসেট ভেদে এবং ISP- ভেদে সেটিংস-এ সামান্য পরিবর্তন করতে হয়। আমি সেগুলো জায়গামত লিখে দিয়েছি। নিচের লেখাটির জন্য আমি সারিম ভাই এবং উক্ত সাইটের লেখকের কাছে ঋণী। আশা করি বাংলাদেশী নেট-ইউজারদের কাজে লাগবে।

I am using these:

Handset: Nokia 6151 as blue-tooth modem.
Service: grameen-phone P2 internet service.
APN (access point): gpinternet.
Dial number: *99#

Now let's see the method step by step: (look, we have to make 3 configuration files. That's all):

1. প্রথমে পেয়ার করুন। এক্সপির মতই নিয়ম। How to pair your handset with linux mint:

Turn on bluetooth at your mobile set, make it shown to all.
Go to the bluetooth set-up icon on your computer, search new device, select your handset, pair it, put the pass-code if needed. Done.

2. Find out the MAC-address of your handset.
go to the terminal and write this:

hcitool scan

you will see something like this:

Scanning ...
00:18:C5:CB:7F:55 Nokia6151 Dr.Mazhar

the red colored thing is 'Mac address' and blue colored thing is 'name' of my handset.

3. Find out the channel of dial up networking service of your handset:
Enter this in terminal:

sdptool search DUN

You will see something like this:

Inquiring ...
Searching for DUN on 00:18:C5:CB:7F:55 ...
Service Name: Dial-up networking
Service RecHandle: 0x10000
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100

Look, we got it. channel is: 1

4. Make a configuration file ( rfcomm.conf ):

Enter this in terminal:

sudo gedit /etc/bluetooth/rfcomm.conf

A file will open. It is usually empty file. If this file contains any text, delete all and paste only this thing on the file:
rfcomm0 {
bind yes;
device 00:18:C5:CB:7F:55;
channel 1;
comment "Bluetooth PPP Connection";
Note, the green part is your MAC address and the blue part is your channel. These may be different for your handset. So, write these carefully.
Save and close the file.

5. Restart your bluetooth device:

Enter any one of the followings in terminal, it will restart the bluetooth connection.

sudo /etc/init.d/bluetooth restart

sudo /etc/init.d/bluez-utils restart

In my case, first one stopped my bluetooth paring and second one showed error. Then I paired the handset again manually, just like step-1.

6. Make another configuration file:

Enter this in the terminal:

sudo gedit /etc/ppp/peers/BluetoothDialup

A file will open. Paste and keep only this thing in the file:

connect "/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup"
/dev/rfcomm0 115200
lcp-echo-failure 0

Save and close the file.

7. Make another configuration file:

Enter this in terminal:

sudo gedit /etc/chatscripts/BluetoothDialup

A file will open. Paste and keep only this thing in the file:
'' \rAT
OK 'AT+CGDCONT=1,"IP","gpinternet"'
OK ATD*99#

Note, the black part is your 'APN or access point' and the blue part is your dial number. These may be different in your ISP. Please ask your ISP about these things. The whole red line should be deleted in case of Banglalink and Aktel.

Save and close the file.

Our configuration is done.

How to connect and disconnect:

A. We will see our connection option in the task-bar icon for 'network-connections'. Just click on it to connect and click again to disconnect. I am doing so in my Linux Mint-8.

B. If you right click on the blue-tooth icon on the task-bar, you will see 'recent connections > blue-tooth dial up'. You can use it too for connecting and disconnecting. Just click on it.

C. If you have 'blue man' installed, you can use it for connecting and disconnecting. It's graphical.

D. We can also use terminal to connect and disconnect. (Do it at the very first time. Later use any of the easy options given above).

For connecting: sudo pon BluetoothDialup
For disconnecting: sudo poff BluetoothDialup

**''Bluez-gnome'' and ''blue-man'': Install these 2 via your package manger. These 2 will help you managing bluetooth setup. I installed these (using my usb data cable > mobile set > internet) before setting up bluetooth modem. I found, Linux mint and puppy linux readily recognize usb-modems, and internet connection is so easy! Only few clicks!


1. Terminal may ask you for the root password sometimes, in such cases write it and press enter.

2. Sometimes, one command may show error, in such cases enter the command again.

3. You can install another better bluetooth driver in your machine. Just write 'bluetooth' in the package manager and choose a driver to install. I found 'blue man' is easy and graphical.

4. Sometimes when I click on the 'connect' option, it says: ''this device has no GPRS/GSM service'', then I click 'ok'. Then connection establishes!

5. Why bluetooth connection is so difficult in Linux? Because hardware manufacturers usually do not make drivers for Linux. This is not the fault of Linux, rather fault of those manufacturers. But see our great programmers made the solution. Linux is so flexible!

Happy Linuxing.


No comments: