|
@@ -23,13 +23,19 @@
|
|
|
<sect2 role="package">
|
|
|
<title/>
|
|
|
|
|
|
- <para>D-Bus is a message bus system, a simple way for applications to talk
|
|
|
+ <!--para>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).</para>
|
|
|
+ communicate directly (without going through the message bus daemon).</para-->
|
|
|
+ <para>D-bus 是一个消息总线系统,即应用程序之间互相通信的一种简单方式。
|
|
|
+ D-Bus 提供了一个系统守护进程(负责 <quote>添加了新硬件</quote>
|
|
|
+ 或 <quote>打印队列发生改变</quote> 等事件),
|
|
|
+ 以及一个每用户登录会话的守护进程(负责用户程序的一般进程间通信)。
|
|
|
+ 另外,消息总线被构建在一个通用一对一消息传递网络上,
|
|
|
+ 它可以被任意两个程序用于直接通信(不通过消息总线守护进程)。</para>
|
|
|
|
|
|
<segmentedlist>
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
@@ -44,7 +50,7 @@
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
- <title>安装D-Bus</title>
|
|
|
+ <title>安装 D-Bus</title>
|
|
|
|
|
|
<para>准备安装 D-Bus:</para>
|
|
|
|
|
@@ -58,13 +64,12 @@
|
|
|
--with-console-auth-dir=/run/console</userinput></screen>
|
|
|
|
|
|
<variablelist>
|
|
|
- <title>The meaning of the configure options:</title>
|
|
|
+ <title>配置选项的含义:</title>
|
|
|
|
|
|
<varlistentry>
|
|
|
<term><parameter>--with-console-auth-dir=/run/console</parameter></term>
|
|
|
<listitem>
|
|
|
- <para>This specifies the location of the ConsoleKit auth
|
|
|
- directory.</para>
|
|
|
+ <para>该选项指定 ConsoleKit 认证目录位置。</para>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
@@ -74,25 +79,25 @@
|
|
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
|
|
- <para>This package does come with a test suite, but it requires several
|
|
|
- packages that are not included in LFS. Instructions for running the
|
|
|
- test suite can be found in the BLFS book at
|
|
|
- <ulink url="&blfs-book;general/dbus.html"/>.</para>
|
|
|
+ <para>该软件包有测试套件,但需要 LFS 没有包含的一些软件包。
|
|
|
+ 阅读 BLFS 手册中的
|
|
|
+ <ulink url="&blfs-book;general/dbus.html"/>,
|
|
|
+ 以查阅运行测试套件的说明。</para>
|
|
|
|
|
|
<para>安装该软件包:</para>
|
|
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
|
|
- <para>The shared library needs to be moved to
|
|
|
- <filename class="directory">/lib</filename>, and as a result the
|
|
|
- <filename class="extension">.so</filename> file in
|
|
|
- <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
|
|
|
+ <para>需要将共享库移动到
|
|
|
+ <filename class="directory">/lib</filename>,因此
|
|
|
+ <filename class="directory">/usr/lib</filename> 中的
|
|
|
+ <filename class="extension">.so</filename> 符号链接需要重新建立:</para>
|
|
|
|
|
|
<screen><userinput remap="install">mv -v /usr/lib/libdbus-1.so.* /lib
|
|
|
ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</userinput></screen>
|
|
|
|
|
|
- <para>Create a symlink, so that D-Bus and systemd can use the same
|
|
|
- <filename>machine-id</filename> file:</para>
|
|
|
+ <para>创建符号链接,使 D-Bus 和 systemd 使用同样的
|
|
|
+ <filename>machine-id</filename> 文件:</para>
|
|
|
|
|
|
<screen><userinput remap="install">ln -sfv /etc/machine-id /var/lib/dbus</userinput></screen>
|
|
|
|
|
@@ -109,11 +114,11 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
|
|
|
<seglistitem>
|
|
|
<seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor,
|
|
|
dbus-run-session, dbus-send, dbus-test-tool,
|
|
|
- dbus-update-activation-environment, and dbus-uuidgen</seg>
|
|
|
+ dbus-update-activation-environment, 以及 dbus-uuidgen</seg>
|
|
|
<seg>libdbus-1.{a,so}</seg>
|
|
|
<seg>/etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0,
|
|
|
/usr/share/dbus-1, /usr/share/doc/dbus-&dbus-version;,
|
|
|
- and /var/lib/dbus</seg>
|
|
|
+ 以及 /var/lib/dbus</seg>
|
|
|
</seglistitem>
|
|
|
</segmentedlist>
|
|
|
|
|
@@ -125,7 +130,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
|
|
|
<varlistentry id="dbus-cleanup-sockets">
|
|
|
<term><command>dbus-cleanup-sockets</command></term>
|
|
|
<listitem>
|
|
|
- <para>Used to clean up leftover sockets in a directory</para>
|
|
|
+ <para>用于清理目录中遗留的套接字</para>
|
|
|
<indexterm zone="ch-system-dbus dbus-cleanup-sockets">
|
|
|
<primary sortas="b-dbus-cleanup-sockets">dbus-cleanup-sockets</primary>
|
|
|
</indexterm>
|
|
@@ -135,7 +140,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
|
|
|
<varlistentry id="dbus-daemon">
|
|
|
<term><command>dbus-daemon</command></term>
|
|
|
<listitem>
|
|
|
- <para>The D-Bus message bus daemon</para>
|
|
|
+ <para>D-Bus 消息总线守护程序</para>
|
|
|
<indexterm zone="ch-system-dbus dbus-daemon">
|
|
|
<primary sortas="b-dbus-daemon">dbus-daemon</primary>
|
|
|
</indexterm>
|
|
@@ -145,8 +150,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
|
|
|
<varlistentry id="dbus-launch">
|
|
|
<term><command>dbus-launch</command></term>
|
|
|
<listitem>
|
|
|
- <para>Starts <command>dbus-daemon</command> from a shell
|
|
|
- script</para>
|
|
|
+ <para>从 shell 脚本启动 <command>dbus-daemon</command></para>
|
|
|
<indexterm zone="ch-system-dbus dbus-launch">
|
|
|
<primary sortas="b-dbus-launch">dbus-launch</primary>
|
|
|
</indexterm>
|
|
@@ -156,7 +160,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
|
|
|
<varlistentry id="dbus-monitor">
|
|
|
<term><command>dbus-monitor</command></term>
|
|
|
<listitem>
|
|
|
- <para>Monitors messages passing through a D-Bus message bus</para>
|
|
|
+ <para>监视通过一个 D-Bus 消息总线的消息</para>
|
|
|
<indexterm zone="ch-system-dbus dbus-monitor">
|
|
|
<primary sortas="b-dbus-monitor">dbus-monitor</primary>
|
|
|
</indexterm>
|
|
@@ -166,9 +170,8 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
|
|
|
<varlistentry id="dbus-run-session">
|
|
|
<term><command>dbus-run-session</command></term>
|
|
|
<listitem>
|
|
|
- <para>Starts a session bus instance of <command>dbus-daemon</command>
|
|
|
- from a shell script and starts a specified program in that
|
|
|
- session</para>
|
|
|
+ <para>从 shell 脚本启动一个 <command>dbus-daemon</command>
|
|
|
+ 的会话总线实例,并在该会话中启动给定程序</para>
|
|
|
<indexterm zone="ch-system-dbus dbus-run-session">
|
|
|
<primary sortas="b-dbus-run-session">dbus-run-session</primary>
|
|
|
</indexterm>
|
|
@@ -178,7 +181,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
|
|
|
<varlistentry id="dbus-send">
|
|
|
<term><command>dbus-send</command></term>
|
|
|
<listitem>
|
|
|
- <para>Sends a message to a D-Bus message bus</para>
|
|
|
+ <para>向 D-Bus 消息总线发送消息</para>
|
|
|
<indexterm zone="ch-system-dbus dbus-send">
|
|
|
<primary sortas="b-dbus-send">dbus-send</primary>
|
|
|
</indexterm>
|
|
@@ -188,8 +191,8 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
|
|
|
<varlistentry id="dbus-test-tool">
|
|
|
<term><command>dbus-test-tool</command></term>
|
|
|
<listitem>
|
|
|
- <para>A tool to help packages test
|
|
|
- <application>D-Bus</application></para>
|
|
|
+ <para>一个帮助软件包测试
|
|
|
+ <application>D-Bus</application> 的工具</para>
|
|
|
<indexterm zone="ch-system-dbus dbus-test-tool">
|
|
|
<primary sortas="b-dbus-test-tool">dbus-test-tool</primary>
|
|
|
</indexterm>
|
|
@@ -200,8 +203,8 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
|
|
|
<varlistentry id="dbus-update-activation-environment">
|
|
|
<term><command>dbus-update-activation-environment</command></term>
|
|
|
<listitem>
|
|
|
- <para>Updates environment variables that will be set for
|
|
|
- <application>D-Bus</application> session services</para>
|
|
|
+ <para>更新将会为 <application> D-Bus </application>
|
|
|
+ 会话服务设置的环境变量</para>
|
|
|
<indexterm zone="ch-system-dbus dbus-update-activation-environment">
|
|
|
<primary sortas="b-dbus-update-activation-environment">dbus-update-activation-environment</primary>
|
|
|
</indexterm>
|
|
@@ -211,7 +214,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
|
|
|
<varlistentry id="dbus-uuidgen">
|
|
|
<term><command>dbus-uuidgen</command></term>
|
|
|
<listitem>
|
|
|
- <para>Generates a universally unique ID</para>
|
|
|
+ <para>产生通用唯一识别码</para>
|
|
|
<indexterm zone="ch-system-dbus dbus-uuidgen">
|
|
|
<primary sortas="b-dbus-uuidgen">dbus-uuidgen</primary>
|
|
|
</indexterm>
|
|
@@ -221,8 +224,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
|
|
|
<varlistentry id="libdbus-1">
|
|
|
<term><filename class="libraryfile">libdbus-1</filename></term>
|
|
|
<listitem>
|
|
|
- <para>Contains API functions used to communicate with the D-Bus
|
|
|
- message bus</para>
|
|
|
+ <para>包含用于和 D-Bus 消息总线通信的 API 函数</para>
|
|
|
<indexterm zone="ch-system-dbus libdbus-1">
|
|
|
<primary sortas="c-libdbus-1">libdbus-1</primary>
|
|
|
</indexterm>
|