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