it all flows together

scott barber blog

Archive for November, 2006

Thursday
Nov 30,2006

So there are a few tutorials out there for linking your Linux laptop to your Treo 650 for dial-up-networking, but nothing Ubuntu Dapper or Edgy Specific - or Sprint PCS Specific.

Here’s what I’ve done to get it all to play nicely together:

Install bluez-passkey-gnome. This allows you to input the PIN to get the treo and your bluetooth device to pair. I spent a good 1-2 hours on this alone!

sudo apt-get install bluez-passkey-gnome

In fact — add that to your gnome session. The executable is bt-applet

So now you can safely pair your Treo to your laptop and set it as a “trusted device”

I left my /etc/bluetooth/hcid.conf stock except I changed the PIN.

Now you need to edit a few files. Here’s what mine look like:

/etc/bluetooth/rfcomm.conf:

#
# RFCOMM configuration file.
#

rfcomm0 {
# Automatically bind the device at startup
bind yes;

# Bluetooth address of the device
device 00:07:E0:63:33:54;

# RFCOMM channel for the connection
channel 1;

# Description of the connection
comment "DUN to Treo 650";
}

/etc/chatscripts/BluetoothDialup:

TIMEOUT 5
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\rRINGING\r'
'' \rATZ
TIMEOUT 12
OK ATD#777
TIMEOUT 22
CONNECT ""

/etc/ppp/peers/BluetoothDialup:

noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup"
defaultroute
usepeerdns
/dev/rfcomm0 115200
local
novj

Now all you need to do to start-up is run:

sudo hcitool cc 00:07:E0:63:33:54
To pair up the Treo
and then

pon BluetoothDialup
to spin up the connection.
You’ll need to wait 20-30 secounds to get fully connected, but it’s sweet nectar when you see ir ppp0 device with an IP address and all.

To shut ‘er down you can just poff BluetoothDialup.

The cool thing about Sprint PCS is that they give you an outside routeable IP address!

Thanks to the following for inspiration / credit:

http://www.uslinux.net/docs/sprint-wireless-internet.php
for the ppp scripts to connect to sprint

https://help.ubuntu.com/community/BluetoothDialup
for the Ubuntu love

and
http://www.gurulabs.com/goodies/Using_Linux_and_Bluetooth_DUN_with_the_Treo650.php
for the original pimpin howto

Street Cred

Friday
Nov 17,2006

Working on some street cred in the community. See me at: Working With Rails: People

It’s like MySpace for Rails folks :)

Hey - I almost presented during the lighting talks in RubyConf.

I heart SP

Tuesday
Nov 14,2006

Heavy Rotation:
Snow Patrol - Eyes Open

Highly Recommended

Official Snow Patrol Site

OpenSearch Plugin Update

Monday
Nov 6,2006

I’ve just updated the scriptures.lds.org Firefox2 search plugin. I added some extra meta-data and a nice favicon logo. Enjoy

Economics of Me

Thursday
Nov 2,2006

I started Econ 301 at Western International University yesterday. The class seems good and it shouldn’t be too hard to get an ‘A’.

Bad News:
The textbook (softcover, mind you) costs a whopping $160!?!?! What gives? I feel like I’ve been financially taken on that one. Hello, Better Business Bureau?
That price is not ethical, period.
“In Soviet Russia you do not buy textbook — texbook buys you!”

Good News:
Greg Mankiw is the author and seems to be generally aligned with my personal New/Neo-Keynesian leanings. In fact check out his 7 economic New Year’s resolutions for 2006

Meta


Blogroll


Twitter


My del.icio.us


RSS My last.fm