dbus.xml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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. <sect1 id="ch-system-dbus" role="wrap" revision="systemd">
  8. <?dbhtml filename="dbus.html"?>
  9. <sect1info condition="script">
  10. <productname>dbus</productname>
  11. <productnumber>&dbus-version;</productnumber>
  12. <address>&dbus-url;</address>
  13. </sect1info>
  14. <title>D-Bus-&dbus-version;</title>
  15. <indexterm zone="ch-system-dbus">
  16. <primary sortas="a-dbus">D-Bus</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>D-Bus is a message bus system, a simple way for applications to talk
  21. to one another. D-Bus supplies both a system daemon (for events such as
  22. "new hardware device added" or "printer queue changed") and a
  23. per-user-login-session daemon (for general IPC needs among user
  24. applications). Also, the message bus is built on top of a general one-to-one
  25. message passing framework, which can be used by any two applications to
  26. communicate directly (without going through the message bus daemon).</para>
  27. <segmentedlist>
  28. <segtitle>&buildtime;</segtitle>
  29. <segtitle>&diskspace;</segtitle>
  30. <seglistitem>
  31. <seg>&dbus-fin-sbu;</seg>
  32. <seg>&dbus-fin-du;</seg>
  33. </seglistitem>
  34. </segmentedlist>
  35. </sect2>
  36. <sect2 role="installation">
  37. <title>Installation of D-Bus</title>
  38. <para>Prepare D-Bus for compilation:</para>
  39. <screen><userinput remap="configure">./configure --prefix=/usr \
  40. --sysconfdir=/etc \
  41. --localstatedir=/var \
  42. --disable-static \
  43. --disable-doxygen-docs \
  44. --disable-xml-docs \
  45. --docdir=/usr/share/doc/dbus-&dbus-version; \
  46. --with-console-auth-dir=/run/console \
  47. --with-system-pid-file=/run/dbus/pid \
  48. --with-system-socket=/run/dbus/system_bus_socket</userinput></screen>
  49. <variablelist>
  50. <title>The meaning of the configure options:</title>
  51. <varlistentry>
  52. <term><parameter>--with-console-auth-dir=/run/console</parameter></term>
  53. <listitem>
  54. <para>This specifies the location of the ConsoleKit authorization
  55. directory.</para>
  56. </listitem>
  57. </varlistentry>
  58. <varlistentry>
  59. <term>
  60. <parameter>--with-system-pid-file=/run/dbus/pid</parameter> and
  61. <parameter>--with-system-socket=/run/dbus/system_bus_socket</parameter>
  62. </term>
  63. <listitem>
  64. <para>These set the location of the PID file and the system bus socket
  65. to be in <filename class="directory">/run</filename>, instead of
  66. deprecated <filename class="directory">/var/run</filename>.</para>
  67. </listitem>
  68. </varlistentry>
  69. </variablelist>
  70. <para>Compile the package:</para>
  71. <screen><userinput remap="make">make</userinput></screen>
  72. <para>This package does come with a test suite, but it requires several
  73. packages that are not included in LFS. Instructions for running the
  74. test suite can be found in the BLFS book at
  75. <ulink url="&blfs-book;general/dbus.html"/>.</para>
  76. <para>Install the package:</para>
  77. <screen><userinput remap="install">make install</userinput></screen>
  78. <para>The shared library needs to be moved to
  79. <filename class="directory">/lib</filename>, and as a result the
  80. <filename class="extension">.so</filename> file in
  81. <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
  82. <screen><userinput remap="install">mv -v /usr/lib/libdbus-1.so.* /lib
  83. ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</userinput></screen>
  84. <para>Create a symlink so that D-Bus and systemd can use the same
  85. <filename>machine-id</filename> file:</para>
  86. <screen><userinput remap="install">ln -sfv /etc/machine-id /var/lib/dbus</userinput></screen>
  87. </sect2>
  88. <sect2 id="contents-dbus" role="content">
  89. <title>Contents of D-Bus</title>
  90. <segmentedlist>
  91. <segtitle>Installed programs</segtitle>
  92. <segtitle>Installed libraries</segtitle>
  93. <segtitle>Installed directories</segtitle>
  94. <seglistitem>
  95. <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor,
  96. dbus-run-session, dbus-send, dbus-test-tool,
  97. dbus-update-activation-environment, and dbus-uuidgen</seg>
  98. <seg>libdbus-1.{a,so}</seg>
  99. <seg>/etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0,
  100. /usr/share/dbus-1, /usr/share/doc/dbus-&dbus-version;,
  101. and /var/lib/dbus</seg>
  102. </seglistitem>
  103. </segmentedlist>
  104. <variablelist>
  105. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  106. <?dbfo list-presentation="list"?>
  107. <?dbhtml list-presentation="table"?>
  108. <varlistentry id="dbus-cleanup-sockets">
  109. <term><command>dbus-cleanup-sockets</command></term>
  110. <listitem>
  111. <para>is used to remove leftover sockets in a directory</para>
  112. <indexterm zone="ch-system-dbus dbus-cleanup-sockets">
  113. <primary sortas="b-dbus-cleanup-sockets">dbus-cleanup-sockets</primary>
  114. </indexterm>
  115. </listitem>
  116. </varlistentry>
  117. <varlistentry id="dbus-daemon">
  118. <term><command>dbus-daemon</command></term>
  119. <listitem>
  120. <para>Is the D-Bus message bus daemon</para>
  121. <indexterm zone="ch-system-dbus dbus-daemon">
  122. <primary sortas="b-dbus-daemon">dbus-daemon</primary>
  123. </indexterm>
  124. </listitem>
  125. </varlistentry>
  126. <varlistentry id="dbus-launch">
  127. <term><command>dbus-launch</command></term>
  128. <listitem>
  129. <para>Starts <command>dbus-daemon</command> from a shell
  130. script</para>
  131. <indexterm zone="ch-system-dbus dbus-launch">
  132. <primary sortas="b-dbus-launch">dbus-launch</primary>
  133. </indexterm>
  134. </listitem>
  135. </varlistentry>
  136. <varlistentry id="dbus-monitor">
  137. <term><command>dbus-monitor</command></term>
  138. <listitem>
  139. <para>Monitors messages passing through a D-Bus message bus</para>
  140. <indexterm zone="ch-system-dbus dbus-monitor">
  141. <primary sortas="b-dbus-monitor">dbus-monitor</primary>
  142. </indexterm>
  143. </listitem>
  144. </varlistentry>
  145. <varlistentry id="dbus-run-session">
  146. <term><command>dbus-run-session</command></term>
  147. <listitem>
  148. <para>Starts a session bus instance of <command>dbus-daemon</command>
  149. from a shell script and starts a specified program in that
  150. session</para>
  151. <indexterm zone="ch-system-dbus dbus-run-session">
  152. <primary sortas="b-dbus-run-session">dbus-run-session</primary>
  153. </indexterm>
  154. </listitem>
  155. </varlistentry>
  156. <varlistentry id="dbus-send">
  157. <term><command>dbus-send</command></term>
  158. <listitem>
  159. <para>Sends a message to a D-Bus message bus</para>
  160. <indexterm zone="ch-system-dbus dbus-send">
  161. <primary sortas="b-dbus-send">dbus-send</primary>
  162. </indexterm>
  163. </listitem>
  164. </varlistentry>
  165. <varlistentry id="dbus-test-tool">
  166. <term><command>dbus-test-tool</command></term>
  167. <listitem>
  168. <para>Is a tool to help packages test
  169. <application>D-Bus</application></para>
  170. <indexterm zone="ch-system-dbus dbus-test-tool">
  171. <primary sortas="b-dbus-test-tool">dbus-test-tool</primary>
  172. </indexterm>
  173. </listitem>
  174. </varlistentry>
  175. <!-- This is a very long command name. Excuse the long <primary> statement below. -->
  176. <varlistentry id="dbus-update-activation-environment">
  177. <term><command>dbus-update-activation-environment</command></term>
  178. <listitem>
  179. <para>Updates environment variables that will be set for
  180. <application>D-Bus</application> session services</para>
  181. <indexterm zone="ch-system-dbus dbus-update-activation-environment">
  182. <primary sortas="b-dbus-update-activation-environment">dbus-update-activation-environment</primary>
  183. </indexterm>
  184. </listitem>
  185. </varlistentry>
  186. <varlistentry id="dbus-uuidgen">
  187. <term><command>dbus-uuidgen</command></term>
  188. <listitem>
  189. <para>Generates a universally unique ID</para>
  190. <indexterm zone="ch-system-dbus dbus-uuidgen">
  191. <primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary>
  192. </indexterm>
  193. </listitem>
  194. </varlistentry>
  195. <varlistentry id="libdbus-1">
  196. <term><filename class="libraryfile">libdbus-1</filename></term>
  197. <listitem>
  198. <para>Contains API functions used to communicate with the D-Bus
  199. message bus</para>
  200. <indexterm zone="ch-system-dbus libdbus-1">
  201. <primary sortas="c-libdbus-1">libdbus-1</primary>
  202. </indexterm>
  203. </listitem>
  204. </varlistentry>
  205. </variablelist>
  206. </sect2>
  207. </sect1>