mirror of
https://github.com/LCTT/LFS-BOOK-7.7-systemd.git
synced 2026-01-14 00:49:09 +00:00
326 lines
11 KiB
HTML
326 lines
11 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content=
|
|
"application/xhtml+xml; charset=utf-8" />
|
|
<title>
|
|
6.64. D-Bus-1.8.16
|
|
</title>
|
|
<link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
|
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
|
|
<link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css"
|
|
media="print" />
|
|
</head>
|
|
<body class="lfs" id="lfs-7.7-systemd">
|
|
<div class="navheader">
|
|
<h4>
|
|
Linux From Scratch - Version 7.7-systemd
|
|
</h4>
|
|
<h3>
|
|
Chapter 6. Installing Basic System Software
|
|
</h3>
|
|
<ul>
|
|
<li class="prev">
|
|
<a accesskey="p" href="systemd.html" title="Systemd-219">Prev</a>
|
|
<p>
|
|
Systemd-219
|
|
</p>
|
|
</li>
|
|
<li class="next">
|
|
<a accesskey="n" href="util-linux.html" title=
|
|
"Util-linux-2.26">Next</a>
|
|
<p>
|
|
Util-linux-2.26
|
|
</p>
|
|
</li>
|
|
<li class="up">
|
|
<a accesskey="u" href="chapter06.html" title=
|
|
"Chapter 6. Installing Basic System Software">Up</a>
|
|
</li>
|
|
<li class="home">
|
|
<a accesskey="h" href="../index.html" title=
|
|
"Linux From Scratch - Version 7.7-systemd">Home</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="wrap" lang="en" xml:lang="en">
|
|
<h1 class="sect1">
|
|
<a id="ch-system-dbus" name="ch-system-dbus"></a>6.64. D-Bus-1.8.16
|
|
</h1>
|
|
<div class="package" lang="en" xml:lang="en">
|
|
<p>
|
|
D-Bus is a message bus system, a simple way for applications to
|
|
talk to one another. D-Bus supplies both a system daemon (for
|
|
events such as "new hardware device added" or "printer queue
|
|
changed") and a per-user-login-session daemon (for general IPC
|
|
needs among user applications). Also, the message bus is built on
|
|
top of a general one-to-one message passing framework, which can be
|
|
used by any two applications to communicate directly (without going
|
|
through the message bus daemon).
|
|
</p>
|
|
<div class="segmentedlist">
|
|
<div class="seglistitem">
|
|
<div class="seg">
|
|
<strong class="segtitle">Approximate build time:</strong>
|
|
<span class="segbody">0.4 SBU</span>
|
|
</div>
|
|
<div class="seg">
|
|
<strong class="segtitle">Required disk space:</strong>
|
|
<span class="segbody">43 MB</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="installation" lang="en" xml:lang="en">
|
|
<h2 class="sect2">
|
|
6.64.1. Installation of D-Bus
|
|
</h2>
|
|
<p>
|
|
Prepare D-Bus for compilation:
|
|
</p>
|
|
<pre class="userinput">
|
|
<kbd class="command">./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--docdir=/usr/share/doc/dbus-1.8.16 \
|
|
--with-console-auth-dir=/run/console</kbd>
|
|
</pre>
|
|
<div class="variablelist">
|
|
<p class="title">
|
|
<strong>The meaning of the configure options:</strong>
|
|
</p>
|
|
<dl class="variablelist">
|
|
<dt>
|
|
<span class="term"><em class=
|
|
"parameter"><code>--with-console-auth-dir=/run/console</code></em></span>
|
|
</dt>
|
|
<dd>
|
|
<p>
|
|
This specifies the location of the ConsoleKit auth directory.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<p>
|
|
Compile the package:
|
|
</p>
|
|
<pre class="userinput">
|
|
<kbd class="command">make</kbd>
|
|
</pre>
|
|
<p>
|
|
This package does come with a testsuite, but it requires several
|
|
packages that are not included in LFS. Instructions for running the
|
|
testsuite can be found in the BLFS book at <a class="ulink" href=
|
|
"http://www.linuxfromscratch.org/blfs/view/systemd/general/dbus.html">
|
|
http://www.linuxfromscratch.org/blfs/view/systemd/general/dbus.html</a>.
|
|
</p>
|
|
<p>
|
|
Install the package:
|
|
</p>
|
|
<pre class="userinput">
|
|
<kbd class="command">make install</kbd>
|
|
</pre>
|
|
<p>
|
|
The shared library needs to be moved to <code class=
|
|
"filename">/lib</code>, and as a result the <code class=
|
|
"filename">.so</code> file in <code class=
|
|
"filename">/usr/lib</code> will need to be recreated:
|
|
</p>
|
|
<pre class="userinput">
|
|
<kbd class="command">mv -v /usr/lib/libdbus-1.so.* /lib
|
|
ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</kbd>
|
|
</pre>
|
|
<p>
|
|
Create a symlink, so that D-Bus and systemd can use the same
|
|
<code class="filename">machine-id</code> file:
|
|
</p>
|
|
<pre class="userinput">
|
|
<kbd class="command">ln -sfv /etc/machine-id /var/lib/dbus</kbd>
|
|
</pre>
|
|
</div>
|
|
<div class="content" lang="en" xml:lang="en">
|
|
<h2 class="sect2">
|
|
<a id="contents-dbus" name="contents-dbus"></a>6.64.2. Contents of
|
|
D-Bus
|
|
</h2>
|
|
<div class="segmentedlist">
|
|
<div class="seglistitem">
|
|
<div class="seg">
|
|
<strong class="segtitle">Installed programs:</strong>
|
|
<span class="segbody">dbus-cleanup-sockets, dbus-daemon,
|
|
dbus-launch, dbus-monitor, dbus-run-session, dbus-send, and
|
|
dbus-uuidgen</span>
|
|
</div>
|
|
<div class="seg">
|
|
<strong class="segtitle">Installed libraries:</strong>
|
|
<span class="segbody">libdbus-1.{a,so}</span>
|
|
</div>
|
|
<div class="seg">
|
|
<strong class="segtitle">Installed directories:</strong>
|
|
<span class="segbody">/etc/dbus-1, /usr/include/dbus-1.0,
|
|
/usr/lib/dbus-1.0, /usr/share/dbus-1,
|
|
/usr/share/doc/dbus-1.8.16, and /var/lib/dbus</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="variablelist">
|
|
<h3>
|
|
Short Descriptions
|
|
</h3>
|
|
<table border="0" class="variablelist">
|
|
<colgroup>
|
|
<col align="left" valign="top" />
|
|
<col />
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a id="dbus-cleanup-sockets" name=
|
|
"dbus-cleanup-sockets"></a><span class=
|
|
"term"><span class="command"><strong>dbus-cleanup-sockets</strong></span></span>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Used to clean up leftover sockets in a directory
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a id="dbus-daemon" name="dbus-daemon"></a><span class=
|
|
"term"><span class=
|
|
"command"><strong>dbus-daemon</strong></span></span>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
The D-Bus message bus daemon
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a id="dbus-launch" name="dbus-launch"></a><span class=
|
|
"term"><span class=
|
|
"command"><strong>dbus-launch</strong></span></span>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Starts <span class=
|
|
"command"><strong>dbus-daemon</strong></span> from a
|
|
shell script
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a id="dbus-monitor" name="dbus-monitor"></a><span class=
|
|
"term"><span class=
|
|
"command"><strong>dbus-monitor</strong></span></span>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Monitors messages passing through a D-Bus message bus
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a id="dbus-run-session" name=
|
|
"dbus-run-session"></a><span class="term"><span class=
|
|
"command"><strong>dbus-run-session</strong></span></span>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Starts a session bus instance of <span class=
|
|
"command"><strong>dbus-daemon</strong></span> from a
|
|
shell script and starts a specified program in that
|
|
session
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a id="dbus-send" name="dbus-send"></a><span class=
|
|
"term"><span class=
|
|
"command"><strong>dbus-send</strong></span></span>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Sends a message to a D-Bus message bus
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a id="dbus-uuidgen" name="dbus-uuidgen"></a><span class=
|
|
"term"><span class=
|
|
"command"><strong>dbus-uuidgen</strong></span></span>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Generates a universally unique ID
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a id="libdbus-1" name="libdbus-1"></a><span class=
|
|
"term"><code class="filename">libdbus-1</code></span>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Contains API functions used to communicate with the D-Bus
|
|
message bus
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="navfooter">
|
|
<ul>
|
|
<li class="prev">
|
|
<a accesskey="p" href="systemd.html" title="Systemd-219">Prev</a>
|
|
<p>
|
|
Systemd-219
|
|
</p>
|
|
</li>
|
|
<li class="next">
|
|
<a accesskey="n" href="util-linux.html" title=
|
|
"Util-linux-2.26">Next</a>
|
|
<p>
|
|
Util-linux-2.26
|
|
</p>
|
|
</li>
|
|
<li class="up">
|
|
<a accesskey="u" href="chapter06.html" title=
|
|
"Chapter 6. Installing Basic System Software">Up</a>
|
|
</li>
|
|
<li class="home">
|
|
<a accesskey="h" href="../index.html" title=
|
|
"Linux From Scratch - Version 7.7-systemd">Home</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|