dbus.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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">
  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-ch6-sbu;</seg>
  32. <seg>&dbus-ch6-du;</seg>
  33. </seglistitem>
  34. </segmentedlist>
  35. </sect2>
  36. <sect2 role="installation">
  37. <title>Installation of D-Bus</title>
  38. <para>The D-Bus system daemon (the message bus) needs to run as a non-priveleged user, so create a suitable group and user:</para>
  39. <screen><userinput remap="pre">groupadd -g 18 messagebus
  40. useradd -c "D-Bus Message Daemon User" -d /var/run/dbus \
  41. -u 18 -g messagebus -s /bin/false messagebus</userinput></screen>
  42. <para>Prepare D-Bus for compilation:</para>
  43. <screen><userinput remap="configure">./configure --prefix=/usr \
  44. --sysconfdir=/etc \
  45. --localstatedir=/var \
  46. --docdir=/usr/share/doc/dbus-&dbus-version; \
  47. --libexecdir=/usr/lib/dbus-1.0 \
  48. --with-console-auth-dir=/run/console/ \
  49. --without-systemdsystemunitdir \
  50. --disable-systemd</userinput></screen>
  51. <variablelist>
  52. <title>The meaning of the configure options:</title>
  53. <varlistentry>
  54. <term><parameter>--with-console-auth-dir=/run/console</parameter></term>
  55. <listitem>
  56. <para>This specifies the location of the ConsoleKit auth
  57. directory.</para>
  58. </listitem>
  59. </varlistentry>
  60. <varlistentry>
  61. <term><parameter>--without-systemdsystemunitdir</parameter></term>
  62. <listitem>
  63. <para>This prevents installation of Systemd unit files as Systemd
  64. has not been installed yet (due to a circular dependency; Systemd
  65. requires D-Bus, but D-Bus can also use Systemd functionality).</para>
  66. </listitem>
  67. </varlistentry>
  68. <varlistentry>
  69. <term><parameter>--disable-systemd</parameter></term>
  70. <listitem>
  71. <para>This disables Systemd support in D-Bus, again due to the
  72. circular dependency between D-Bus and Systemd.</para>
  73. </listitem>
  74. </varlistentry>
  75. </variablelist>
  76. <para>Compile the package:</para>
  77. <screen><userinput remap="make">make</userinput></screen>
  78. <para>This package does come with a testsuite, but it requires several
  79. packages that are not included in LFS.</para>
  80. <para>Install the package:</para>
  81. <screen><userinput remap="install">make install</userinput></screen>
  82. </sect2>
  83. <sect2 id="contents-dbus" role="content">
  84. <title>Contents of D-Bus</title>
  85. <segmentedlist>
  86. <segtitle>Installed programs</segtitle>
  87. <segtitle>Installed libraries</segtitle>
  88. <seglistitem>
  89. <seg>dbus-cleanup-sockets, dbus-daemon, dbus-monitor, dbus-send,
  90. dbus-uuidgen</seg>
  91. <seg>libdbus-1.{so,a}</seg>
  92. </seglistitem>
  93. </segmentedlist>
  94. <variablelist>
  95. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  96. <?dbfo list-presentation="list"?>
  97. <?dbhtml list-presentation="table"?>
  98. <varlistentry id="dbus-cleanup-sockets">
  99. <term><command>dbus-cleanup-sockets</command></term>
  100. <listitem>
  101. <para>Used to clean up leftover sockets in a directory.</para>
  102. <indexterm zone="ch-system-dbus dbus-cleanup-sockets">
  103. <primary sortas="b-dbus-cleanup-sockets">dbus-cleanup-sockets</primary>
  104. </indexterm>
  105. </listitem>
  106. </varlistentry>
  107. <varlistentry id="dbus-daemon">
  108. <term><command>dbus-daemon</command></term>
  109. <listitem>
  110. <para>The D-Bus message bus daemon.</para>
  111. <indexterm zone="ch-system-dbus dbus-daemon">
  112. <primary sortas="b-dbus-daemon">dbus-daemon</primary>
  113. </indexterm>
  114. </listitem>
  115. </varlistentry>
  116. <varlistentry id="dbus-monitor">
  117. <term><command>dbus-monitor</command></term>
  118. <listitem>
  119. <para>Monitors messages passing through a D-Bus message bus.</para>
  120. <indexterm zone="ch-system-dbus dbus-monitor">
  121. <primary sortas="b-dbus-monitor">dbus-monitor</primary>
  122. </indexterm>
  123. </listitem>
  124. </varlistentry>
  125. <varlistentry id="dbus-send">
  126. <term><command>dbus-send</command></term>
  127. <listitem>
  128. <para>Sends a message to a D-Bus message bus.</para>
  129. <indexterm zone="ch-system-dbus dbus-send">
  130. <primary sortas="b-dbus-send">dbus-send</primary>
  131. </indexterm>
  132. </listitem>
  133. </varlistentry>
  134. <varlistentry id="dbus-uuidgen">
  135. <term><command>dbus-uuidgen</command></term>
  136. <listitem>
  137. <para>Generates a universally unique ID.</para>
  138. <indexterm zone="ch-system-dbus dbus-uuidgen">
  139. <primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary>
  140. </indexterm>
  141. </listitem>
  142. </varlistentry>
  143. <varlistentry id="libdbus">
  144. <term><filename class="libraryfile">libdbus.{so,a}</filename></term>
  145. <listitem>
  146. <para>Contains API functions used to communicate with the D-Bus
  147. message bus.</para>
  148. <indexterm zone="ch-system-dbus libdbus">
  149. <primary sortas="c-libdbus">libdbus</primary>
  150. </indexterm>
  151. </listitem>
  152. </varlistentry>
  153. </variablelist>
  154. </sect2>
  155. </sect1>