source: general/sysutils/dbus.xml@ 18310d86

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 18310d86 was 5aca553e, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Updated to xf86-input-synaptics-1.7.5.
Updated to xf86-input-evdev-2.8.3.

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

  • Property mode set to 100644
File size: 12.5 KB
RevLine 
[e8e3312d]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[e8e3312d]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[bf325a39]7 <!ENTITY dbus-download-http "http://dbus.freedesktop.org/releases/dbus/dbus-&dbus-version;.tar.gz">
[30d0aef]8 <!ENTITY dbus-download-ftp " ">
[a27a478]9 <!ENTITY dbus-md5sum "059fbe84e39fc99c67a14f15b1f39dff">
10 <!ENTITY dbus-size "1.8 MB">
[7776909]11 <!ENTITY dbus-buildsize "86 MB (additional 26 MB installed)">
[a27a478]12 <!ENTITY dbus-time "0.35 SBU (additional 1.3 SBU for tests)">
[e8e3312d]13]>
14
[08de396]15<sect1 id="dbus-launch" xreflabel="D-Bus-&dbus-version;/dbus-launch">
[e8e3312d]16 <?dbhtml filename="dbus.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[08de396]23 <title>D-Bus-&dbus-version; (dbus-launch)</title>
[e8e3312d]24
[08de396]25 <indexterm zone="dbus-launch">
26 <primary sortas="a-dbus-launch">dbus-launch</primary>
[e8e3312d]27 </indexterm>
28
29 <sect2 role="package">
[08de396]30 <title>Introduction to D-Bus (with Xorg)</title>
[e8e3312d]31
[0b83a69]32 <para>
[08de396]33 <application>D-Bus</application> was installed in LFS, but one program
34 needs to be updated after Xorg is installed to properly support
35 window managers.
[0b83a69]36 </para>
[e8e3312d]37
[08de396]38 <!-- &lfs75_checked; -->
[482477c]39
[e8e3312d]40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[0b83a69]43 <para>
44 Download (HTTP): <ulink url="&dbus-download-http;"/>
45 </para>
[e8e3312d]46 </listitem>
47 <listitem>
[0b83a69]48 <para>
49 Download (FTP): <ulink url="&dbus-download-ftp;"/>
50 </para>
[e8e3312d]51 </listitem>
52 <listitem>
[0b83a69]53 <para>
54 Download MD5 sum: &dbus-md5sum;
55 </para>
[e8e3312d]56 </listitem>
57 <listitem>
[0b83a69]58 <para>
59 Download size: &dbus-size;
60 </para>
[e8e3312d]61 </listitem>
62 <listitem>
[0b83a69]63 <para>
64 Estimated disk space required: &dbus-buildsize;
65 </para>
[e8e3312d]66 </listitem>
67 <listitem>
[0b83a69]68 <para>
69 Estimated build time: &dbus-time;
70 </para>
[e8e3312d]71 </listitem>
72 </itemizedlist>
73
[02e742b]74 <bridgehead renderas="sect3">D-Bus Dependencies</bridgehead>
[e8e3312d]75
[bf325a39]76 <bridgehead renderas="sect4">Required</bridgehead>
[b6a2a0e]77 <para role="required">
[0b83a69]78 <xref linkend="xorg7-lib"/>
79 (for <command>dbus-launch</command> program)
80 </para>
[adfdc8b]81
[e8e3312d]82 <bridgehead renderas="sect4">Optional</bridgehead>
[b6a2a0e]83 <para role="optional">
[f1d25d2]84 For the tests:
[cafc6c84]85 <xref linkend="dbus-glib"/>,
86 <xref linkend="dbus-python"/>, and
87 <xref linkend="pygobject2"/>;
[f1d25d2]88 for the API documentation:
89 <xref linkend="doxygen"/>;
90 for man pages and XML/HTML documentation:
91 <xref linkend="xmlto"/>
[0b83a69]92 </para>
[c45cb57]93
[1039de3]94 <para condition="html" role="usernotes">User Notes:
[0b83a69]95 <ulink url="&blfs-wiki;/dbus"/>
96 </para>
[e8e3312d]97 </sect2>
98
99 <sect2 role="installation">
[02e742b]100 <title>Installation of D-Bus</title>
[e8e3312d]101
[0b83a69]102 <para>
[08de396]103 Build <application>D-Bus</application> by running the following commands:
[0b83a69]104 </para>
[e8e3312d]105
[08de396]106<screen><userinput>./configure --prefix=/usr \
107 --sysconfdir=/etc \
108 --localstatedir=/var \
[0b83a69]109 --with-console-auth-dir=/run/console/ \
[028759b]110 --disable-static &amp;&amp;
[e8e3312d]111make</userinput></screen>
112
[0b83a69]113 <para>
114 See below for test instructions.
115 </para>
[c45cb57]116
[0b83a69]117 <para>
118 Now, as the <systemitem class="username">root</systemitem> user:
119 </para>
[e8e3312d]120
[5aca553e]121<screen role="root"><userinput>install -m 755 tools/dbus-launch /usr/bin</userinput></screen>
[b6a2a0e]122
[0b83a69]123 <para>
[08de396]124 If you built the optional documentation, install it as the
[3bbf74c5]125 <systemitem class="username">root</systemitem> user:
126 </para>
127
[08de396]128<screen role="root"><userinput>cp -a doc/api/{html,xml} /usr/share/doc/dbus-&dbus-version;</userinput></screen>
129
[3bbf74c5]130 <para>
[0b83a69]131 The dbus tests cannot be run until after <xref linkend="dbus-glib"/>
[cafc6c84]132 has been installed. They must be run as an unprivileged user from a
133 local session. Tests fail through ssh. If you want to run only the unit
134 tests, replace, below, <parameter>--enable-tests</parameter> by
[4947a7a]135 <parameter>--enable-embedded-tests</parameter>, otherwise,
136 <xref linkend="dbus-python"/> has to be installed, before.
137 The tests require passing additional parameters to
138 <command>configure</command> and exposing additional functionality in
139 the binaries. These interfaces are not intended to be used in a
140 production build of <application>D-Bus</application>. If you would
141 like to run the tests, issue the following commands:
[0b83a69]142 </para>
[0d7900a]143
[c802d3c]144<screen><userinput>make distclean &amp;&amp;
145./configure --enable-tests --enable-asserts &amp;&amp;
146make &amp;&amp;
147make check &amp;&amp;
[b6a2a0e]148make distclean</userinput></screen>
[c45cb57]149
[c802d3c]150 <para>
[4947a7a]151 If <command>run-test.sh</command> fails, it can be disabled with the
152 following sed, before running the commands for the tests:
[c802d3c]153 </para>
154
155<screen><userinput>sed -i -e 's:run-test.sh:$(NULL):g' test/name-test/Makefile.in</userinput></screen>
156
[08de396]157 <note><para>
158 There has been a report that the tests may fail if running
[0b83a69]159 inside a Midnight Commander shell.
[0d7900a]160 You may get out-of-memory error messages when running the tests.
[0b83a69]161 These are normal and can be safely ignored.
[08de396]162 </para></note>
[e8e3312d]163
164 </sect2>
165
166 <sect2 role="commands">
167 <title>Command Explanations</title>
168
[0b83a69]169 <para>
170 <parameter>--with-console-auth-dir=/run/console/</parameter>: This
171 parameter specifies location of the
[b33c421]172 <application>ConsoleKit</application> auth dir.
[0b83a69]173 </para>
174
[2fdcd9df]175 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[0b83a69]176 href="../../xincludes/static-libraries.xml"/>
177
178 <para>
[e5347c36]179 <parameter>--enable-tests</parameter>: Build extra parts of the code to
[4947a7a]180 support all tests. Configure will end with a NOTE warning about increased
181 size of libraries and decreased security.
182 </para>
183
184 <para>
185 <parameter>--enable-embedded-tests</parameter>: Build extra parts of the
186 code to support only unit tests. Configure will end with a NOTE warning
187 about increased size of libraries and decreased security.
[0b83a69]188 </para>
189
190 <para>
[e5347c36]191 <parameter>--enable-asserts</parameter>: Enable debugging code to run
192 assertions for statements normally assumed to be true. This prevents a
193 warning that '<parameter>--enable-tests</parameter>' on its own is only
194 useful for profiling and might not give true results for all tests, but
195 adds its own NOTE that this should not be used in a production build.
[0b83a69]196 </para>
[30d0aef]197
[e8e3312d]198 </sect2>
199
200 <sect2 role="configuration">
201 <title>Configuring dbus</title>
202
203 <sect3 id="dbus-config">
204 <title>Config Files</title>
[0b83a69]205
206 <para>
207 <filename>/etc/dbus-1/session.conf</filename>,
208 <filename>/etc/dbus-1/system.conf</filename> and
209 <filename>/etc/dbus-1/system.d/*</filename>
210 </para>
[e8e3312d]211
[08de396]212 <indexterm zone="dbus-launch dbus-config">
[e8e3312d]213 <primary sortas="e-etc-dbus-1-session.conf">/etc/dbus-1/session.conf</primary>
214 </indexterm>
215
[08de396]216 <indexterm zone="dbus-launch dbus-config">
[e8e3312d]217 <primary sortas="e-etc-dbus-1/system.conf">/etc/dbus-1/system.conf</primary>
218 </indexterm>
219
[08de396]220 <indexterm zone="dbus-launch dbus-config">
[c45cb57]221 <primary sortas="e-etc-dbus-1-system.d-star">/etc/dbus-1/system.d/*</primary>
[e8e3312d]222 </indexterm>
223
224 </sect3>
225
[e9efab0b]226 <sect3 id="dbus-session-config" xreflabel="D-Bus custom services directory">
227 <title>Configuration Information</title>
[e8e3312d]228
[0b83a69]229 <para>
230 The configuration files listed above should probably not be
231 modified. If changes are required, you should create
232 <filename>/etc/dbus-1/session-local.conf</filename> and/or
233 <filename>/etc/dbus-1/system-local.conf</filename> and make any
234 desired changes to these files.
235 </para>
236
237 <para>
238 If any packages install a
239 <application>D-Bus</application> <filename>.service</filename>
240 file outside of the standard <filename
241 class="directory">/usr/share/dbus-1/services</filename> directory,
242 that directory should be added to the local session configuration.
243 For instance, <filename
244 class="directory">/usr/local/share/dbus-1/services</filename> can
245 be added by performing the following commands as the
246 <systemitem class="username">root</systemitem> user:
247 </para>
[57aa7a28]248
249<screen role="root"><userinput>cat &gt; /etc/dbus-1/session-local.conf &lt;&lt; "EOF"
250<literal>&lt;!DOCTYPE busconfig PUBLIC
251 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
252 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"&gt;
253&lt;busconfig&gt;
254
255 &lt;!-- Search for .service files in /usr/local --&gt;
256 &lt;servicedir&gt;/usr/local/share/dbus-1/services&lt;/servicedir&gt;
257
258&lt;/busconfig&gt;</literal>
259EOF</userinput></screen>
260
[e8e3312d]261 </sect3>
262
263 <sect3 id="dbus-init">
[08de396]264 <title>Starting D-Bus</title>
[e8e3312d]265
[0b83a69]266 <para>
[08de396]267 There are many methods you can use to start a
[0b83a69]268 session daemon using the <command>dbus-launch</command> command. Review
269 the <command>dbus-launch</command> man page for details about the
270 available parameters and options. Here are some suggestions and
271 examples:
272 </para>
[3565e02]273
274 <itemizedlist spacing="compact">
275 <listitem>
[0b83a69]276 <para>
277 Add <command>dbus-launch</command> to the line in the
278 <filename>~/.xinitrc</filename> file that starts your graphical
279 desktop environment.
280 </para>
[3565e02]281 </listitem>
282 <listitem>
[0b83a69]283 <para>
284 If you use <command>xdm</command> or some other display manager
285 that calls the <filename>~/.xsession</filename> file, you can add
286 <command>dbus-launch</command> to the line in your
287 <filename>~/.xsession</filename> file that starts your graphical
288 desktop environment. The syntax would be similar to the example in
289 the <filename>~/.xinitrc</filename> file.
290 </para>
[3565e02]291 </listitem>
292 <listitem>
[0b83a69]293 <para>
294 The examples shown previously use
295 <command>dbus-launch</command> to specify a program to be run. This
296 has the benefit (when also using the
297 <parameter>--exit-with-session</parameter> parameter) of stopping the
298 session daemon when the specified program is stopped. You can also
299 start the session daemon in your system or personal startup scripts
300 by adding the following lines:
301 </para>
[3565e02]302
[02e742b]303<screen><userinput><literal># Start the D-Bus session daemon
[3565e02]304eval `dbus-launch`
305export DBUS_SESSION_BUS_ADDRESS</literal></userinput></screen>
306
[0b83a69]307 <para>
308 This method will not stop the session daemon when you exit
309 your shell, therefore you should add the following line to your
310 <filename>~/.bash_logout</filename> file:
311 </para>
[3565e02]312
[02e742b]313<screen><userinput><literal># Kill the D-Bus session daemon
[3565e02]314kill $DBUS_SESSION_BUS_PID</literal></userinput></screen>
[bccbdaea]315 </listitem>
[4ec808b]316
[3565e02]317 <listitem>
[0b83a69]318 <para>
319 A hint has been written that provides ways to start scripts
320 using the KDM session manager of KDE. The concepts in this hint could
321 possibly be used with other session managers as well. The hint is
322 located at <ulink
323 url="&hints-root;/downloads/files/execute-session-scripts-using-kdm.txt"/>.
[c45cb57]324 </para>
[3565e02]325 </listitem>
[c45cb57]326
[3565e02]327 </itemizedlist>
328
[e8e3312d]329 </sect3>
330
331 </sect2>
332
333 <sect2 role="content">
334 <title>Contents</title>
335
336 <segmentedlist>
337 <segtitle>Installed Programs</segtitle>
[08de396]338 <segtitle>Installed Libraries</segtitle>
[e8e3312d]339 <segtitle>Installed Directories</segtitle>
340
341 <seglistitem>
[0b83a69]342 <seg>
[08de396]343 dbus-launch
[0b83a69]344 </seg>
345 <seg>
[08de396]346 None
[0b83a69]347 </seg>
348 <seg>
[08de396]349 None
[0b83a69]350 </seg>
[e8e3312d]351 </seglistitem>
352 </segmentedlist>
353
354 <variablelist>
355 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
356 <?dbfo list-presentation="list"?>
357 <?dbhtml list-presentation="table"?>
358
[08de396]359 <varlistentry id="dbus-launch-program">
[e8e3312d]360 <term><command>dbus-launch</command></term>
361 <listitem>
[0b83a69]362 <para>
363 is used to start <command>dbus-daemon</command> from a shell
364 script. It would normally be called from a user's login
365 scripts.
366 </para>
[08de396]367 <indexterm zone="dbus-launch dbus-launch-program">
368 <primary sortas="b-dbus-launch-program">dbus-launch</primary>
[e8e3312d]369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 </variablelist>
374
375 </sect2>
376
377</sect1>
[0d7900a]378
Note: See TracBrowser for help on using the repository browser.