Setting up PAM with Debian lenny and a BlackBerry Curve 8330, the easy way! 

I got a BlackBerry 8330 a little while ago and decided I'd figure out how to get PAM working. Like most things I like to do things the manual way, this way I know exactly whats going on. So to start you may need to 'apt-get install bluez-utils build-essential ppp ' to get everything you need.


in /etc/bluetooth/hcid.conf:
options {
autoinit yes;
security auto;
pairing multi;
passkey "1234";
}
device {
name "mylaptop";
class 0x000100;
iscan enable; pscan enable;
lm accept, master;
lp rswitch,hold,sniff,park;
}

and in /etc/bluetooth/pin
PIN:1234


next go to /usr/share/doc/bluez-utils/examples and run:
make
cp passkey-agent /usr/local/bin/

run that :
passkey-agent 1234

change the pin and passkey to what ever you want to use
now, restart bluetooth

/etc/init.d/bluetooth restart

find the bb:
hcitool scan

that should give you a list of devices, then run ( replace 00:11:22:33:44:55 with your BB hardware address ) :
sdptool browse 00:11:22:33:44:55

your blackberry should ask for your pin then once you have paired, run
sdptool search DUN
(note which channel its on)

next edit /etc/bluetooth/rfcomm.conf :

rfcomm1 {
bind yes;
device 00:11:22:33:44:55;
channel 3;
comment “Bluetooth BB Connection”;
}

and in /etc/ppp/peers/blackberry:
debug debug debug
nodetach
/dev/rfcomm1
115200
connect "/usr/sbin/chat -f /etc/chatscripts/blackberry"
nomultilink
defaultroute
noipdefault
ipcp-restart 7
ipcp-accept-local
ipcp-accept-remote
# need lcp-echo turned off, at least for t-mobile
# disconnects after few mn of inactivity.
# thanks to 'loon' for this info
lcp-echo-interval 0
lcp-echo-failure 999
modem
noauth
nocrtscts
noipdefault
novj # refused anyway, no point in trying every time
usepeerdns
user ""
password ""

and edit /etc/chatscripts/blackberry:

ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT \
'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED ABORT ERROR
SAY "Initializing\n"
'' ATZ
OK-AT-OK ATDT#777
CONNECT \d\c


then we can now:
pppd call blackberry

and it should be up and running !
<sarcasam>
That was easy huh?
</sarcasam>
[ add comment ] ( 19 views ) [ 0 trackbacks ] permalink ( 3 / 420 )

| 1 | 2 | 3 | 4 |