diff options
Diffstat (limited to 'zh_CN.GB2312/books/handbook/x11/chapter.xml')
-rw-r--r-- | zh_CN.GB2312/books/handbook/x11/chapter.xml | 172 |
1 files changed, 69 insertions, 103 deletions
diff --git a/zh_CN.GB2312/books/handbook/x11/chapter.xml b/zh_CN.GB2312/books/handbook/x11/chapter.xml index 3fbf2e3b72..1fa3abbfbc 100644 --- a/zh_CN.GB2312/books/handbook/x11/chapter.xml +++ b/zh_CN.GB2312/books/handbook/x11/chapter.xml @@ -6,25 +6,17 @@ Original Revision: 1.207 $FreeBSD$ --> - -<chapter id="x11"> - <chapterinfo> +<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="x11"> + <info><title>X Window 系统</title> <authorgroup> - <author> - <firstname>Ken</firstname> - <surname>Tom</surname> - <contrib>根据 X.Org 的 X11 服务修改此文档 </contrib> - </author> - <author> - <firstname>Marc</firstname> - <surname>Fonvieille</surname> - </author> + <author><personname><firstname>Ken</firstname><surname>Tom</surname></personname><contrib>根据 X.Org 的 X11 服务修改此文档 </contrib></author> + <author><personname><firstname>Marc</firstname><surname>Fonvieille</surname></personname></author> </authorgroup> - </chapterinfo> + </info> - <title>X Window 系统</title> + - <sect1 id="x11-synopsis"> + <sect1 xml:id="x11-synopsis"> <title>概述</title> <para>FreeBSD 使用 X11 来为用户提供功能强大的图形用户界面。 @@ -36,8 +28,7 @@ 也有一些用于 &os; 的商业 X 服务器。</para> <para>欲了解 X11 所支持的显示卡等硬件, - 请访问 <ulink - url="http://www.x.org/">&xorg;</ulink> 网站。</para> + 请访问 <link xlink:href="http://www.x.org/">&xorg;</link> 网站。</para> <para>在阅读完这一章后,您将会了解:</para> @@ -72,7 +63,7 @@ </itemizedlist> </sect1> - <sect1 id="x-understanding"> + <sect1 xml:id="x-understanding"> <title>理解 X</title> <para>对于那些熟悉其他图形环境,比如 @@ -261,7 +252,7 @@ </sect2> </sect1> - <sect1 id="x-install"> + <sect1 xml:id="x-install"> <title>安装 X11</title> <para><application>&xorg;</application> 是 &os; @@ -298,25 +289,20 @@ 此外, 也有一些单独的 X11 的 ports 和 packages.</para> <para>另外, 如果需要最小化的 X11 软件, 您也可以安装 - <filename role="package">x11/xorg-minimal</filename>。</para> + <package>x11/xorg-minimal</package>。</para> </note> <para>这一章余下的部分将会讲解如何配置 X11, 以及如何设置一个高效的桌面环境。</para> </sect1> - <sect1 id="x-config"> - <sect1info> + <sect1 xml:id="x-config"> + <info><title>配置 X11</title> <authorgroup> - <author> - <firstname>Christopher</firstname> - <surname>Shumway</surname> - <contrib>Contributed by </contrib> - <!-- July 2001 --> - </author> + <author><personname><firstname>Christopher</firstname><surname>Shumway</surname></personname><contrib>Contributed by </contrib></author> </authorgroup> - </sect1info> - <title>配置 X11</title> + </info> + <indexterm><primary>&xorg;</primary></indexterm> @@ -361,9 +347,9 @@ <para>从 <application>&xorg;</application> 7.4 开始, 可以使用 <acronym>HAL</acronym> 自动检测键盘和鼠标。Ports - <filename role="package">sysutils/hal</filename> 和 - <filename role="package">devel/dbus</filename> 将被作为 - <filename role="package">x11/xorg</filename> 所依赖的包安装进系统。 + <package>sysutils/hal</package> 和 + <package>devel/dbus</package> 将被作为 + <package>x11/xorg</package> 所依赖的包安装进系统。 并且需要在 <filename>/etc/rc.conf</filename> 文件中启用:</para> <programlisting>hald_enable="YES" @@ -443,7 +429,7 @@ dbus_enable="YES"</programlisting> <para>或者为 <application>hald</application> 创建一个叫作 <filename>x11-input.fdi</filename> 的键盘配置文件并保存至 - <filename class="directory">/usr/local/etc/hal/fdi/policy</filename> + <filename>/usr/local/etc/hal/fdi/policy</filename> 目录。 这个文件需包含以下这些:</para> <programlisting><?xml version="1.0" encoding="iso-8859-1"?> @@ -490,8 +476,7 @@ dbus_enable="YES"</programlisting> <para>举例来说, 如果某人想要使用一个 PC 102 键法语布局的键盘, 我们就需要为 <application>hald</application> 创建一个配置文件, - 叫作 <filename>x11-input.fdi</filename> 并保存入 <filename - class="directory">/usr/local/etc/hal/fdi/policy</filename> + 叫作 <filename>x11-input.fdi</filename> 并保存入 <filename>/usr/local/etc/hal/fdi/policy</filename> 目录。 这个文件需要包含如下这些:</para> <programlisting><?xml version="1.0" encoding="iso-8859-1"?> @@ -608,7 +593,7 @@ EndSection</programlisting> <indexterm><primary>Intel i810 显示芯片</primary></indexterm> <para>配置Intel i810芯片组的显示卡需要有针对 X11 - 的能够用来驱动显示卡的 <devicename>agpgart</devicename> AGP程序接口。 + 的能够用来驱动显示卡的 <filename>agpgart</filename> AGP程序接口。 请参见 &man.agp.4; 驱动程序的联机手册了解更多细节。</para> <para>这也适用于其他的图形卡硬件配置。 @@ -692,28 +677,24 @@ EndSection</programlisting> </sect2> </sect1> - <sect1 id="x-fonts"> - <sect1info> + <sect1 xml:id="x-fonts"> + <info><title>在 X11 中使用字体</title> <authorgroup> - <author> - <firstname>Murray</firstname> - <surname>Stokely</surname> - <contrib>供稿</contrib> - </author> + <author><personname><firstname>Murray</firstname><surname>Stokely</surname></personname><contrib>供稿</contrib></author> </authorgroup> - </sect1info> - <title>在 X11 中使用字体</title> + </info> + - <sect2 id="type1"> + <sect2 xml:id="type1"> <title>Type1 字体</title> <para>X11 使用的默认字体不是很理想。 大型的字体显得参差不齐,看起来很不专业, 并且, 在 <application>&netscape;</application> 中, 小字体简直无法看清。 有好几种免费、 高质量的字体可以很方便地用在 X11 中。 例如,URW字体集合 - (<filename role="package">x11-fonts/urwfonts</filename>) 就包括了高质量的 + (<package>x11-fonts/urwfonts</package>) 就包括了高质量的 标准 type1 字体 (<trademark class="registered">Times Roman</trademark>, <trademark class="registered">Helvetica</trademark>、 <trademark class="registered">Palatino</trademark> 和其他一些)。 在 Freefont 集合中 - (<filename role="package">x11-fonts/freefonts</filename>) 也包括更多的字体, + (<package>x11-fonts/freefonts</package>) 也包括更多的字体, 但它们中的绝大部分使用在图形软件中,如 <application>Gimp</application>,在屏幕字体中使用并不完美。另外, 只要花很少的功夫,可以将 @@ -750,7 +731,7 @@ EndSection</programlisting> </para> </sect2> - <sect2 id="truetype"> + <sect2 xml:id="truetype"> <title>&truetype; 字体</title> <indexterm><primary>TrueType 字体</primary></indexterm> @@ -779,7 +760,7 @@ EndSection</programlisting> 以便让X字体引擎知道您已经安装了这些新文件。 <command>ttmkfdir</command> 可以在 FreeBSD Ports 套件中的 - <filename role="package">x11-fonts/ttmkfdir</filename> 中找到。</para> + <package>x11-fonts/ttmkfdir</package> 中找到。</para> <screen>&prompt.root; <userinput>cd /usr/local/lib/X11/fonts/TrueType</userinput> &prompt.root; <userinput>ttmkfdir -o fonts.dir</userinput></screen> @@ -805,18 +786,13 @@ EndSection</programlisting> </para> </sect2> - <sect2 id="antialias"> - <sect2info> + <sect2 xml:id="antialias"> + <info><title>Anti-Aliased 字体</title> <authorgroup> - <author> - <firstname>Joe Marcus</firstname> - <surname>Clarke</surname> - <contrib>Updated by </contrib> - <!-- May 2003 --> - </author> + <author><personname><firstname>Joe Marcus</firstname><surname>Clarke</surname></personname><contrib>Updated by </contrib></author> </authorgroup> - </sect2info> - <title>Anti-Aliased 字体</title> + </info> + <indexterm><primary>anti-aliased fonts</primary></indexterm> <indexterm><primary>fonts</primary> @@ -975,17 +951,13 @@ EndSection</programlisting> </sect2> </sect1> - <sect1 id="x-xdm"> - <sect1info> + <sect1 xml:id="x-xdm"> + <info><title>X 显示管理器</title> <authorgroup> - <author> - <firstname>Seth</firstname> - <surname>Kingsley</surname> - <contrib>Contributed by </contrib> - </author> + <author><personname><firstname>Seth</firstname><surname>Kingsley</surname></personname><contrib>Contributed by </contrib></author> </authorgroup> - </sect1info> - <title>X 显示管理器</title> + </info> + <sect2> <title>概要</title> @@ -1016,16 +988,15 @@ EndSection</programlisting> <title>使用 XDM</title> <para>如果希望使用 <application>XDM</application> 来启动, 首先需要安装 - <filename role="package">x11/xdm</filename> port (在较新版本的 + <package>x11/xdm</package> port (在较新版本的 <application>&xorg;</application> 中它并不是默认安装的)。 <application>XDM</application> 服务程序位于 <filename>/usr/local/bin/xdm</filename>。 - 任何时候都可以 <username>root</username> 用户的身份来运行它, + 任何时候都可以 <systemitem class="username">root</systemitem> 用户的身份来运行它, 以令其管理本地系统的 X 显示。 如果希望让 <application>XDM</application> 在系统每次启动过程中自动运行, 比较方便的做法是把它写到 <filename>/etc/ttys</filename> - 的配置中。 有关这个文件的具体格式和使用方法请参阅 <xref - linkend="term-etcttys"/>。 在默认的 + 的配置中。 有关这个文件的具体格式和使用方法请参阅 <xref linkend="term-etcttys"/>。 在默认的 <filename>/etc/ttys</filename> 文件中已经包含了在虚拟终端上运行 <application>XDM</application> 服务的示范配置:</para> @@ -1204,19 +1175,15 @@ DisplayManager.requestPort: 0</screen> </sect2> </sect1> - <sect1 id="x11-wm"> - <sect1info> + <sect1 xml:id="x11-wm"> + <info><title>桌面环境</title> <authorgroup> - <author> - <firstname>Valentino</firstname> - <surname>Vaschetto</surname> - <contrib>Contributed by </contrib> - </author> + <author><personname><firstname>Valentino</firstname><surname>Vaschetto</surname></personname><contrib>Contributed by </contrib></author> <!-- June 2001 --> </authorgroup> - </sect1info> + </info> - <title>桌面环境</title> + <para>这节描述了 FreeBSD 上用于 X 的不同桌面环境。 <quote>桌面环境</quote> @@ -1225,10 +1192,10 @@ DisplayManager.requestPort: 0</screen> <application>KDE</application> 或者 <application>GNOME</application>这样的完整桌面应用程序套件。 </para> - <sect2 id="x11-wm-gnome"> + <sect2 xml:id="x11-wm-gnome"> <title>GNOME</title> - <sect3 id="x11-wm-gnome-about"> + <sect3 xml:id="x11-wm-gnome-about"> <title>有关 GNOME</title> <indexterm><primary>GNOME</primary></indexterm> @@ -1242,14 +1209,13 @@ DisplayManager.requestPort: 0</screen> 其他操作系统的用户在使用 <application>GNOME</application>提供的强大的图形驱动环境时会觉得很好。 更多的关于 FreeBSD 上 <application>GNOME</application> 的信息 - 可以在 <ulink - url="http://www.FreeBSD.org/gnome">FreeBSD GNOME - Project</ulink> 的网站上找到。 此外, + 可以在 <link xlink:href="http://www.FreeBSD.org/gnome">FreeBSD GNOME + Project</link> 的网站上找到。 此外, 这个网站也提供了相当详尽的关于安装、 配置和管理 <application>GNOME</application> 的常见问题解答 (FAQ)。</para> </sect3> - <sect3 id="x11-wm-gnome-install"> + <sect3 xml:id="x11-wm-gnome-install"> <title>安装 GNOME</title> <para>这个软件可以很容易地通过预编译包或 @@ -1329,11 +1295,11 @@ DisplayManager.requestPort: 0</screen> </sect3> </sect2> - <sect2 id="x11-wm-kde"> + <sect2 xml:id="x11-wm-kde"> <title>KDE</title> <indexterm><primary>KDE</primary></indexterm> - <sect3 id="x11-wm-kde-about"> + <sect3 xml:id="x11-wm-kde-about"> <title>有关 KDE</title> <para><application>KDE</application> 是一个容易使用的现代桌面环境。 @@ -1380,10 +1346,10 @@ DisplayManager.requestPort: 0</screen> <application>Konqueror</application> 的 web 浏览器, 它是其他运行于 &unix; 系统上的 web 浏览器的一个强大的竞争对手。 要了解关于 <application>KDE</application> - 的更多详情, 可以访问 <ulink url="http://www.kde.org/">KDE - 网站</ulink>。 与 FreeBSD 相关的 <application>KDE</application> - 信息和资源, 可以在 <ulink url="http://freebsd.kde.org/">FreeBSD 上的 KDE - 团队</ulink> 的网站找到。</para> + 的更多详情, 可以访问 <link xlink:href="http://www.kde.org/">KDE + 网站</link>。 与 FreeBSD 相关的 <application>KDE</application> + 信息和资源, 可以在 <link xlink:href="http://freebsd.kde.org/">FreeBSD 上的 KDE + 团队</link> 的网站找到。</para> <para>FreeBSD 上提供了两种版本的 <application>KDE</application>。 版本 3 已经推出了很长时间, 十分成熟。 而版本 4, @@ -1391,7 +1357,7 @@ DisplayManager.requestPort: 0</screen> 这两种版本甚至能够并存。</para> </sect3> - <sect3 id="x11-wm-kde-install"> + <sect3 xml:id="x11-wm-kde-install"> <title>安装 KDE</title> <para>与 <application>GNOME</application> 和其他桌面环境类似, @@ -1443,7 +1409,7 @@ DisplayManager.requestPort: 0</screen> </sect3> </sect2> - <sect2 id="x11-wm-kde-details"> + <sect2 xml:id="x11-wm-kde-details"> <title>有关 KDE 的更多细节</title> <para>现在 <application>KDE</application> 已经被安装在系统中了。 @@ -1457,7 +1423,7 @@ DisplayManager.requestPort: 0</screen> 还有很多其他的应用程序和丰富文档。 这节的余下部分将讨论一些很难用走马观花的方法来学习的技术项目。</para> - <sect3 id="x11-wm-kde-kdm"> + <sect3 xml:id="x11-wm-kde-kdm"> <title>KDE 显示管理器</title> <indexterm><primary>KDE</primary> @@ -1489,9 +1455,9 @@ kdm4_enable="YES"</programlisting> </sect2> - <sect2 id="x11-wm-xfce"> + <sect2 xml:id="x11-wm-xfce"> <title>Xfce</title> - <sect3 id="x11-wm-xfce-about"> + <sect3 xml:id="x11-wm-xfce-about"> <title>有关Xfce</title> <para><application>Xfce</application>是以被<application>GNOME</application> @@ -1530,11 +1496,11 @@ kdm4_enable="YES"</programlisting> </itemizedlist> <para>更多有关<application>Xfce</application> - 的信息可以参考<ulink url="http://www.xfce.org/">Xfce - 网站</ulink>。</para> + 的信息可以参考<link xlink:href="http://www.xfce.org/">Xfce + 网站</link>。</para> </sect3> - <sect3 id="x11-wm-xfce-install"> + <sect3 xml:id="x11-wm-xfce-install"> <title>安装Xfce</title> <para>有一个二进制的<application>Xfce</application> |