This is on Ubuntu, should be the same for all others. You need bluez-utils already installed, and have your phone paired with the PC.
/etc/ppp/pap-secrets
* mobistar
/etc/ppp/chat-gprs
” AT
OK ‘AT&F’
OK ‘ATV1E0S0=0&D2&C1’
#OK ‘AT+CMEE=1’
OK ‘AT+cgdcont=1,"IP","mworld.be"’
OK-AT-OK ATD*99***1#
CONNECT ""
/etc/peers/gprs
/dev/rfcomm0 115200
connect ‘/usr/sbin/chat -v -f /etc/ppp/chat-gprs’
noauth
defaultroute
debug
user mobistar
/root/bin/umts.sh
#!/bin/bash
rfcomm release 0 2>/dev/null
rfcomm bind 0 00:12:D1:6E:9D:47 1
pon gprs
plog -f
poff
Substitute 00:12:D1:6E:9D:47 with your phone’s mac address (see hcitool scan)
Now running "/root/bin/umts.sh" should do the trick!