[Wolves] Mobile Broadband

Alex Willmer alex at moreati.org.uk
Sat Jan 12 11:28:04 GMT 2008


On Sat, 2008-01-12 at 00:08 +0000, Adam Sweet wrote:
> Alex, many thanks. I meant to say at the time that
> this is a considerably better explanation than I've
> been able to find anywhere else, including from the
> mobile phone company's employees. Sadly my brain has
> been elsewhere, so I'm saying now.
> 
> Thanks again.

You're welcome and you reminded me. I finally put some effort into
laptop -(bluetooth)-> phone -(3G)-> Internet. It turned out to be very
easy.

Scenario: Ubuntu 7.10 Laptop with working bluetooth, Windows Mobile 5
phone, T-Mobile WnW

Note: This sets up a Bluetooth Personal Area Network. It is not dialup,
the laptop gets a 192.168.0.x address by DHCP. Effectively the phone is
a broadband bluetooth router.

1. Install bluez-utils package with apt or System > Administration >
Synaptic package manager.
2. Switch on bluetooth, pair the phone and laptop. I initiated from the
phone, the gnome bluetooth applet requested the pin I'd just entered
into the phone and I was done.
3. Discover the hardware (MAC?) address of the phone. I used the command
'hcitool scan'.
4. Start Internet Connectio#!/bin/bash 

# btpan.sh - Connect to a bluetooth personal area network.

# Hardware address of bluetooth device.
# Discovered with hcitool scan, device must be paired
BT_DEVICE=00:1B:98:27:8F:C6

# Name of network interface created by pand. Default should be fine. 
BT_INTERFACE=bnep0

pand --connect $BT_DEVICE
ifconfig $BT_INTERFACE up
dhclient $BT_INTERFACEn Sharing on the Windows Mobile phone.
5. Amend and run the following, as root:

#!/bin/bash 

# btpan.sh - Connect to a bluetooth personal area network.

# Hardware address of bluetooth device.
# Discovered with hcitool scan, device must be paired
BT_DEVICE=00:1B:98:27:8F:C6

# Name of network interface created by pand. Default should be fine. 
BT_INTERFACE=bnep0

pand --connect $BT_DEVICE
ifconfig $BT_INTERFACE up
dhclient $BT_INTERFACE

I understand that with the next version of Network Manager in
Hardy/8.04, this will be as easy as WiFi is now. 




More information about the Wolves mailing list