LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Bluetooth configuration - where is it stored on Debian? (https://www.linuxquestions.org/questions/linux-newbie-8/bluetooth-configuration-where-is-it-stored-on-debian-895907/)

samtuke 08-06-2011 09:18 AM

Bluetooth configuration - where is it stored on Debian?
 
After many hours of searching I can confirm that on Debian 6 and Ubuntu 10.04 information about Bluetooth devices and pairing is not stored by default in any of the following places:

/etc/hcid.conf
/etc/bluetooth/main.conf
gconf registry

I have searched every file in / using ack-grep for the pin for my device in attempt to find where this data is stored. Nothing was found.

The source code for bluetooth-applet (for gnome) seems to indicate that bluetooth device info is encrypted and then saved using D-Bus:

Code:

proxy = dbus_g_proxy_new_for_name(conn, "org.bluez", "/hci0", "org.bluez.Adapter");
agent = bluetooth_agent_new();
bluetooth_agent_set_pincode_func(agent, agent_pincode, NULL);

Can anyone tell me where bluetooth device data is stored on Debian / Ubuntu, and how I can share this data between multiple Debian / Ubuntu distros? Currently I have to re pair all my devices each time I boot into a different distro. All I want to do is share the bluetooth config between the two distros so that I can booth up either of them and my bluetooth devices will work without having to be re-paired.

Thanks,

Sam.

MS3FGX 08-06-2011 03:19 PM

You are correct, in modern versions of BlueZ, all of the data is encrypted. It used to be that the PINs and pairing information was stored as plaintext files, but for security this has been changed.

The encrypted linkkeys and the rest of the pairing information is stored in /var/lib/bluetooth, but I don't know if moving that over to another machine will actually work.


All times are GMT -5. The time now is 07:26 PM.