![]() |
||||||||||
|
Let's switch off our wireless connection and let's get truly mobile.
Oh, wait, you'll need some internet connection to download a few necessities first.
After that it's a good idea to switch wireless internet off.
Warning: In Holland it is quite common to get a free phone with your mobile subscription.
Such phones can connect to and browse the internet.
However it is quite possible that you won't be able to use that phone as modem because telco companies want to sell you a separate subscription for mobile internet for your computer.
When you see the little bluetooth icon in your system Notification Area when the bluetooth dongle is inserted, you're ready to continue to the next step.
Usually your phone has an option to allow the connection between the two devices to be established automatically in the future.
If not, you'll have to grant permission to connect every time you want to connect to the internet.
So far so good. Now we need to edit a script. This has to be done as super user because ordinary mortals are not allowed to save to this file. Open a terminal screen. If you're familiar with terminal editors like vi, vim, emacs, nano or pico (or any other) you can simply type: sudo nano /etc/bluetooth/rfcomm.conf Replace nano with the editor of your choice of course. If you'd rather use a graphical editor type: gksudo gedit /etc/bluetooth/rfcomm.conf In either case you'll have to enter your password to authenticate yourself to the system as super user. Don't be alarmed if nothing appears to happen while you type your password, it's normal that it is not echoed back to you? The file you're editing will look something like the text below. All you have to do is to fill in the blanks. Most of the things are already there, you'll have to uncomment the important lines and probably change some values. I hade to change bind to yes, and channel to 2. And don't forget to uncomment the last line, before the closing }. The only thing that must be different in your case is the phone's MAC address, and probably the comment line.
#
# RFCOMM configuration file.
#
rfcomm0 {
# # Automatically bind the device at startup
bind yes;
#
# # Bluetooth address of the device
device 00:21:FE:8F:20:E8;
#
# # RFCOMM channel for the connection
channel 2;
#
# # Description of the connection
comment "Nokia E61";
}
You can use this same file to setup the system for more than one phone by copying the entire text and change the second entry to rfcomm1, or whatever. Now you'll have to let rfcomm make the connection. You can do that by hand by running sudo rfcomm connect rfcomm0 from the terminal. Or you can simply restart the PC, which will do that automatically for you.
Go to your package manager and install Gnome-ppp, or KPPP.
After that, run Gnome-ppp, which can normally be found in the Internet application menu.
Click the Setup button.
In the device field enter /dev/rfcomm0.
It's no use trying to search for the device, it won't be found.
You'll have to enter its name by hand.
If all's well you can now connect to the internet. But before you do, switch off your wireless connection now, otherwise you won't know whether it works or not. You'll briefly see the text Dialing and a few moments later you are connected.
Make sure you, as user, may connect using ppp.
In System - Administration - Users And Groups select properties and tick the box next to "Connect to Internet using a modem".
What if you can't connect?
Well it could be anything.
Have you entered everything as mentioned here?
Pay particular attention that you have removed all the leading spaces before the keywords in /etc/bluetooth/rfcomm.conf!
If everything went OK you are now connected to the internet through your phone. However starting Firefox 3 or the popular messenger program pidgin will present you with a nasty surprise. They simply don't work.
It's quite simple to get Firefox going, it only switched itself to Offline mode.
All you need to do is to switch it back online again.
Open the File menu and untick the "Work Offline" box.
Unfortunately it is not possible to get pidgin to work in a similar way.
For that you'll have to type another command in a terminal screen again.
At the same time this will also fix the offline going of Firefox.
sudo /etc/init.d/NetworkManager stop
I have searched the internet for a more permanent solution, but failed to find one so far.
The NetworkMananger doesn't communicate with ppp good enough, which causes this little problem.
If you don't use pidgin, you can also fix the problem by changing a setting in the Firefox about:config screen.
To do that enter "about:config" in your Firefox URL field.
Now you'll have to promise Firefox to be careful, otherwise you won't get to the settings.
|