Sprint Palm Treo 650 Bluetooth DUN with Ubuntu - the dirt
Being without internet just plain sucks. I’m in TX for the week, and in a facility where internet hasn’t been provided (tsk tsk) for my event. I have a connection where I’m staying that I only get to use late in the evening for a couple hours before getting enough sleep to get up and do it again. So I’ve done it. I got my phone tethered to give my laptop a ~56k connection in a pinch. I give you the results of the couple hours spent getting this working. Enjoy with my compliments.
This information is only useful once you’ve paired the phone and computer, and you know the address of your phone. There are a number of good resources to help you do that, so I won’t cover it here.
Now then.
Edit /etc/default/bluetooth:
…
# Change from 0 to 1.
DUND_ENABLED=1
Edit /etc/bluetooth/rfcomm.conf:
…
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device XX:XX:XX:XX:XX:XX;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment “Name of your phone here”;
}
Restart the bluetooth services:
sudo /etc/init.d/bluetooth restart
Configure your dialup connection using the network settings application:
System->Administration->Network
Use these settings:
General tab:
Enable this connection
Phone number: #777
Username: <your Sprint PCS vision user name@sprintpcs.com>
Password: <your Sprint PCS vision password>
Modem tab:
Modem port: /dev/rfcomm0
Options tab:
Set modem as default route to internet
Use the internet service provider nameservers
Tweak the connection:
Edit /etc/ppp/peers/ppp0:
…
crtscts
deflate 12
lcp-echo-failure 0
Edit /etc/chatscripts/ppp0:
Comment out or delete the line: “” “AT&FH0M0″ or similar. The script then should read:
…
“” “ATZ”
OK-AT-OK “ATDT#777″
TIMEOUT 75
CONNECT
Restart Network Manager by logging out and back in.
You should now have a “Dial Up Connections” menu in the network manager applet. Use that to (dis)connect. I hope someone finds this helpful.