source: general/sysutils/bluez-systemd.xml@ aedf4d7

7.6-blfs 7.6-systemd kde5-14269 kde5-14686 systemd-13485
Last change on this file since aedf4d7 was 96733af, checked in by Krejzi <krejzi@…>, 10 years ago

Cosmetic changes to last night's updates.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@13501 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 13.3 KB
RevLine 
[fee14fb]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">
[c67c630]9 <!ENTITY bluez-md5sum "d5a0d05520e013f2394bf1d0bac12889">
[ef84ea0]10 <!ENTITY bluez-size "1.3 MB">
[c67c630]11 <!ENTITY bluez-buildsize "59 MB">
[a99fd8bd]12 <!ENTITY bluez-time "0.8 SBU">
[fee14fb]13]>
14
[880c568]15<sect1 id="bluez" xreflabel="BlueZ-&bluez-version;">
[fee14fb]16 <?dbhtml filename="bluez.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[880c568]23 <title>BlueZ-&bluez-version;</title>
[fee14fb]24
25 <indexterm zone="bluez">
[880c568]26 <primary sortas="a-BlueZ">BlueZ</primary>
[fee14fb]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
[a99fd8bd]37 &lfs75_checked;
[fee14fb]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
[9ceb07f]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
[fee14fb]84 <bridgehead renderas="sect3">BlueZ Dependencies</bridgehead>
85
86 <bridgehead renderas="sect4">Required</bridgehead>
87 <para role="required">
[54666831]88 <xref linkend="dbus"/>,
89 <xref linkend="glib2"/>, and
[ef84ea0]90 <xref linkend="libical"/>
[fee14fb]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
[c67c630]107<screen><literal>[*] Networking support ---&gt; [CONFIG_NET]
108 &lt;*&gt; or &lt;M&gt; Bluetooth subsystem support ---&gt; [CONFIG_BT]
109 &lt;*&gt; or &lt;M&gt; RFCOMM protocol support [CONFIG_BT_RFCOMM]
110 [*] RFCOMM TTY support [CONFIG_BT_RFCOMM_TTY]
111 &lt;*&gt; or &lt;M&gt; BNEP protocol support [CONFIG_BT_BNEP]
112 [*] Multicast filter support [CONFIG_BT_BNEP_MC_FILTER]
113 [*] Protocol filter support [CONFIG_BT_BNEP_PROTO_FILTER]
114 &lt;*&gt; or &lt;M&gt; HIDP protocol support [CONFIG_BT_HIDP]
[fee14fb]115
[a99fd8bd]116 Bluetooth device drivers ---&gt;
117 &lt;*&gt; or &lt;M&gt; RF switch subsystem support</literal></screen>
[fee14fb]118
119 <para>
120 Select the appropriate drivers for your Bluetooth hardware.
121 </para>
122
123 <indexterm zone="bluez bluez-kernel">
124 <primary sortas="d-bluez">bluez</primary>
125 </indexterm>
126 </sect2>
127
128 <sect2 role="installation">
129 <title>Installation of BlueZ</title>
130
[9ceb07f]131 <para>
132 If you are going to use <application>BlueZ</application> with
133 gnome-bluetooth and/or kde bluedevil, apply the following patch:
134 </para>
135
[fd1493f]136<screen><userinput>patch -Np1 -i ../bluez-&bluez-version;-obexd_without_systemd-1.patch</userinput></screen>
[9ceb07f]137
[fee14fb]138 <para>
139 Install <application>BlueZ</application> by running the following
140 commands:
141 </para>
142
[ef84ea0]143<screen><userinput>./configure --prefix=/usr \
144 --sysconfdir=/etc \
145 --localstatedir=/var \
[459c449]146 --enable-library &amp;&amp;
[fee14fb]147make</userinput></screen>
148
149 <para>
[a99fd8bd]150 To test the results, issue: <userinput>make check</userinput>.
[fee14fb]151 </para>
152
153 <para>
154 Now, as the <systemitem class="username">root</systemitem> user:
155 </para>
156
[459c449]157<screen role="root"><userinput>make install</userinput></screen>
[fee14fb]158
159 <para>
[ef84ea0]160 Install the main configuration file as the
[fee14fb]161 <systemitem class="username">root</systemitem> user:
162 </para>
163
[ef84ea0]164<screen role="root"><userinput>install -v -dm755 /etc/bluetooth &amp;&amp;
165install -v -m644 src/main.conf /etc/bluetooth/main.conf</userinput></screen>
[fee14fb]166
167 <para>
168 If desired, install the API documentation as the
169 <systemitem class="username">root</systemitem> user:
170 </para>
171
[ef84ea0]172<screen role="root"><userinput>install -v -dm755 /usr/share/doc/bluez-&bluez-version; &amp;&amp;
[fee14fb]173install -v -m644 doc/*.txt /usr/share/doc/bluez-&bluez-version;</userinput></screen>
[ef84ea0]174
[fee14fb]175 </sect2>
176
177 <sect2 role="commands">
178 <title>Command Explanations</title>
179
180 <para>
[ef84ea0]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.
[fee14fb]184 </para>
185
186 </sect2>
187
188 <sect2 role="configuration">
189 <title>Configuring BlueZ</title>
190
191 <sect3 id="bluez-config">
[a99fd8bd]192 <title>Configuration Files</title>
[fee14fb]193 <para>
[a99fd8bd]194 <filename>/etc/bluetooth/main.conf</filename> is installed automatically
195 during the install. Additionally, there are three supplementary
196 configuration files. /etc/sysconfig/bluetooth is
197 installed as a part of the boot script below. In addition
[8f13b97]198 you optionally can install the following as the
[a99fd8bd]199 <systemitem class="username">root</systemitem> user:
[fee14fb]200 </para>
[a99fd8bd]201
202<screen role="root"><userinput>cat > /etc/bluetooth/rfcomm.conf &lt;&lt; "EOF"</userinput>
203<literal># rfcomm.conf
204# Set up the RFCOMM configuration of the Bluetooth subsystem in the Linux kernel.
205# Use one line per command
206# See the rfcomm man page for options
207
208# End of rfcomm.conf</literal></screen>
209
210<screen role="root"><userinput>cat > /etc/bluetooth/uart.conf &lt;&lt; "EOF"</userinput>
211<literal>#uart.conf
212# Attach serial devices via UART HCI to BlueZ stack
213# Use one line per device
214# See the hciattach man page for options
215
216# End of uart.conf</literal></screen>
[fee14fb]217
218 <indexterm zone="bluez bluez-config">
219 <primary
220 sortas="e-etc-bluetooth-main.conf">/etc/bluetooth/main.conf</primary>
221 </indexterm>
222
223 </sect3>
224
225 <sect3 id="bluez-init">
[96733af]226 <title>Systemd Units</title>
[fee14fb]227
228 <para>
[96733af]229 To start the <command>bluetoothd</command> daemon at boot,
230 enable the previously installed systemd unit by
[459c449]231 running the following command as the
232 <systemitem class="username">root</systemitem> user:
[fee14fb]233 </para>
234
235 <indexterm zone="bluez bluez-init">
236 <primary sortas="f-bluetooth">bluetooth</primary>
237 </indexterm>
238
[459c449]239<screen role="root"><userinput>systemctl enable bluetooth</userinput></screen>
240
241 <note>
242 <para>
[96733af]243 <application>Systemd</application> will start the Bluetooth daemon
244 only when a bluetooth device is detected on the system.
[459c449]245 </para>
246 </note>
[ef84ea0]247
[fee14fb]248 </sect3>
[ef84ea0]249
[fee14fb]250 </sect2>
251
252 <sect2 role="content">
253 <title>Contents</title>
254
255 <segmentedlist>
256 <segtitle>Installed Programs</segtitle>
257 <segtitle>Installed Library</segtitle>
258 <segtitle>Installed Directories</segtitle>
259
260 <seglistitem>
261 <seg>
[ef84ea0]262 bccmd, bluemoon, bluetoothctl, bluetoothd, btmon, ciptool,
263 hciattach, hciconfig, hcidump, hcitool, hid2hci, l2ping,
264 l2test, obexd, rctest, rfcomm, and sdptool
[fee14fb]265 </seg>
266 <seg>
267 libbluetooth.so
268 </seg>
269 <seg>
270 /etc/bluetooth,
271 /usr/include/bluetooth,
[ef84ea0]272 /usr/libexec/bluetooth, and
273 /usr/share/doc/bluez-&bluez-version;
[fee14fb]274 </seg>
275 </seglistitem>
276 </segmentedlist>
277
278 <variablelist>
279 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
280 <?dbfo list-presentation="list"?>
281 <?dbhtml list-presentation="table"?>
282
283 <varlistentry id="bccmd">
284 <term><command>bccmd</command></term>
285 <listitem>
286 <para>
287 is used to issue BlueCore commands to Cambridge Silicon
288 Radio devices.
289 </para>
290 <indexterm zone="bluez bccmd">
291 <primary sortas="b-bccmd">bccmd</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="bluetoothd">
297 <term><command>bluetoothd</command></term>
298 <listitem>
299 <para>
300 is the Bluetooth daemon.
301 </para>
302 <indexterm zone="bluez bluetoothd">
303 <primary sortas="b-bluetoothd">bluetoothd</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="ciptool">
309 <term><command>ciptool</command></term>
310 <listitem>
311 <para>
312 is used to set up, maintain, and inspect the CIP configuration
313 of the Bluetooth subsystem in the Linux kernel.
314 </para>
315 <indexterm zone="bluez ciptool">
316 <primary sortas="b-ciptool">ciptool</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry id="hciattach">
322 <term><command>hciattach</command></term>
323 <listitem>
324 <para>
325 is used to attach a serial UART to the Bluetooth stack
326 as HCI transport interface.
327 </para>
328 <indexterm zone="bluez hciattach">
329 <primary sortas="b-hciattach">hciattach</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
334 <varlistentry id="hciconfig">
335 <term><command>hciconfig</command></term>
336 <listitem>
337 <para>
338 is used to configure Bluetooth devices.
339 </para>
340 <indexterm zone="bluez hciconfig">
341 <primary sortas="b-hciconfig">hciconfig</primary>
342 </indexterm>
343 </listitem>
344 </varlistentry>
345
346 <varlistentry id="hcitool">
347 <term><command>hcitool</command></term>
348 <listitem>
349 <para>
350 is used to configure Bluetooth connections and send some
351 special command to Bluetooth devices.
352 </para>
353 <indexterm zone="bluez hcitool">
354 <primary sortas="b-hcitool">hcitool</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
359 <varlistentry id="hid2hci">
360 <term><command>hid2hci</command></term>
361 <listitem>
362 <para>
363 is used to set up switch supported Bluetooth devices into
364 the HCI mode and back.
365 </para>
366 <indexterm zone="bluez hid2hci">
367 <primary sortas="b-hid2hci">hid2hci</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 <varlistentry id="l2ping">
373 <term><command>l2ping</command></term>
374 <listitem>
375 <para>
376 is used to send a L2CAP echo request to the Bluetooth MAC
377 address given in dotted hex notation.
378 </para>
379 <indexterm zone="bluez l2ping">
380 <primary sortas="b-l2ping">l2ping</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
[ef84ea0]385 <varlistentry id="rctest">
386 <term><command>rctest</command></term>
[fee14fb]387 <listitem>
388 <para>
[ef84ea0]389 is used to test RFCOMM communications on the
390 Bluetooth stack.
[fee14fb]391 </para>
[ef84ea0]392 <indexterm zone="bluez rctest">
393 <primary sortas="b-rctest">rctest</primary>
[fee14fb]394 </indexterm>
395 </listitem>
396 </varlistentry>
397
398 <varlistentry id="rfcomm">
399 <term><command>rfcomm</command></term>
400 <listitem>
401 <para>
402 is used to set up, maintain, and inspect the RFCOMM
403 configuration of the Bluetooth subsystem in the
404 Linux kernel.
405 </para>
406 <indexterm zone="bluez rfcomm">
407 <primary sortas="b-rfcomm">rfcomm</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="sdptool">
413 <term><command>sdptool</command></term>
414 <listitem>
415 <para>
416 is used to perform SDP queries on Bluetooth devices.
417 </para>
418 <indexterm zone="bluez sdptool">
419 <primary sortas="b-sdptool">sdptool</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
424 <varlistentry id="libbluetooth">
425 <term><filename class="libraryfile">libbluetooth.so</filename></term>
426 <listitem>
427 <para>
[ef84ea0]428 contains the <application>BlueZ</application> 4 API functions.
[fee14fb]429 </para>
430 <indexterm zone="bluez libbluetooth">
431 <primary sortas="c-libbluetooth">libbluetooth.so</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435 </variablelist>
436
437 </sect2>
438
439</sect1>
Note: See TracBrowser for help on using the repository browser.