LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-06-2011, 09:18 AM   #1
samtuke
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:

/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.
 
Old 08-06-2011, 03:19 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

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


Reply



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 11:54 AM
where is network configuration stored? lumix Linux - Networking 1 05-22-2007 04:46 PM
accessing hardware configuration stored in BIOS Tafta Programming 5 08-13-2004 03:02 PM
Where is the network configuration stored??? david_wliu Linux - Networking 2 03-06-2003 10:54 AM
Where is networking configuration stored? gonus Linux - Networking 4 11-04-2002 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:55 AM.

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