Internet with your mobile Phone over Bluetooth with NetworkManager
Sometimes you want to connect to the internet with your mobile phone over bluetooth with your laptop.
To make this task easier I wrote a small python script. It needs pybluez and bluez.
# yum install pybluez bluez
Then you can start the python script as root:
# python dialup-bluetooth.py
It first searches for all bluetooth devices, which provide the Dialup Service, and displays a list, where you can select your mobile.
Then it calls rfcomm and creates a rfcomm tty, which is bound to the bluetooth channel, and inserts a fake serial modem to hal with hal-device.
This triggers NetworkManager, and after 2 seconds your mobile phone should be displayed in the NetworkManager list as a GSM device, which you can configure and use in NetworkManager.
Maybe someone feels like doing a clean implementation, using the D-BUS interface for bluetooth, hal and NetworkManager.