source: general/sysutils/bluez.xml@ 08de396

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 08de396 was 08de396, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Synchronize D-Bus with LFS.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@13003 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY bluez-download-http "http://www.kernel.org/pub/linux/bluetooth/bluez-&bluez-version;.tar.xz">
8 <!ENTITY bluez-download-ftp "ftp://ftp.kernel.org/pub/linux/bluetooth/bluez-&bluez-version;.tar.xz">
9 <!ENTITY bluez-md5sum "9c71404f86287cd9441e86783be3aae1">
10 <!ENTITY bluez-size "1.3 MB">
11 <!ENTITY bluez-buildsize "52 MB">
12 <!ENTITY bluez-time "0.6 SBU">
13]>
14
15<sect1 id="bluez" xreflabel="BlueZ-&bluez-version;">
16 <?dbhtml filename="bluez.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>BlueZ-&bluez-version;</title>
24
25 <indexterm zone="bluez">
26 <primary sortas="a-BlueZ">BlueZ</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to BlueZ</title>
31
32 <para>
33 The <application>BlueZ</application> package contains the
34 Bluetooth protocol stack for Linux.
35 </para>
36
37 &lfs75_built;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&bluez-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&bluez-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &bluez-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &bluez-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &bluez-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &bluez-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
76 <para>
77 Optional patch (required to work properly with gnome-bluetooth
78 and/or kde bluedevil):
79 <ulink url="&patch-root;/bluez-&bluez-version;-obexd_without_systemd-1.patch"/>
80 </para>
81 </listitem>
82 </itemizedlist>
83
84 <bridgehead renderas="sect3">BlueZ Dependencies</bridgehead>
85
86 <bridgehead renderas="sect4">Required</bridgehead>
87 <para role="required">
88 <xref linkend="glib2"/> and
89 <xref linkend="libical"/>
90 </para>
91
92 <para condition="html" role="usernotes">
93 User Notes: <ulink url="&blfs-wiki;/bluez"/>
94 </para>
95 </sect2>
96
97
98 <sect2 role="kernel" id="bluez-kernel">
99 <title>Kernel Configuration</title>
100
101 <para>
102 Enable the following options in the kernel configuration and recompile the
103 kernel if necessary:
104 </para>
105
106<screen><literal>[*] Networking support --->
107 &lt;*&gt; or &lt;M&gt; Bluetooth subsystem support --->
108 &lt;*&gt; or &lt;M&gt; RFCOMM protocol support
109 [*] RFCOMM TTY support
110 &lt;*&gt; or &lt;M&gt; BNEP protocol support
111 [*] Multicast filter support
112 [*] Protocol filter support
113 &lt;*&gt; or &lt;M&gt; HIDP protocol support
114
115 Bluetooth device drivers ---></literal></screen>
116
117 <para>
118 Select the appropriate drivers for your Bluetooth hardware.
119 </para>
120
121 <indexterm zone="bluez bluez-kernel">
122 <primary sortas="d-bluez">bluez</primary>
123 </indexterm>
124 </sect2>
125
126 <sect2 role="installation">
127 <title>Installation of BlueZ</title>
128
129 <para>
130 If you are going to use <application>BlueZ</application> with
131 gnome-bluetooth and/or kde bluedevil, apply the following patch:
132 </para>
133
134<screen><userinput>patch -Np1 -i ../bluez-&bluez-version;-obexd_without_systemd-1.patch</userinput></screen>
135
136 <para>
137 Install <application>BlueZ</application> by running the following
138 commands:
139 </para>
140
141<screen><userinput>./configure --prefix=/usr \
142 --sysconfdir=/etc \
143 --localstatedir=/var \
144 --enable-library \
145 --disable-systemd &amp;&amp;
146make</userinput></screen>
147
148 <para>
149 This package does not come with a test suite.
150 </para>
151
152 <para>
153 Now, as the <systemitem class="username">root</systemitem> user:
154 </para>
155
156<screen role="root"><userinput>make install</userinput></screen>
157
158 <para>
159 Install the main configuration file as the
160 <systemitem class="username">root</systemitem> user:
161 </para>
162
163<screen role="root"><userinput>install -v -dm755 /etc/bluetooth &amp;&amp;
164install -v -m644 src/main.conf /etc/bluetooth/main.conf</userinput></screen>
165
166 <para>
167 If desired, install the API documentation as the
168 <systemitem class="username">root</systemitem> user:
169 </para>
170
171<screen role="root"><userinput>install -v -dm755 /usr/share/doc/bluez-&bluez-version; &amp;&amp;
172install -v -m644 doc/*.txt /usr/share/doc/bluez-&bluez-version;</userinput></screen>
173
174 </sect2>
175
176
177 <sect2 role="commands">
178 <title>Command Explanations</title>
179
180 <para>
181 <parameter>--enable-library</parameter>: This switch enables building of the
182 <application>BlueZ</application> 4 compatibility library which is required by
183 some applications.
184 </para>
185
186 <para>
187 <parameter>--disable-systemd</parameter>: This switch is needed because
188 <application>systemd</application> is not part of LFS/BLFS. If you are
189 using systemd, remove this switch.
190 </para>
191
192 </sect2>
193
194 <sect2 role="configuration">
195 <title>Configuring BlueZ</title>
196
197 <sect3 id="bluez-config">
198 <title>Config Files</title>
199 <para>
200 <filename>/etc/bluetooth/main.conf</filename>
201 </para>
202
203 <indexterm zone="bluez bluez-config">
204 <primary
205 sortas="e-etc-bluetooth-main.conf">/etc/bluetooth/main.conf</primary>
206 </indexterm>
207
208 </sect3>
209
210 <sect3 id="bluez-init">
211 <title>Boot Script</title>
212
213 <para>
214 To automatically start the <command>bluetoothd</command> daemon when the
215 system is rebooted, install the
216 <filename>/etc/rc.d/init.d/bluetooth</filename> bootscript from the
217 <xref linkend="bootscripts"/> package.
218 </para>
219
220 <indexterm zone="bluez bluez-init">
221 <primary sortas="f-bluetooth">bluetooth</primary>
222 </indexterm>
223
224<screen role="root"><userinput>make install-bluetooth</userinput></screen>
225
226 </sect3>
227
228 </sect2>
229
230 <sect2 role="content">
231 <title>Contents</title>
232
233 <segmentedlist>
234 <segtitle>Installed Programs</segtitle>
235 <segtitle>Installed Library</segtitle>
236 <segtitle>Installed Directories</segtitle>
237
238 <seglistitem>
239 <seg>
240 bccmd, bluemoon, bluetoothctl, bluetoothd, btmon, ciptool,
241 hciattach, hciconfig, hcidump, hcitool, hid2hci, l2ping,
242 l2test, obexd, rctest, rfcomm, and sdptool
243 </seg>
244 <seg>
245 libbluetooth.so
246 </seg>
247 <seg>
248 /etc/bluetooth,
249 /usr/include/bluetooth,
250 /usr/libexec/bluetooth, and
251 /usr/share/doc/bluez-&bluez-version;
252 </seg>
253 </seglistitem>
254 </segmentedlist>
255
256 <variablelist>
257 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
258 <?dbfo list-presentation="list"?>
259 <?dbhtml list-presentation="table"?>
260
261 <varlistentry id="bccmd">
262 <term><command>bccmd</command></term>
263 <listitem>
264 <para>
265 is used to issue BlueCore commands to Cambridge Silicon
266 Radio devices.
267 </para>
268 <indexterm zone="bluez bccmd">
269 <primary sortas="b-bccmd">bccmd</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="bluetoothd">
275 <term><command>bluetoothd</command></term>
276 <listitem>
277 <para>
278 is the Bluetooth daemon.
279 </para>
280 <indexterm zone="bluez bluetoothd">
281 <primary sortas="b-bluetoothd">bluetoothd</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="ciptool">
287 <term><command>ciptool</command></term>
288 <listitem>
289 <para>
290 is used to set up, maintain, and inspect the CIP configuration
291 of the Bluetooth subsystem in the Linux kernel.
292 </para>
293 <indexterm zone="bluez ciptool">
294 <primary sortas="b-ciptool">ciptool</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
298
299 <varlistentry id="hciattach">
300 <term><command>hciattach</command></term>
301 <listitem>
302 <para>
303 is used to attach a serial UART to the Bluetooth stack
304 as HCI transport interface.
305 </para>
306 <indexterm zone="bluez hciattach">
307 <primary sortas="b-hciattach">hciattach</primary>
308 </indexterm>
309 </listitem>
310 </varlistentry>
311
312 <varlistentry id="hciconfig">
313 <term><command>hciconfig</command></term>
314 <listitem>
315 <para>
316 is used to configure Bluetooth devices.
317 </para>
318 <indexterm zone="bluez hciconfig">
319 <primary sortas="b-hciconfig">hciconfig</primary>
320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 <varlistentry id="hcitool">
325 <term><command>hcitool</command></term>
326 <listitem>
327 <para>
328 is used to configure Bluetooth connections and send some
329 special command to Bluetooth devices.
330 </para>
331 <indexterm zone="bluez hcitool">
332 <primary sortas="b-hcitool">hcitool</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
336
337 <varlistentry id="hid2hci">
338 <term><command>hid2hci</command></term>
339 <listitem>
340 <para>
341 is used to set up switch supported Bluetooth devices into
342 the HCI mode and back.
343 </para>
344 <indexterm zone="bluez hid2hci">
345 <primary sortas="b-hid2hci">hid2hci</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
350 <varlistentry id="l2ping">
351 <term><command>l2ping</command></term>
352 <listitem>
353 <para>
354 is used to send a L2CAP echo request to the Bluetooth MAC
355 address given in dotted hex notation.
356 </para>
357 <indexterm zone="bluez l2ping">
358 <primary sortas="b-l2ping">l2ping</primary>
359 </indexterm>
360 </listitem>
361 </varlistentry>
362
363 <varlistentry id="rctest">
364 <term><command>rctest</command></term>
365 <listitem>
366 <para>
367 is used to test RFCOMM communications on the
368 Bluetooth stack.
369 </para>
370 <indexterm zone="bluez rctest">
371 <primary sortas="b-rctest">rctest</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
376 <varlistentry id="rfcomm">
377 <term><command>rfcomm</command></term>
378 <listitem>
379 <para>
380 is used to set up, maintain, and inspect the RFCOMM
381 configuration of the Bluetooth subsystem in the
382 Linux kernel.
383 </para>
384 <indexterm zone="bluez rfcomm">
385 <primary sortas="b-rfcomm">rfcomm</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
390 <varlistentry id="sdptool">
391 <term><command>sdptool</command></term>
392 <listitem>
393 <para>
394 is used to perform SDP queries on Bluetooth devices.
395 </para>
396 <indexterm zone="bluez sdptool">
397 <primary sortas="b-sdptool">sdptool</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="libbluetooth">
403 <term><filename class="libraryfile">libbluetooth.so</filename></term>
404 <listitem>
405 <para>
406 contains the <application>BlueZ</application> 4 API functions.
407 </para>
408 <indexterm zone="bluez libbluetooth">
409 <primary sortas="c-libbluetooth">libbluetooth.so</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413 </variablelist>
414
415 </sect2>
416
417</sect1>
Note: See TracBrowser for help on using the repository browser.