Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-06-2011, 10:18 AM   #1
LQ Newbie
Registered: Jul 2004
Location: Cambridge
Distribution: All, Primarily SuSE
Posts: 3

Rep: Reputation: 0
Question 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:

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:

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.


Old 08-06-2011, 04:19 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where are debian package names stored? cmnorton Linux - General 6 03-06-2008 12:54 PM
where is network configuration stored? lumix Linux - Networking 1 05-22-2007 05:46 PM
accessing hardware configuration stored in BIOS Tafta Programming 5 08-13-2004 04:02 PM
Where is the network configuration stored??? david_wliu Linux - Networking 2 03-06-2003 11:54 AM
Where is networking configuration stored? gonus Linux - Networking 4 11-04-2002 06:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration