Sunday, November 2, 2008

Ubuntu Bluetooth Dial Up Networking with Sprint

Ubuntu 8.04
Samsung Upstage

*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 the phone here”;
}

*Edit /etc/ppp/peers/ppp0:

/dev/rfcomm0
115200
connect "/usr/sbin/chat -v -f /etc/chatscripts/ppp0"
defaultroute
lcp-echo-failure 0
crtscts
usepeerdns
user ""
password ""

*Edit /etc/chatscripts/ppp0:

TIMEOUT 60
ABORT 'ERROR'
ABORT 'BUSY'
ABORT 'VOICE'
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "NO DIAL TONE"
ABORT "NO ANSWER"
SAY 'Starting Sprint...\n'
"" "ATZ"
OK 'ATE0V1'
'OK' 'AT+CSQ'
'OK' "ATDT#777"
CONNECT

*In terminal run command
sudo rfcomm bind 0 device-mac-address device-channel
pon ppp0

*In firefox, click file, uncheck work offline, tada! connected!

*To find device MAC and channel info, run command
sdptool search DUN

*When done with DUN, turn it off with command
poff ppp0

No comments: