Blackberry Tethering - Linux


A blackberry phone, a service contract (researching, may be optional), a computer that doesn't already have internet access but will have it at the end of this tutorial.

I have attempted to build from source many different applications to include barry which is a linux application made to work with your blackberry.
After many failed attempts of trying to get tethering to work I ended up with weird gprs error basicly stating that the application could not see my device.
My device is a Blackberry Curve 8330 with the Verizon network.

I ended up finding another site which told me that for the Curve to work with tethering and Linux, you had to connect it not via the USB cable, but via bluetooth!
This finally worked for me! So I am basicly writing how I was able to get this up.
This was done on a laptop running Ubuntu so should work for Debian also.
The bluetooth adapter I am using is a trendnet usb2.0 adapter.

Inside /etc/bluetooth/ there should be a file called rfcomm.conf if not create it by using a text editor.
Inside that file should have something similar to:
rfcomm0 {
# # Automatically bind the device at startup
bind yes;
# # Bluetooth address of the device (mac address)
device 00:00:00:00:00:00;
# # RFCOMM channel for the connection
channel 3;
# # Description of the connection
comment "Bluetooth device";

Inside your /etc/ppp/peers folder create another text file called verizon (or whatever you want it to be called)
and you should have something similar to the following:
connect "/usr/sbin/chat -v -f /etc/chatscripts/verizon"
connect-delay 10000
user "[email protected]"
lcp-echo-failure 4
lcp-echo-interval 65535

As you see this file calls another file we'll need which is /etc/chatscripts/verizon which you will create and put the following info into it:
'' ATZ

Afterwards you should be able to type:
pon verizon
and everything should connect and sync up properly.
You will get a message that pops up on your blackberry stating "do you want to allow bluetooth connection from..." and as soon as you say yes, wait 10 seconds and do a ifconfig -a and you will see ppp0 network interface which will have an address.
If you are still having an issue connecting to check your /etc/resolv.conf file to see if you have appropriate dns nameservers.