source: general/sysutils/bluez.xml@ fd1493f

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 fd1493f was fd1493f, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Some modifications forgotten in BlueZ-5.17, thanks Armin K. Make explicit use of 'source setqt4' and same for qt5, in Poppler-0.24.5.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@12924 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 "5e6e41f0a275092ace303e813cd6f33b">
10 <!ENTITY bluez-size "1.3 MB">
11 <!ENTITY bluez-buildsize "51 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_checked;
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="dbus"/>,
89 <xref linkend="glib2"/>, and
90 <xref linkend="libical"/>
91 </para>
92
93 <para condition="html" role="usernotes">
94 User Notes: <ulink url="&blfs-wiki;/bluez"/>
95 </para>
96 </sect2>
97
98
99 <sect2 role="kernel" id="bluez-kernel">
100 <title>Kernel Configuration</title>
101
102 <para>
103 Enable the following options in the kernel configuration and recompile the
104 kernel if necessary:
105 </para>
106
107<screen><literal>[*] Networking support --->
108 &lt;*&gt; or &lt;M&gt; Bluetooth subsystem support --->
109 &lt;*&gt; or &lt;M&gt; RFCOMM protocol support
110 [*] RFCOMM TTY support
111 &lt;*&gt; or &lt;M&gt; BNEP protocol support
112 [*] Multicast filter support
113 [*] Protocol filter support
114 &lt;*&gt; or &lt;M&gt; HIDP protocol support
115
116 Bluetooth device drivers ---></literal></screen>
117
118 <para>
119 Select the appropriate drivers for your Bluetooth hardware.
120 </para>
121
122 <indexterm zone="bluez bluez-kernel">
123 <primary sortas="d-bluez">bluez</primary>
124 </indexterm>
125 </sect2>
126
127 <sect2 role="installation">
128 <title>Installation of BlueZ</title>
129
130 <para>
131 If you are going to use <application>BlueZ</application> with
132 gnome-bluetooth and/or kde bluedevil, apply the following patch:
133 </para>
134
135<screen><userinput>patch -Np1 -i ../bluez-&bluez-version;-obexd_without_systemd-1.patch</userinput></screen>
136
137 <para>
138 Install <application>BlueZ</application> by running the following
139 commands:
140 </para>
141
142<screen><userinput>./configure --prefix=/usr \
143 --sysconfdir=/etc \
144 --localstatedir=/var \
145 --enable-library \
146 --disable-systemd &amp;&amp;
147make</userinput></screen>
148
149 <para>
150 This package does not come with a test suite.
151 </para>
152
153 <para>
154 Now, as the <systemitem class="username">root</systemitem> user:
155 </para>
156
157<screen role="root"><userinput>make install</userinput></screen>
158
159 <para>
160 Install the main configuration file as the
161 <systemitem class="username">root</systemitem> user:
162 </para>
163
164<screen role="root"><userinput>install -v -dm755 /etc/bluetooth &amp;&amp;
165install -v -m644 src/main.conf /etc/bluetooth/main.conf</userinput></screen>
166
167 <para>
168 If desired, install the API documentation as the
169 <systemitem class="username">root</systemitem> user:
170 </para>
171
172<screen role="root"><userinput>install -v -dm755 /usr/share/doc/bluez-&bluez-version; &amp;&amp;
173install -v -m644 doc/*.txt /usr/share/doc/bluez-&bluez-version;</userinput></screen>
174
175 </sect2>
176
177
178 <sect2 role="commands">
179 <title>Command Explanations</title>
180
181 <para>
182 <parameter>--enable-library</parameter>: This switch enables building of the
183 <application>BlueZ</application> 4 compatibility library which is required by
184 some applications.
185 </para>
186
187 <para>
188 <parameter>--disable-systemd</parameter>: This switch is needed because
189 <application>systemd</application> is not part of LFS/BLFS. If you are
190 using systemd, remove this switch.
191 </para>
192
193 </sect2>
194
195 <sect2 role="configuration">
196 <title>Configuring BlueZ</title>
197
198 <sect3 id="bluez-config">
199 <title>Config Files</title>
200 <para>
201 <filename>/etc/bluetooth/main.conf</filename>
202 </para>
203
204 <indexterm zone="bluez bluez-config">
205 <primary
206 sortas="e-etc-bluetooth-main.conf">/etc/bluetooth/main.conf</primary>
207 </indexterm>
208
209 </sect3>
210
211 <sect3 id="bluez-init">
212 <title>Boot Script</title>
213
214 <para>
215 To automatically start the <command>bluetoothd</command> daemon when the
216 system is rebooted, install the
217 <filename>/etc/rc.d/init.d/bluetooth</filename> bootscript from the
218 <xref linkend="bootscripts"/> package.
219 </para>
220
221 <indexterm zone="bluez bluez-init">
222 <primary sortas="f-bluetooth">bluetooth</primary>
223 </indexterm>
224
225<screen role="root"><userinput>make install-bluetooth</userinput></screen>
226
227 </sect3>
228
229 </sect2>
230
231 <sect2 role="content">
232 <title>Contents</title>
233
234 <segmentedlist>
235 <segtitle>Installed Programs</segtitle>
236 <segtitle>Installed Library</segtitle>
237 <segtitle>Installed Directories</segtitle>
238
239 <seglistitem>
240 <seg>
241 bccmd, bluemoon, bluetoothctl, bluetoothd, btmon, ciptool,
242 hciattach, hciconfig, hcidump, hcitool, hid2hci, l2ping,
243 l2test, obexd, rctest, rfcomm, and sdptool
244 </seg>
245 <seg>
246 libbluetooth.so
247 </seg>
248 <seg>
249 /etc/bluetooth,
250 /usr/include/bluetooth,
251 /usr/libexec/bluetooth, and
252 /usr/share/doc/bluez-&bluez-version;
253 </seg>
254 </seglistitem>
255 </segmentedlist>
256
257 <variablelist>
258 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
259 <?dbfo list-presentation="list"?>
260 <?dbhtml list-presentation="table"?>
261
262 <varlistentry id="bccmd">
263 <term><command>bccmd</command></term>
264 <listitem>
265 <para>
266 is used to issue BlueCore commands to Cambridge Silicon
267 Radio devices.
268 </para>
269 <indexterm zone="bluez bccmd">
270 <primary sortas="b-bccmd">bccmd</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="bluetoothd">
276 <term><command>bluetoothd</command></term>
277 <listitem>
278 <para>
279 is the Bluetooth daemon.
280 </para>
281 <indexterm zone="bluez bluetoothd">
282 <primary sortas="b-bluetoothd">bluetoothd</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="ciptool">
288 <term><command>ciptool</command></term>
289 <listitem>
290 <para>
291 is used to set up, maintain, and inspect the CIP configuration
292 of the Bluetooth subsystem in the Linux kernel.
293 </para>
294 <indexterm zone="bluez ciptool">
295 <primary sortas="b-ciptool">ciptool</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="hciattach">
301 <term><command>hciattach</command></term>
302 <listitem>
303 <para>
304 is used to attach a serial UART to the Bluetooth stack
305 as HCI transport interface.
306 </para>
307 <indexterm zone="bluez hciattach">
308 <primary sortas="b-hciattach">hciattach</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="hciconfig">
314 <term><command>hciconfig</command></term>
315 <listitem>
316 <para>
317 is used to configure Bluetooth devices.
318 </para>
319 <indexterm zone="bluez hciconfig">
320 <primary sortas="b-hciconfig">hciconfig</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
325 <varlistentry id="hcitool">
326 <term><command>hcitool</command></term>
327 <listitem>
328 <para>
329 is used to configure Bluetooth connections and send some
330 special command to Bluetooth devices.
331 </para>
332 <indexterm zone="bluez hcitool">
333 <primary sortas="b-hcitool">hcitool</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 <varlistentry id="hid2hci">
339 <term><command>hid2hci</command></term>
340 <listitem>
341 <para>
342 is used to set up switch supported Bluetooth devices into
343 the HCI mode and back.
344 </para>
345 <indexterm zone="bluez hid2hci">
346 <primary sortas="b-hid2hci">hid2hci</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="l2ping">
352 <term><command>l2ping</command></term>
353 <listitem>
354 <para>
355 is used to send a L2CAP echo request to the Bluetooth MAC
356 address given in dotted hex notation.
357 </para>
358 <indexterm zone="bluez l2ping">
359 <primary sortas="b-l2ping">l2ping</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 <varlistentry id="rctest">
365 <term><command>rctest</command></term>
366 <listitem>
367 <para>
368 is used to test RFCOMM communications on the
369 Bluetooth stack.
370 </para>
371 <indexterm zone="bluez rctest">
372 <primary sortas="b-rctest">rctest</primary>
373 </indexterm>
374 </listitem>
375 </varlistentry>
376
377 <varlistentry id="rfcomm">
378 <term><command>rfcomm</command></term>
379 <listitem>
380 <para>
381 is used to set up, maintain, and inspect the RFCOMM
382 configuration of the Bluetooth subsystem in the
383 Linux kernel.
384 </para>
385 <indexterm zone="bluez rfcomm">
386 <primary sortas="b-rfcomm">rfcomm</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="sdptool">
392 <term><command>sdptool</command></term>
393 <listitem>
394 <para>
395 is used to perform SDP queries on Bluetooth devices.
396 </para>
397 <indexterm zone="bluez sdptool">
398 <primary sortas="b-sdptool">sdptool</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
403 <varlistentry id="libbluetooth">
404 <term><filename class="libraryfile">libbluetooth.so</filename></term>
405 <listitem>
406 <para>
407 contains the <application>BlueZ</application> 4 API functions.
408 </para>
409 <indexterm zone="bluez libbluetooth">
410 <primary sortas="c-libbluetooth">libbluetooth.so</primary>
411 </indexterm>
412 </listitem>
413 </varlistentry>
414 </variablelist>
415
416 </sect2>
417
418</sect1>
Note: See TracBrowser for help on using the repository browser.