old-www/LDP/www.debian.org/doc/manuals/debian-reference/ch07.en.html

1873 lines
96 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Chapter 7. The X Window System</title>
<link rel="stylesheet" href="debian-reference.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.en.html" title="Debian Reference">
<link rel="up" href="index.en.html" title="Debian Reference">
<link rel="prev" href="ch06.en.html" title="Chapter 6. Network applications">
<link rel="next" href="ch08.en.html" title="Chapter 8. I18N and L10N">
<link rel="preface" href="pr01.en.html" title="Preface">
<link rel="chapter" href="ch01.en.html" title="Chapter 1. GNU/Linux tutorials">
<link rel="chapter" href="ch02.en.html" title="Chapter 2. Debian package management">
<link rel="chapter" href="ch03.en.html" title="Chapter 3. The system initialization">
<link rel="chapter" href="ch04.en.html" title="Chapter 4. Authentication">
<link rel="chapter" href="ch05.en.html" title="Chapter 5. Network setup">
<link rel="chapter" href="ch06.en.html" title="Chapter 6. Network applications">
<link rel="chapter" href="ch07.en.html" title="Chapter 7. The X Window System">
<link rel="chapter" href="ch08.en.html" title="Chapter 8. I18N and L10N">
<link rel="chapter" href="ch09.en.html" title="Chapter 9. System tips">
<link rel="chapter" href="ch10.en.html" title="Chapter 10. Data management">
<link rel="chapter" href="ch11.en.html" title="Chapter 11. Data conversion">
<link rel="chapter" href="ch12.en.html" title="Chapter 12. Programming">
<link rel="appendix" href="apa.en.html" title="Appendix A. Appendix">
<link rel="section" href="ch07.en.html#_key_packages" title="7.1. Key packages">
<link rel="section" href="ch07.en.html#_setting_up_desktop_environment" title="7.2. Setting up desktop environment">
<link rel="section" href="ch07.en.html#_the_server_client_relationship" title="7.3. The server/client relationship">
<link rel="section" href="ch07.en.html#_the_x_server" title="7.4. The X server">
<link rel="section" href="ch07.en.html#_starting_the_x_window_system" title="7.5. Starting the X Window System">
<link rel="section" href="ch07.en.html#_fonts_in_the_x_window" title="7.6. Fonts in the X Window">
<link rel="section" href="ch07.en.html#_x_applications" title="7.7. X applications">
<link rel="section" href="ch07.en.html#_the_x_trivia" title="7.8. The X trivia">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">Chapter 7. The X Window System</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="ch06.en.html"><img src="images/prev.gif" alt="Prev"></a> </td>
<th width="60%" align="center"> </th>
<td width="20%" align="right"> <a accesskey="n" href="ch08.en.html"><img src="images/next.gif" alt="Next"></a>
</td>
</tr>
</table>
<hr>
</div>
<div class="chapter">
<div class="titlepage"><div><div><h2 class="title">
<a name="_the_x_window_system"></a>Chapter 7. The X Window System</h2></div></div></div>
<div class="toc">
<p><b>Table of Contents</b></p>
<dl>
<dt><span class="section"><a href="ch07.en.html#_key_packages">7.1. Key packages</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_setting_up_desktop_environment">7.2. Setting up desktop environment</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="ch07.en.html#_debian_menu">7.2.1. Debian menu</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_freedesktop_org_menu">7.2.2. Freedesktop.org menu</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_debian_menu_under_gnome_desktop_environment">7.2.3. Debian menu under GNOME desktop environment</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="ch07.en.html#_the_server_client_relationship">7.3. The server/client relationship</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_the_x_server">7.4. The X server</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="ch07.en.html#_the_re_configuration_of_the_x_server">7.4.1. The (re)configuration of the X server</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_the_connection_methods_to_the_x_server">7.4.2. The connection methods to the X server</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="ch07.en.html#_starting_the_x_window_system">7.5. Starting the X Window System</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="ch07.en.html#_starting_x_session_with_gdm3">7.5.1. Starting X session with gdm3</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_customizing_the_x_session_classic_method">7.5.2. Customizing the X session (classic method)</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_customizing_the_x_session_new_method">7.5.3. Customizing the X session (new method)</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_connecting_a_remote_x_client_via_ssh">7.5.4. Connecting a remote X client via SSH</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_secure_x_terminal_via_the_internet">7.5.5. Secure X terminal via the Internet</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="ch07.en.html#_fonts_in_the_x_window">7.6. Fonts in the X Window</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="ch07.en.html#_basic_fonts">7.6.1. Basic fonts</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_additional_fonts">7.6.2. Additional fonts</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_cjk_fonts">7.6.3. CJK fonts</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="ch07.en.html#_x_applications">7.7. X applications</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="ch07.en.html#_x_office_applications">7.7.1. X office applications</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_x_utility_applications">7.7.2. X utility applications</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="ch07.en.html#_the_x_trivia">7.8. The X trivia</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="ch07.en.html#_keymaps_and_pointer_button_mappings_in_x">7.8.1. Keymaps and pointer button mappings in X</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_classic_x_clients">7.8.2. Classic X clients</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_the_x_terminal_emulator_8212_xterm">7.8.3. The X terminal emulator — xterm</a></span></dt>
<dt><span class="section"><a href="ch07.en.html#_running_x_clients_as_root">7.8.4. Running X clients as root</a></span></dt>
</dl></dd>
</dl>
</div>
<p>The <a class="ulink" href="http://en.wikipedia.org/wiki/X_Window_System" target="_top">X Window System</a> on the Debian system is based on the source from <a class="ulink" href="http://www.x.org/" target="_top">X.Org</a>. As of July 2009, they are X11R7.1(etch), X11R7.3(lenny), X11R7.3(squeeze) and X11R7.4(sid).</p>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="_key_packages"></a>7.1. Key packages</h2></div></div></div>
<p>There are a few (meta)packages provided to ease installation.</p>
<div class="table">
<a name="listofkeymetapackagesforxwindow"></a><p class="title"><b>Table 7.1. List of key (meta)packages for X Window</b></p>
<div class="table-contents"><table summary="List of key (meta)packages for X Window" border="1">
<colgroup>
<col align="left">
<col align="left">
<col align="left">
<col align="left">
</colgroup>
<thead><tr>
<th align="left">
(meta)package
</th>
<th align="left">
popcon
</th>
<th align="left">
size
</th>
<th align="left">
description
</th>
</tr></thead>
<tbody>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/xorg" target="_top">
<code class="literal">xorg</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=xorg" target="_top">http://qa.debian.org/popcon.php?package=xorg</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/x/xorg.html" target="_top">78</a></td>
<td align="left">
X libraries, an X server, a set of fonts, and a group of basic X clients and utilities (metapackage)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/xserver-xorg" target="_top">
<code class="literal">xserver-xorg</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=xserver-xorg" target="_top">http://qa.debian.org/popcon.php?package=xserver-xorg</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/x/xserver-xorg.html" target="_top">364</a></td>
<td align="left">
full suits of the X server and its configuration
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/xbase-clients" target="_top">
<code class="literal">xbase-clients</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=xbase-clients" target="_top">http://qa.debian.org/popcon.php?package=xbase-clients</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/x/xbase-clients.html" target="_top">61</a></td>
<td align="left">
miscellaneous assortment of X clients
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/x11-common" target="_top">
<code class="literal">x11-common</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=x11-common" target="_top">http://qa.debian.org/popcon.php?package=x11-common</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/x/x11-common.html" target="_top">465</a></td>
<td align="left">
filesystem infrastructure for the X Window System
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/xorg-docs" target="_top">
<code class="literal">xorg-docs</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=xorg-docs" target="_top">http://qa.debian.org/popcon.php?package=xorg-docs</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/x/xorg-docs.html" target="_top">2056</a></td>
<td align="left">
miscellaneous documentation for the X.Org software suite
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/menu" target="_top">
<code class="literal">menu</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=menu" target="_top">http://qa.debian.org/popcon.php?package=menu</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/m/menu.html" target="_top">1757</a></td>
<td align="left">
generate the Debian menu for all menu-aware applications
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/gksu" target="_top">
<code class="literal">gksu</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=gksu" target="_top">http://qa.debian.org/popcon.php?package=gksu</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/g/gksu.html" target="_top">207</a></td>
<td align="left">
Gtk+ frontend to <span class="citerefentry"><span class="refentrytitle">su</span>(1)</span> or <span class="citerefentry"><span class="refentrytitle">sudo</span>(8)</span>
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/menu-xdg" target="_top">
<code class="literal">menu-xdg</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=menu-xdg" target="_top">http://qa.debian.org/popcon.php?package=menu-xdg</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/m/menu-xdg.html" target="_top">76</a></td>
<td align="left">
convert the Debian menu structure to the <a class="ulink" href="http://en.wikipedia.org/wiki/Freedesktop.org" target="_top">freedesktop.org</a> xdg menu structure
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/xdg-utils" target="_top">
<code class="literal">xdg-utils</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=xdg-utils" target="_top">http://qa.debian.org/popcon.php?package=xdg-utils</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/x/xdg-utils.html" target="_top">300</a></td>
<td align="left">
utilities to integrate desktop environment provided by the <a class="ulink" href="http://en.wikipedia.org/wiki/Freedesktop.org" target="_top">freedesktop.org</a>
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/gnome-desktop-environment" target="_top">
<code class="literal">gnome-desktop-environment</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=gnome-desktop-environment" target="_top">http://qa.debian.org/popcon.php?package=gnome-desktop-environment</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/g/gnome-desktop-environment.html" target="_top">42</a></td>
<td align="left">
standard <a class="ulink" href="http://en.wikipedia.org/wiki/GNOME" target="_top">GNOME</a> desktop environment (metapackage)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/kde-standard" target="_top">
<code class="literal">kde-standard</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=kde-standard" target="_top">http://qa.debian.org/popcon.php?package=kde-standard</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/kde-standard.html" target="_top">34</a></td>
<td align="left">
core <a class="ulink" href="http://en.wikipedia.org/wiki/KDE" target="_top">KDE</a> desktop environment (metapackage)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/xfce4" target="_top">
<code class="literal">xfce4</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=xfce4" target="_top">http://qa.debian.org/popcon.php?package=xfce4</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/x/xfce4.html" target="_top">40</a></td>
<td align="left">
<a class="ulink" href="http://en.wikipedia.org/wiki/Xfce" target="_top">Xfce</a> lightweight desktop environment (metapackage)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/lxde-core" target="_top">
<code class="literal">lxde-core</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=lxde-core" target="_top">http://qa.debian.org/popcon.php?package=lxde-core</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/l/lxde-core.html" target="_top">26</a></td>
<td align="left">
<a class="ulink" href="http://en.wikipedia.org/wiki/LXDE" target="_top">LXDE</a> lightweight desktop environment (metapackage)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/fluxbox" target="_top">
<code class="literal">fluxbox</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=fluxbox" target="_top">http://qa.debian.org/popcon.php?package=fluxbox</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/f/fluxbox.html" target="_top">4387</a></td>
<td align="left">
<a class="ulink" href="http://en.wikipedia.org/wiki/Fluxbox" target="_top">Fluxbox</a>: package for highly configurable and low resource <a class="ulink" href="http://en.wikipedia.org/wiki/X_window_manager" target="_top">X window manager</a>
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>For the basics of X, refer to <span class="citerefentry"><span class="refentrytitle">X</span>(7)</span>, <a class="ulink" href="http://www.tldp.org/HOWTO/XWindow-User-HOWTO.html" target="_top">the LDP XWindow-User-HOWTO</a>.</p>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="_setting_up_desktop_environment"></a>7.2. Setting up desktop environment</h2></div></div></div>
<p>A <a class="ulink" href="http://en.wikipedia.org/wiki/Desktop_environment" target="_top">desktop environment</a> is usually a combination of a <a class="ulink" href="http://en.wikipedia.org/wiki/X_window_manager" target="_top">X window manager</a>, a file manager, and a suite of compatible utility programs.</p>
<p>You can setup a full <a class="ulink" href="http://en.wikipedia.org/wiki/Desktop_environment" target="_top">desktop environment</a> such as <a class="ulink" href="http://en.wikipedia.org/wiki/GNOME" target="_top">GNOME</a>, <a class="ulink" href="http://en.wikipedia.org/wiki/KDE" target="_top">KDE</a>, <a class="ulink" href="http://en.wikipedia.org/wiki/Xfce" target="_top">Xfce</a>, or <a class="ulink" href="http://en.wikipedia.org/wiki/LXDE" target="_top">LXDE</a>, from the <code class="literal">aptitude</code> under the task menu.</p>
<div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="images/tip.png"></td>
<th align="left">Tip</th>
</tr>
<tr><td align="left" valign="top"><p>Task menu may be out of sync with the latest package transition state under Debian <code class="literal">unstable</code>/<code class="literal">testing</code> environment. In such situation, you need to deselect some (meta)packages listed under <span class="citerefentry"><span class="refentrytitle">aptitude</span>(8)</span> task menu to avoid package conflicts. When deselecting (meta)packages, you must select certain packages providing their dependencies manually to avoid them deleted automatically.</p></td></tr>
</table></div>
<p>You may alternatively setup a simple environment manually just with a <a class="ulink" href="http://en.wikipedia.org/wiki/X_window_manager" target="_top">X window manager</a> such as <a class="ulink" href="http://en.wikipedia.org/wiki/Fluxbox" target="_top">Fluxbox</a>.</p>
<p>See <a class="ulink" href="http://www.xwinman.org" target="_top">Window Managers for X</a> for the guide to the X window manager and the desktop environment.</p>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_debian_menu"></a>7.2.1. Debian menu</h3></div></div></div>
<p><a class="ulink" href="http://www.debian.org/doc/packaging-manuals/menu.html/" target="_top">Debian menu system</a> provides a general interface for both text- and X-oriented programs with <span class="citerefentry"><span class="refentrytitle">update-menus</span>(1)</span> from the <code class="literal">menu</code> package. Each package installs its menu data in the "<code class="literal">/usr/share/menu/</code>" directory. See "<code class="literal">/usr/share/menu/README</code>".</p>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_freedesktop_org_menu"></a>7.2.2. Freedesktop.org menu</h3></div></div></div>
<p>Each package which is compliant to Freedesktop.org's xdg menu system installs its menu data provided by "<code class="literal">*.desktop</code>" under "<code class="literal">/usr/share/applications/</code>". Modern desktop environments which are compliant to Freedesktop.org standard use these data to generate their menu using the <code class="literal">xdg-utils</code> package. See "<code class="literal">/usr/share/doc/xdg-utils/README</code>".</p>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_debian_menu_under_gnome_desktop_environment"></a>7.2.3. Debian menu under GNOME desktop environment</h3></div></div></div>
<p>In order to obtain access to the traditional Debian menu under GNOME desktop environment, you must install the <code class="literal">menu-xdg</code> package, click "System" → "Preference" → "Main Menu", and check the box for "Debian".</p>
<div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="images/tip.png"></td>
<th align="left">Tip</th>
</tr>
<tr><td align="left" valign="top"><p>You may need to do the similar for other modern desktop environments which are compliant to Freedesktop.org standard.</p></td></tr>
</table></div>
</div>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="_the_server_client_relationship"></a>7.3. The server/client relationship</h2></div></div></div>
<p>The X Window System is activated as a combination of the server and client programs. The meaning for the words <span class="strong"><strong>server</strong></span> and <span class="strong"><strong>client</strong></span> with respect to the words <span class="strong"><strong>local</strong></span> and <span class="strong"><strong>remote</strong></span> requires attention here.</p>
<div class="table">
<a name="listofserverclientterminology"></a><p class="title"><b>Table 7.2. List of server/client terminology</b></p>
<div class="table-contents"><table summary="List of server/client terminology" border="1">
<colgroup>
<col align="left">
<col align="left">
</colgroup>
<thead><tr>
<th align="left">
type
</th>
<th align="left">
description
</th>
</tr></thead>
<tbody>
<tr>
<td align="left">
<span class="strong"><strong>X server</strong></span>
</td>
<td align="left">
a program run on a <span class="strong"><strong>local host</strong></span> connected to the user's display and input devices.
</td>
</tr>
<tr>
<td align="left">
<span class="strong"><strong>X client</strong></span>
</td>
<td align="left">
a program run on a <span class="strong"><strong>remote host</strong></span> that processes data and talks to the X server.
</td>
</tr>
<tr>
<td align="left">
<span class="strong"><strong>application server</strong></span>
</td>
<td align="left">
a program run on a <span class="strong"><strong>remote host</strong></span> that processes data and talks to the clients.
</td>
</tr>
<tr>
<td align="left">
<span class="strong"><strong>application client</strong></span>
</td>
<td align="left">
a program run on a <span class="strong"><strong>local host</strong></span> connected to the user's display and input devices.
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break">
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="_the_x_server"></a>7.4. The X server</h2></div></div></div>
<p>See <span class="citerefentry"><span class="refentrytitle">xorg</span>(1)</span> for X server information.</p>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_the_re_configuration_of_the_x_server"></a>7.4.1. The (re)configuration of the X server</h3></div></div></div>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>X server (post-<code class="literal">lenny</code>) is rewritten to use more information from standardized OS services such as <a class="ulink" href="http://en.wikipedia.org/wiki/HAL_(software)" target="_top">HAL</a> and <a class="ulink" href="http://en.wikipedia.org/wiki/D-Bus" target="_top">D-bus</a>, for its configuration than that from "<code class="literal">/etc/X11/xorg.conf</code>". So contents in "<code class="literal">/etc/X11/xorg.conf</code>" are getting less. You may need to <a class="ulink" href="http://wiki.debian.org/XStrikeForce/InputHotplugGuide" target="_top">work around transitional problems of X server</a>.</p></td></tr>
</table></div>
<p>The following (re)configures an X server by generating a new "<code class="literal">/etc/X11/xorg.conf</code>" file using <span class="citerefentry"><span class="refentrytitle">dexconf</span>(1)</span>.</p>
<pre class="screen"># dpkg-reconfigure --priority=low x11-common
# dpkg-reconfigure --priority=low xserver-xorg</pre>
<p>If you have manually edited this "<code class="literal">/etc/X11/xorg.conf</code>" file but would like it to be automatically updated again, run the following command.</p>
<pre class="screen"># sudo dpkg-reconfigure -phigh xserver-xorg</pre>
<p>Please check your X configuration with respect to the specification of your monitor carefully. For the large high resolution CRT monitor, it is a good idea to set the refresh rate as high as your monitor can handle (85 Hz is great, 75 Hz is OK) to reduce flicker. For the LCD monitor, slower standard refresh rate (60Hz) is usually fine due to its slow response.</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>Be careful not to use too high refresh rate which may cause fatal hardware failure of your monitor system.</p></td></tr>
</table></div>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_the_connection_methods_to_the_x_server"></a>7.4.2. The connection methods to the X server</h3></div></div></div>
<p>There are several ways of getting the "X server" (<span class="strong"><strong>display</strong></span> side) to accept connections from an "X client" (<span class="strong"><strong>application</strong></span> side).</p>
<div class="table">
<a name="listofconnectionhodstothexserver"></a><p class="title"><b>Table 7.3. List of connection methods to the X server</b></p>
<div class="table-contents"><table summary="List of connection methods to the X server" border="1">
<colgroup>
<col align="left">
<col align="left">
<col align="left">
<col align="left">
<col align="left">
<col align="left">
<col align="left">
</colgroup>
<thead><tr>
<th align="left">
method
</th>
<th align="left">
package
</th>
<th align="left">
popcon
</th>
<th align="left">
size
</th>
<th align="left">
user
</th>
<th align="left">
encryption
</th>
<th align="left">
pertinent use
</th>
</tr></thead>
<tbody>
<tr>
<td align="left">
<code class="literal">xhost</code> command
</td>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/xbase-clients" target="_top">
<code class="literal">xbase-clients</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=xbase-clients" target="_top">http://qa.debian.org/popcon.php?package=xbase-clients</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/x/xbase-clients.html" target="_top">61</a></td>
<td align="left">
unchecked
</td>
<td align="left">
no
</td>
<td align="left">
deprecated
</td>
</tr>
<tr>
<td align="left">
<code class="literal">xauth</code> command
</td>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/xbase-clients" target="_top">
<code class="literal">xbase-clients</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=xbase-clients" target="_top">http://qa.debian.org/popcon.php?package=xbase-clients</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/x/xbase-clients.html" target="_top">61</a></td>
<td align="left">
checked
</td>
<td align="left">
no
</td>
<td align="left">
local connection via pipe
</td>
</tr>
<tr>
<td align="left">
<code class="literal">ssh -X</code> command
</td>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/openssh-client" target="_top">
<code class="literal">openssh-client</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=openssh-client" target="_top">http://qa.debian.org/popcon.php?package=openssh-client</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/o/openssh-client.html" target="_top">2246</a></td>
<td align="left">
checked
</td>
<td align="left">
yes
</td>
<td align="left">
remote network connection
</td>
</tr>
<tr>
<td align="left">
GNOME display manager
</td>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/gdm3" target="_top">
<code class="literal">gdm3</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=gdm3" target="_top">http://qa.debian.org/popcon.php?package=gdm3</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/g/gdm3.html" target="_top">5899</a></td>
<td align="left">
checked
</td>
<td align="left">
no(XDMCP)
</td>
<td align="left">
local connection via pipe
</td>
</tr>
<tr>
<td align="left">
KDE display manager
</td>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/kdm" target="_top">
<code class="literal">kdm</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=kdm" target="_top">http://qa.debian.org/popcon.php?package=kdm</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/kdm.html" target="_top">3746</a></td>
<td align="left">
checked
</td>
<td align="left">
no(XDMCP)
</td>
<td align="left">
local connection via pipe
</td>
</tr>
<tr>
<td align="left">
X display manager
</td>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/xdm" target="_top">
<code class="literal">xdm</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=xdm" target="_top">http://qa.debian.org/popcon.php?package=xdm</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/x/xdm.html" target="_top">725</a></td>
<td align="left">
checked
</td>
<td align="left">
no(XDMCP)
</td>
<td align="left">
local connection via pipe
</td>
</tr>
<tr>
<td align="left">
WindowMaker display manager
</td>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/wdm" target="_top">
<code class="literal">wdm</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=wdm" target="_top">http://qa.debian.org/popcon.php?package=wdm</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/w/wdm.html" target="_top">1825</a></td>
<td align="left">
checked
</td>
<td align="left">
no(XDMCP)
</td>
<td align="left">
local connection via pipe
</td>
</tr>
<tr>
<td align="left">
LTSP display manager
</td>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/ldm" target="_top">
<code class="literal">ldm</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=ldm" target="_top">http://qa.debian.org/popcon.php?package=ldm</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/l/ldm.html" target="_top">576</a></td>
<td align="left">
checked
</td>
<td align="left">
yes
</td>
<td align="left">
remote SSH network connection (thin client)
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Warning">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="images/warning.png"></td>
<th align="left">Warning</th>
</tr>
<tr><td align="left" valign="top"><p>Do not use remote <a class="ulink" href="http://en.wikipedia.org/wiki/Transmission_Control_Protocol" target="_top">TCP</a>/<a class="ulink" href="http://en.wikipedia.org/wiki/Internet_Protocol" target="_top">IP</a> connection over <span class="strong"><strong>unsecured</strong></span> network for X connection unless you have very good reason such as use of encryption. A remote TCP/IP socket connection without encryption is prone to the <span class="strong"><strong>eavesdropping attack</strong></span> and is disabled by default on the Debian system. Use "<code class="literal">ssh -X</code>".</p></td></tr>
</table></div>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Warning">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="images/warning.png"></td>
<th align="left">Warning</th>
</tr>
<tr><td align="left" valign="top"><p>Do not use <a class="ulink" href="http://en.wikipedia.org/wiki/X_display_manager" target="_top">XDMCP connection</a> over <span class="strong"><strong>unsecured</strong></span> network either. It sends data via <a class="ulink" href="http://en.wikipedia.org/wiki/User_Datagram_Protocol" target="_top">UDP</a>/<a class="ulink" href="http://en.wikipedia.org/wiki/Internet_Protocol" target="_top">IP</a> without encryption and is prone to the <span class="strong"><strong>eavesdropping attack</strong></span>.</p></td></tr>
</table></div>
<div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="images/tip.png"></td>
<th align="left">Tip</th>
</tr>
<tr><td align="left" valign="top"><p>LTSP stands for <a class="ulink" href="http://en.wikipedia.org/wiki/Linux_Terminal_Server_Project" target="_top">Linux Terminal Server Project</a>.</p></td></tr>
</table></div>
</div>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="_starting_the_x_window_system"></a>7.5. Starting the X Window System</h2></div></div></div>
<p>The X Window System is usually started as an <a class="ulink" href="http://en.wikipedia.org/wiki/X_session_manager" target="_top">X session</a> which is the combination of an X server and connecting X clients. For the normal desktop system, both of them are executed on a workstation.</p>
<p>The <a class="ulink" href="http://en.wikipedia.org/wiki/X_session_manager" target="_top">X session</a> is started by the following.</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p><code class="literal">startx</code> command started from the command line
</p></li>
<li class="listitem"><p>
One of the <a class="ulink" href="http://en.wikipedia.org/wiki/X_display_manager" target="_top">X display manager</a> daemon programs <code class="literal">*dm</code> started from the end of the start up script in "<code class="literal">/etc/rc?.d/</code>" ("<code class="literal">?</code>" corresponding to the runlevel) directory
</p></li>
</ul></div>
<div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="images/tip.png"></td>
<th align="left">Tip</th>
</tr>
<tr><td align="left" valign="top"><p>The start up script for the display manager daemons checks the content of the "<code class="literal">/etc/X11/default-display-manager</code>" file before actually executing themselves. This ensures to have only one <a class="ulink" href="http://en.wikipedia.org/wiki/X_display_manager" target="_top">X display manager</a> daemon program activated.</p></td></tr>
</table></div>
<div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="images/tip.png"></td>
<th align="left">Tip</th>
</tr>
<tr><td align="left" valign="top"><p>See <a class="xref" href="ch08.en.html#_specific_locale_only_under_x_window" title="8.3.5. Specific locale only under X Window">Section 8.3.5, “Specific locale only under X Window”</a> for initial environment variables of the X display manager.</p></td></tr>
</table></div>
<p>Essentially, all these programs execute the "<code class="literal">/etc/X11/Xsession</code>" script. Then the "<code class="literal">/etc/X11/Xsession</code>" script performs <span class="citerefentry"><span class="refentrytitle">run-parts</span>(8)</span> like action to execute scripts in the "<code class="literal">/etc/X11/Xsession.d/</code>" directory. This is essentially an execution of a first program which is found in the following order with the <code class="literal">exec</code> builtin command.</p>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><p>
The script specified as the argument of "<code class="literal">/etc/X11/Xsession</code>" by the X display manager, if it is defined.
</p></li>
<li class="listitem"><p>
The "<code class="literal">~/.xsession</code>" or "<code class="literal">~/.Xsession</code>" script, if it is defined.
</p></li>
<li class="listitem"><p>
The "<code class="literal">/usr/bin/x-session-manager</code>" command, if it is defined.
</p></li>
<li class="listitem"><p>
The "<code class="literal">/usr/bin/x-window-manager</code>" command, if it is defined.
</p></li>
<li class="listitem"><p>
The "<code class="literal">/usr/bin/x-terminal-emulator</code>" command, if it is defined.
</p></li>
</ol></div>
<p>This process is affected by the content of "<code class="literal">/etc/X11/Xsession.options</code>". The exact programs to which these "<code class="literal">/usr/bin/x-*</code>" commands point, are determined by the Debian alternative system and changed by "<code class="literal">update-alternatives --config x-session-manager</code>", etc.</p>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_starting_x_session_with_gdm3"></a>7.5.1. Starting X session with gdm3</h3></div></div></div>
<p><span class="citerefentry"><span class="refentrytitle">gdm3</span>(1)</span> lets you select the session type (or desktop environment: <a class="xref" href="ch07.en.html#_setting_up_desktop_environment" title="7.2. Setting up desktop environment">Section 7.2, “Setting up desktop environment”</a>), and language (or locale: <a class="xref" href="ch08.en.html#_the_locale" title="8.3. The locale">Section 8.3, “The locale”</a>) of the X session from its menu. It keeps the selected default value in "<code class="literal">~/.dmrc</code>" as the following.</p>
<pre class="screen">[Desktop]
Session=default
Language=ja_JP.UTF-8</pre>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_customizing_the_x_session_classic_method"></a>7.5.2. Customizing the X session (classic method)</h3></div></div></div>
<p>On a system where "<code class="literal">/etc/X11/Xsession.options</code>" contains a line "<code class="literal">allow-user-xsession</code>" without preceding "<code class="literal">#</code>" characters, any user who defines "<code class="literal">~/.xsession</code>" or "<code class="literal">~/.Xsession</code>" is able to customize the action of "<code class="literal">/etc/X11/Xsession</code>" by completely overriding the system code. The last command in the "<code class="literal">~/.xsession</code>" file should use form of "<code class="literal">exec some-window/session-manager</code>" to start your favorite X window/session managers.</p>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_customizing_the_x_session_new_method"></a>7.5.3. Customizing the X session (new method)</h3></div></div></div>
<p>Here are new methods to customize the X session without completely overriding the system code as above.</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>
The display manager <code class="literal">gdm3</code> can select a specific session and set it as the argument of "<code class="literal">/etc/X11/Xsession</code>".
</p></li>
<li class="listitem"><p>
The "<code class="literal">~/.xsessionrc</code>" file is executed as a part of start up process. (desktop independent)
</p></li>
<li class="listitem"><p>
The "<code class="literal">~/.gnomerc</code>" file is executed as a part of start up process. (GNOME desktop only)
</p></li>
<li class="listitem"><p>
The GUI program based session management software may use the "<code class="literal">~/.gnome2/session</code>" file etc.
</p></li>
</ul></div>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_connecting_a_remote_x_client_via_ssh"></a>7.5.4. Connecting a remote X client via SSH</h3></div></div></div>
<p>The use of "<code class="literal">ssh -X</code>" enables a secure connection from a local X server to a remote application server.</p>
<p>Set "<code class="literal">X11Forwarding</code>" entries to "<code class="literal">yes</code>" in "<code class="literal">/etc/ssh/sshd_config</code>" of the remote host, if you want to avoid "<code class="literal">-X</code>" command-line option.</p>
<p>Start the X server on the local host.</p>
<p>Open an <code class="literal">xterm</code> in the local host.</p>
<p>Run <span class="citerefentry"><span class="refentrytitle">ssh</span>(1)</span> to establish a connection with the remote site as the following.</p>
<pre class="screen">localname @ localhost $ ssh -q -X loginname@remotehost.domain
Password:</pre>
<p>Run an X application command, e.g. "<code class="literal">gimp</code>", on the remote site as the following.</p>
<pre class="screen">loginname @ remotehost $ gimp &amp;</pre>
<p>This method can display the output from a remote X client as if it were locally connected through a local UNIX domain socket.</p>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_secure_x_terminal_via_the_internet"></a>7.5.5. Secure X terminal via the Internet</h3></div></div></div>
<p>Secure X terminal via the Internet, which displays remotely run entire X desktop environment, can easily achieved by using specialized package such as <code class="literal">ldm</code>. Your local machine becomes a secure thin client to the remote application server connected via SSH.</p>
</div>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="_fonts_in_the_x_window"></a>7.6. Fonts in the X Window</h2></div></div></div>
<p><a class="ulink" href="http://en.wikipedia.org/wiki/Fontconfig" target="_top">Fontconfig 2.0</a> was created to provide a distribution independent library for configuring and customizing font access in 2002. Debian after <code class="literal">squeeze</code> uses <a class="ulink" href="http://en.wikipedia.org/wiki/Fontconfig" target="_top">Fontconfig 2.0</a> for its font configuration.</p>
<p>Font supports on X Window System can be summarized as follows.</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
<p>
Legacy X server side font support system
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="circle">
<li class="listitem"><p>
The original core X11 font system provides backward compatibility for older version of X client applications.
</p></li>
<li class="listitem"><p>
The original core X11 fonts are installed on the X server.
</p></li>
</ul></div>
</li>
<li class="listitem">
<p>
Modern X client side font support system
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="circle">
<li class="listitem"><p>
Modern X system supports all fonts listed below (<a class="xref" href="ch07.en.html#_basic_fonts" title="7.6.1. Basic fonts">Section 7.6.1, “Basic fonts”</a>, <a class="xref" href="ch07.en.html#_additional_fonts" title="7.6.2. Additional fonts">Section 7.6.2, “Additional fonts”</a>, and <a class="xref" href="ch07.en.html#_cjk_fonts" title="7.6.3. CJK fonts">Section 7.6.3, “CJK fonts”</a>) with advanced features such as anti-aliasing.
</p></li>
<li class="listitem"><p><a class="ulink" href="http://en.wikipedia.org/wiki/Xft" target="_top">Xft</a> 2.0 connects modern X applications such as ones from <a class="ulink" href="http://en.wikipedia.org/wiki/GNOME" target="_top">GNOME</a>, <a class="ulink" href="http://en.wikipedia.org/wiki/KDE" target="_top">KDE</a>, and <a class="ulink" href="http://en.wikipedia.org/wiki/OpenOffice.org" target="_top">OpenOffice.org</a> with <a class="ulink" href="http://freetype.sourceforge.net/index.html" target="_top">FreeType</a> 2.0 library.
</p></li>
<li class="listitem"><p><a class="ulink" href="http://freetype.sourceforge.net/index.html" target="_top">FreeType</a> 2.0 provides font rasterization library.
</p></li>
<li class="listitem"><p><a class="ulink" href="http://en.wikipedia.org/wiki/Fontconfig" target="_top">Fontconfig</a> provides resolution of the font specification for <a class="ulink" href="http://en.wikipedia.org/wiki/Xft" target="_top">Xft</a> 2.0. See <span class="citerefentry"><span class="refentrytitle">fonts.conf</span>(5)</span> for its configuration.
</p></li>
<li class="listitem"><p>
All modern X applications using <a class="ulink" href="http://en.wikipedia.org/wiki/Xft" target="_top">Xft</a> 2.0 can talk to modern X server using the <a class="ulink" href="http://en.wikipedia.org/wiki/XRender" target="_top">X Rendering Extension</a>.
</p></li>
<li class="listitem"><p>
The <a class="ulink" href="http://en.wikipedia.org/wiki/XRender" target="_top">X Rendering Extension</a> moves font access and glyph image generation from the X server to the X client.
</p></li>
</ul></div>
</li>
</ul></div>
<div class="table">
<a name="tableofpackagestindowfontsystems"></a><p class="title"><b>Table 7.4. Table of packages to support X Window font systems</b></p>
<div class="table-contents"><table summary="Table of packages to support X Window font systems" border="1">
<colgroup>
<col align="left">
<col align="left">
<col align="left">
<col align="left">
</colgroup>
<thead><tr>
<th align="left">
package
</th>
<th align="left">
popcon
</th>
<th align="left">
size
</th>
<th align="left">
description
</th>
</tr></thead>
<tbody>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/xfonts-utils" target="_top">
<code class="literal">xfonts-utils</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=xfonts-utils" target="_top">http://qa.debian.org/popcon.php?package=xfonts-utils</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/x/xfonts-utils.html" target="_top">430</a></td>
<td align="left">
X Window System font utility programs
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/libxft2" target="_top">
<code class="literal">libxft2</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=libxft2" target="_top">http://qa.debian.org/popcon.php?package=libxft2</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/libx/libxft2.html" target="_top">160</a></td>
<td align="left">
Xft, a library that connects X applications with the FreeType font rasterization library
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/libfreetype6" target="_top">
<code class="literal">libfreetype6</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=libfreetype6" target="_top">http://qa.debian.org/popcon.php?package=libfreetype6</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/libf/libfreetype6.html" target="_top">835</a></td>
<td align="left">
<a class="ulink" href="http://freetype.sourceforge.net/index.html" target="_top">FreeType</a> 2.0 font rasterization library
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/fontconfig" target="_top">
<code class="literal">fontconfig</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=fontconfig" target="_top">http://qa.debian.org/popcon.php?package=fontconfig</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/f/fontconfig.html" target="_top">432</a></td>
<td align="left">
<a class="ulink" href="http://en.wikipedia.org/wiki/Fontconfig" target="_top">Fontconfig</a>, a generic font configuration library — support binaries
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/fontconfig-config" target="_top">
<code class="literal">fontconfig-config</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=fontconfig-config" target="_top">http://qa.debian.org/popcon.php?package=fontconfig-config</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/f/fontconfig-config.html" target="_top">340</a></td>
<td align="left">
<a class="ulink" href="http://en.wikipedia.org/wiki/Fontconfig" target="_top">Fontconfig</a>, a generic font configuration library — configuration data
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>You can check font configuration information by the following.</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>
"<code class="literal">xset q</code>" for core X11 font path
</p></li>
<li class="listitem"><p>
"<code class="literal">fc-match</code>" for fontconfig font default
</p></li>
<li class="listitem"><p>
"<code class="literal">fc-list</code>" for available fontconfig fonts
</p></li>
</ul></div>
<div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="images/tip.png"></td>
<th align="left">Tip</th>
</tr>
<tr><td align="left" valign="top"><p>"<a class="ulink" href="http://unifont.org/iuc27/html/ICUPresentation.html" target="_top">The Penguin and Unicode</a>" is a good overview of modern X Window System. Other documentations at <a class="ulink" href="http://unifont.org/" target="_top">http://unifont.org/</a> should provide good information on Unicode fonts, Unicode-enabled software, internationalization, and Unicode usability issues on <a class="ulink" href="http://en.wikipedia.org/wiki/Free_and_open_source_software" target="_top">free/libre/open source (FLOSS)</a> operating systems.</p></td></tr>
</table></div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_basic_fonts"></a>7.6.1. Basic fonts</h3></div></div></div>
<p>There are 2 major types of <a class="ulink" href="http://en.wikipedia.org/wiki/Computer_font" target="_top">computer fonts</a>.</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>
Bitmap fonts (good for low resolution rasterization)
</p></li>
<li class="listitem"><p>
Outline/stroke fonts (good for high resolution rasterization)
</p></li>
</ul></div>
<p>While scaling of bitmap fonts causes jugged image, scaling of outline/stroke fonts produces smooth image.</p>
<p>Bitmap fonts on the Debian system are usually provided by compressed <a class="ulink" href="http://fontforge.sourceforge.net/pcf-format.html" target="_top">X11 pcf bitmap font files</a> having their file extension "<code class="literal">.pcf.gz</code>".</p>
<p>Outline fonts on the Debian system are provided by the following.</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p><a class="ulink" href="http://en.wikipedia.org/wiki/PostScript" target="_top">PostScript</a> Type 1 font files having their file extension "<code class="literal">.pfb</code>" (binary font file) and "<code class="literal">.afm</code>" (font metrics file).
</p></li>
<li class="listitem"><p><a class="ulink" href="http://en.wikipedia.org/wiki/TrueType" target="_top">TrueType</a> (or <a class="ulink" href="http://en.wikipedia.org/wiki/OpenType" target="_top">OpenType</a>) font files usually having their file extension "<code class="literal">.ttf</code>".
</p></li>
</ul></div>
<div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="images/tip.png"></td>
<th align="left">Tip</th>
</tr>
<tr><td align="left" valign="top"><p><a class="ulink" href="http://en.wikipedia.org/wiki/OpenType" target="_top">OpenType</a> is intended to supersede both <a class="ulink" href="http://en.wikipedia.org/wiki/TrueType" target="_top">TrueType</a> and <a class="ulink" href="http://en.wikipedia.org/wiki/PostScript" target="_top">PostScript</a> Type 1.</p></td></tr>
</table></div>
<div class="table">
<a name="tableofcorresponscripttypebfonts"></a><p class="title"><b>Table 7.5. Table of corresponding <a class="ulink" href="http://en.wikipedia.org/wiki/PostScript" target="_top">PostScript</a> Type 1 fonts</b></p>
<div class="table-contents"><table summary="Table of corresponding PostScript Type 1 fonts" border="1">
<colgroup>
<col align="left">
<col align="left">
<col align="left">
<col align="left">
<col align="left">
<col align="left">
<col align="left">
</colgroup>
<thead><tr>
<th align="left">
font package
</th>
<th align="left">
popcon
</th>
<th align="left">
size
</th>
<th align="left">
sans-serif font
</th>
<th align="left">
serif font
</th>
<th align="left">
monospace font
</th>
<th align="left">
source of font
</th>
</tr></thead>
<tbody>
<tr>
<td align="left">
PostScript
</td>
<td align="left">
N/A
</td>
<td align="left">
N/A
</td>
<td align="left">
<a class="ulink" href="http://en.wikipedia.org/wiki/Helvetica" target="_top">Helvetica</a>
</td>
<td align="left">
<a class="ulink" href="%C3%97" target="_top">Times</a>
</td>
<td align="left">
<a class="ulink" href="http://en.wikipedia.org/wiki/Courier_(typeface)" target="_top">Courier</a>
</td>
<td align="left">
Adobe
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/gsfonts" target="_top">
gsfonts
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=gsfonts" target="_top">http://qa.debian.org/popcon.php?package=gsfonts</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/g/gsfonts.html" target="_top">4632</a></td>
<td align="left">
Nimbus Sans L
</td>
<td align="left">
Nimbus Roman No9 L
</td>
<td align="left">
Nimbus Mono L
</td>
<td align="left">
<a class="ulink" href="http://www.math.utah.edu/~beebe/fonts/urw.html" target="_top">URW</a> (Adobe compatible size)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/gsfonts-x11" target="_top">
gsfonts-x11
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=gsfonts-x11" target="_top">http://qa.debian.org/popcon.php?package=gsfonts-x11</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/g/gsfonts-x11.html" target="_top">68</a></td>
<td align="left">
Nimbus Sans L
</td>
<td align="left">
Nimbus Roman No9 L
</td>
<td align="left">
Nimbus Mono L
</td>
<td align="left">
X font support with PostScript Type 1 fonts.
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/t1-cyrillic" target="_top">
t1-cyrillic
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=t1-cyrillic" target="_top">http://qa.debian.org/popcon.php?package=t1-cyrillic</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/t/t1-cyrillic.html" target="_top">4984</a></td>
<td align="left">
Free Helvetian
</td>
<td align="left">
Free Times
</td>
<td align="left">
Free Courier
</td>
<td align="left">
URW extended (Adobe compatible size)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/lmodern" target="_top">
lmodern
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=lmodern" target="_top">http://qa.debian.org/popcon.php?package=lmodern</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/l/lmodern.html" target="_top">42620</a></td>
<td align="left">
LMSans*
</td>
<td align="left">
LMRoman*
</td>
<td align="left">
LMTypewriter*
</td>
<td align="left">
scalable PostScript and OpenType fonts based on Computer Modern (from TeX)
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><div class="table">
<a name="tableofcorresponingtruetypefonts"></a><p class="title"><b>Table 7.6. Table of corresponding <a class="ulink" href="http://en.wikipedia.org/wiki/TrueType" target="_top">TrueType</a> fonts</b></p>
<div class="table-contents"><table summary="Table of corresponding TrueType fonts" border="1">
<colgroup>
<col align="left">
<col align="left">
<col align="left">
<col align="left">
<col align="left">
<col align="left">
<col align="left">
</colgroup>
<thead><tr>
<th align="left">
font package
</th>
<th align="left">
popcon
</th>
<th align="left">
size
</th>
<th align="left">
sans-serif font
</th>
<th align="left">
serif font
</th>
<th align="left">
monospace font
</th>
<th align="left">
source of font
</th>
</tr></thead>
<tbody>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/ttf-mscorefonts-installer" target="_top">
ttf-mscorefonts-installer
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=ttf-mscorefonts-installer" target="_top">http://qa.debian.org/popcon.php?package=ttf-mscorefonts-installer</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/t/ttf-mscorefonts-installer.html" target="_top">124</a></td>
<td align="left">
<a class="ulink" href="http://en.wikipedia.org/wiki/Arial" target="_top">Arial</a>
</td>
<td align="left">
<a class="ulink" href="http://en.wikipedia.org/wiki/Times_Roman" target="_top">Times New Roman</a>
</td>
<td align="left">
<a class="ulink" href="http://en.wikipedia.org/wiki/Courier_(typeface)" target="_top">Courier New</a>
</td>
<td align="left">
Microsoft (Adobe compatible size) (This installs non-free data)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/ttf-liberation" target="_top">
ttf-liberation
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=ttf-liberation" target="_top">http://qa.debian.org/popcon.php?package=ttf-liberation</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/t/ttf-liberation.html" target="_top">47</a></td>
<td align="left">
Liberation Sans
</td>
<td align="left">
Liberation Serif
</td>
<td align="left">
Liberation Mono
</td>
<td align="left">
<a class="ulink" href="http://en.wikipedia.org/wiki/Liberation_fonts" target="_top">Liberation Fonts project</a> (Microsoft compatible size)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/ttf-freefont" target="_top">
ttf-freefont
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=ttf-freefont" target="_top">http://qa.debian.org/popcon.php?package=ttf-freefont</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/t/ttf-freefont.html" target="_top">5076</a></td>
<td align="left">
FreeSans
</td>
<td align="left">
FreeSerif
</td>
<td align="left">
FreeMono
</td>
<td align="left">
<a class="ulink" href="http://savannah.gnu.org/projects/freefont/" target="_top">GNU freefont</a> (Microsoft compatible size)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/ttf-dejavu" target="_top">
ttf-dejavu
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=ttf-dejavu" target="_top">http://qa.debian.org/popcon.php?package=ttf-dejavu</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/t/ttf-dejavu.html" target="_top">76</a></td>
<td align="left">
DejaVu Sans
</td>
<td align="left">
DejaVu Serif
</td>
<td align="left">
DejaVu Sans Mono
</td>
<td align="left">
<a class="ulink" href="http://dejavu-fonts.org" target="_top">DejaVu</a>, <a class="ulink" href="http://www.gnome.org/fonts/" target="_top">Bitstream Vera</a> with Unicode coverage
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/ttf-dejavu-core" target="_top">
ttf-dejavu-core
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=ttf-dejavu-core" target="_top">http://qa.debian.org/popcon.php?package=ttf-dejavu-core</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/t/ttf-dejavu-core.html" target="_top">2868</a></td>
<td align="left">
DejaVu Sans
</td>
<td align="left">
DejaVu Serif
</td>
<td align="left">
DejaVu Sans Mono
</td>
<td align="left">
<a class="ulink" href="http://dejavu-fonts.org" target="_top">DejaVu</a>, <a class="ulink" href="http://www.gnome.org/fonts/" target="_top">Bitstream Vera</a> with Unicode coverage (sans, sans-bold, serif, serif-bold, mono, mono-bold)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/ttf-dejavu-extra" target="_top">
ttf-dejavu-extra
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=ttf-dejavu-extra" target="_top">http://qa.debian.org/popcon.php?package=ttf-dejavu-extra</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/t/ttf-dejavu-extra.html" target="_top">6560</a></td>
<td align="left">
N/A
</td>
<td align="left">
N/A
</td>
<td align="left">
N/A
</td>
<td align="left">
<a class="ulink" href="http://dejavu-fonts.org" target="_top">DejaVu</a>, <a class="ulink" href="http://www.gnome.org/fonts/" target="_top">Bitstream Vera</a> with Unicode coverage (oblique, italic, bold-oblique, bold-italic, condensed)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/ttf-unifont" target="_top">
ttf-unifont
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=ttf-unifont" target="_top">http://qa.debian.org/popcon.php?package=ttf-unifont</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/t/ttf-unifont.html" target="_top">16044</a></td>
<td align="left">
N/A
</td>
<td align="left">
N/A
</td>
<td align="left">
unifont
</td>
<td align="left">
<a class="ulink" href="http://Unifoundry.com" target="_top">GNU Unifont</a>, with all printable character code in Unicode 5.1 Basic Multilingual Plane (BMP)
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="images/tip.png"></td>
<th align="left">Tip</th>
</tr>
<tr><td align="left" valign="top"><p><a class="ulink" href="http://dejavu-fonts.org" target="_top">DejaVu</a> fonts are based on and superset of <a class="ulink" href="http://www.gnome.org/fonts/" target="_top">Bitstream Vera</a> fonts.</p></td></tr>
</table></div>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_additional_fonts"></a>7.6.2. Additional fonts</h3></div></div></div>
<p><span class="citerefentry"><span class="refentrytitle">aptitude</span>(8)</span> helps you find additional fonts easily.</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>
The short package list under "Tasks" → "Localization"
</p></li>
<li class="listitem"><p>
The filtered flat package list of font data with regex on debtag: "<code class="literal">~Gmade-of::data:font</code>"
</p></li>
<li class="listitem"><p>
The filtered flat package list of the BDF (bitmap) font packages with regex on package name: "<code class="literal">~nxfonts-</code>"
</p></li>
<li class="listitem"><p>
The filtered flat package list of the TrueType (outline) font packages with regex on package name: "<code class="literal">~nttf-</code>"
</p></li>
</ul></div>
<p>Since <span class="strong"><strong>Free</strong></span> fonts are sometimes limited, installing or sharing some commercial TrueType fonts is an option for a Debian users. In order to make this process easy for the user, some convenience packages have been created.</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>
<code class="literal">ttf-mathematica4.1</code>
</p></li>
<li class="listitem"><p>
<code class="literal">ttf-mscorefonts-installer</code>
</p></li>
</ul></div>
<p>You'll have a really good selection of TrueType fonts at the expense of contaminating your <span class="strong"><strong>Free</strong></span> system with non-Free fonts.</p>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_cjk_fonts"></a>7.6.3. CJK fonts</h3></div></div></div>
<p>Here are some key points focused on fonts of <a class="ulink" href="http://en.wikipedia.org/wiki/CJK_characters" target="_top">CJK characters</a>.</p>
<div class="table">
<a name="tableofkeywordsundicatefonttypes"></a><p class="title"><b>Table 7.7. Table of key words used in CJK font names to indicate font types</b></p>
<div class="table-contents"><table summary="Table of key words used in CJK font names to indicate font types" border="1">
<colgroup>
<col align="left">
<col align="left">
<col align="left">
<col align="left">
</colgroup>
<thead><tr>
<th align="left">
font type
</th>
<th align="left">
Japanese font name
</th>
<th align="left">
Chinese font name
</th>
<th align="left">
Korean font name
</th>
</tr></thead>
<tbody>
<tr>
<td align="left">
sans-serif
</td>
<td align="left">
gothic, ゴチック
</td>
<td align="left">
hei, gothic
</td>
<td align="left">
dodum, gulim, gothic
</td>
</tr>
<tr>
<td align="left">
serif
</td>
<td align="left">
mincho, 明朝
</td>
<td align="left">
song, ming
</td>
<td align="left">
batang
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>Font name such as "VL PGothic" with "P" is a proportional font which corresponds to the fixed width "VL Gothic" font.</p>
<p>For example, <a class="ulink" href="http://en.wikipedia.org/wiki/Shift_JIS" target="_top">Shift_JIS</a> code table comprises 7070 characters. They can be grouped as the following.</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>
JIS X 0201 single-byte characters (191 characters, a.k.a. half-width characters)
</p></li>
<li class="listitem"><p>
JIS X 0208 double-byte characters (6879 characters, a.k.a. full-width characters)
</p></li>
</ul></div>
<p>Double-byte characters occupy double width on console terminals which uses CJK fixed width fonts. In order to cope with such situation, <a class="ulink" href="http://www.ibiblio.org/pub/packages/ccic/software/info/HBF-1.1/" target="_top">Hanzi Bitmap Font (HBF) File</a> with file extension "<code class="literal">.hbf</code>" may be deployed for fonts containing single-byte and double-byte characters.</p>
<p>In order to save space for <a class="ulink" href="http://en.wikipedia.org/wiki/TrueType" target="_top">TrueType</a> font files, <a class="ulink" href="http://en.wikipedia.org/wiki/TrueType" target="_top">TrueType</a> font collection file with file extension "<code class="literal">.ttc</code>" may be used.</p>
<p>In order to cover complicated code space of characters, CID keyed <a class="ulink" href="http://en.wikipedia.org/wiki/PostScript" target="_top">PostScript</a> Type 1 font is used with CMap files starting themselves with "<code class="literal">%!PS-Adobe-3.0 Resource-CMap</code>". This is rarely used for normal X display but used for PDF rendering etc. (see <a class="xref" href="ch07.en.html#_x_utility_applications" title="7.7.2. X utility applications">Section 7.7.2, “X utility applications”</a>).</p>
<div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Tip">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Tip]" src="images/tip.png"></td>
<th align="left">Tip</th>
</tr>
<tr><td align="left" valign="top"><p>The multiple <a class="ulink" href="http://en.wikipedia.org/wiki/Glyph" target="_top">glyphs</a> are expected for some <a class="ulink" href="http://en.wikipedia.org/wiki/Unicode" target="_top">Unicode</a> code points due to <a class="ulink" href="http://en.wikipedia.org/wiki/Han_unification" target="_top">Han unification</a>. One of the most annoying ones are "U+3001 IDEOGRAPHIC COMMA" and "U+3002 IDEOGRAPHIC FULL STOP" whose character positions differ among CJK countries. Configuring priority of Japanese centric fonts over Chinese ones using "<code class="literal">~/.fonts.conf</code>" should give peace of minds to Japanese.</p></td></tr>
</table></div>
</div>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="_x_applications"></a>7.7. X applications</h2></div></div></div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_x_office_applications"></a>7.7.1. X office applications</h3></div></div></div>
<p>Here is a list of basic office applications (OO is OpenOffice.org).</p>
<div class="table">
<a name="listofbasicxofficeapplications"></a><p class="title"><b>Table 7.8. List of basic X office applications</b></p>
<div class="table-contents"><table summary="List of basic X office applications" border="1">
<colgroup>
<col align="left">
<col align="left">
<col align="left">
<col align="left">
<col align="left">
</colgroup>
<thead><tr>
<th align="left">
package
</th>
<th align="left">
popcon
</th>
<th align="left">
package size
</th>
<th align="left">
type
</th>
<th align="left">
description
</th>
</tr></thead>
<tbody>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/openoffice.org-writer" target="_top">
<code class="literal">openoffice.org-writer</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=openoffice.org-writer" target="_top">http://qa.debian.org/popcon.php?package=openoffice.org-writer</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/o/openoffice.org-writer.html" target="_top">164</a></td>
<td align="left">
OO
</td>
<td align="left">
word processor
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/openoffice.org-calc" target="_top">
<code class="literal">openoffice.org-calc</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=openoffice.org-calc" target="_top">http://qa.debian.org/popcon.php?package=openoffice.org-calc</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/o/openoffice.org-calc.html" target="_top">164</a></td>
<td align="left">
OO
</td>
<td align="left">
spreadsheet
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/openoffice.org-impress" target="_top">
<code class="literal">openoffice.org-impress</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=openoffice.org-impress" target="_top">http://qa.debian.org/popcon.php?package=openoffice.org-impress</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/o/openoffice.org-impress.html" target="_top">164</a></td>
<td align="left">
OO
</td>
<td align="left">
presentation
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/openoffice.org-base" target="_top">
<code class="literal">openoffice.org-base</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=openoffice.org-base" target="_top">http://qa.debian.org/popcon.php?package=openoffice.org-base</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/o/openoffice.org-base.html" target="_top">164</a></td>
<td align="left">
OO
</td>
<td align="left">
database management
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/openoffice.org-draw" target="_top">
<code class="literal">openoffice.org-draw</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=openoffice.org-draw" target="_top">http://qa.debian.org/popcon.php?package=openoffice.org-draw</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/o/openoffice.org-draw.html" target="_top">164</a></td>
<td align="left">
OO
</td>
<td align="left">
vector graphics editor (draw)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/openoffice.org-math" target="_top">
<code class="literal">openoffice.org-math</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=openoffice.org-math" target="_top">http://qa.debian.org/popcon.php?package=openoffice.org-math</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/o/openoffice.org-math.html" target="_top">164</a></td>
<td align="left">
OO
</td>
<td align="left">
mathematical equation/formula editor
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/abiword" target="_top">
<code class="literal">abiword</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=abiword" target="_top">http://qa.debian.org/popcon.php?package=abiword</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/a/abiword.html" target="_top">5754</a></td>
<td align="left">
GNOME
</td>
<td align="left">
word processor
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/gnumeric" target="_top">
<code class="literal">gnumeric</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=gnumeric" target="_top">http://qa.debian.org/popcon.php?package=gnumeric</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/g/gnumeric.html" target="_top">7698</a></td>
<td align="left">
GNOME
</td>
<td align="left">
spreadsheet
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/gimp" target="_top">
<code class="literal">gimp</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=gimp" target="_top">http://qa.debian.org/popcon.php?package=gimp</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/g/gimp.html" target="_top">15168</a></td>
<td align="left">
GTK
</td>
<td align="left">
bitmap graphics editor (paint)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/inkscape" target="_top">
<code class="literal">inkscape</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=inkscape" target="_top">http://qa.debian.org/popcon.php?package=inkscape</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/i/inkscape.html" target="_top">80425</a></td>
<td align="left">
GNOME
</td>
<td align="left">
vector graphics editor (draw)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/dia-gnome" target="_top">
<code class="literal">dia-gnome</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=dia-gnome" target="_top">http://qa.debian.org/popcon.php?package=dia-gnome</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/d/dia-gnome.html" target="_top">617</a></td>
<td align="left">
GNOME
</td>
<td align="left">
flowchart and diagram editor
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/planner" target="_top">
<code class="literal">planner</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=planner" target="_top">http://qa.debian.org/popcon.php?package=planner</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/p/planner.html" target="_top">1146</a></td>
<td align="left">
GNOME
</td>
<td align="left">
project management
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/kword" target="_top">
<code class="literal">kword</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=kword" target="_top">http://qa.debian.org/popcon.php?package=kword</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/kword.html" target="_top">NOT_FOUND</a></td>
<td align="left">
KDE
</td>
<td align="left">
word processor
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/kspread" target="_top">
<code class="literal">kspread</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=kspread" target="_top">http://qa.debian.org/popcon.php?package=kspread</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/kspread.html" target="_top">NOT_FOUND</a></td>
<td align="left">
KDE
</td>
<td align="left">
spreadsheet
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/kpresenter" target="_top">
<code class="literal">kpresenter</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=kpresenter" target="_top">http://qa.debian.org/popcon.php?package=kpresenter</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/kpresenter.html" target="_top">NOT_FOUND</a></td>
<td align="left">
KDE
</td>
<td align="left">
presentation
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/kexi" target="_top">
<code class="literal">kexi</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=kexi" target="_top">http://qa.debian.org/popcon.php?package=kexi</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/kexi.html" target="_top">NOT_FOUND</a></td>
<td align="left">
KDE
</td>
<td align="left">
database management
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/karbon" target="_top">
<code class="literal">karbon</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=karbon" target="_top">http://qa.debian.org/popcon.php?package=karbon</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/karbon.html" target="_top">NOT_FOUND</a></td>
<td align="left">
KDE
</td>
<td align="left">
vector graphics editor (draw)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/krita" target="_top">
<code class="literal">krita</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=krita" target="_top">http://qa.debian.org/popcon.php?package=krita</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/krita.html" target="_top">NOT_FOUND</a></td>
<td align="left">
KDE
</td>
<td align="left">
bitmap graphics editor (paint)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/kchart" target="_top">
<code class="literal">kchart</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=kchart" target="_top">http://qa.debian.org/popcon.php?package=kchart</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/kchart.html" target="_top">NOT_FOUND</a></td>
<td align="left">
KDE
</td>
<td align="left">
graph and chart drawing program
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/kformula" target="_top">
<code class="literal">kformula</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=kformula" target="_top">http://qa.debian.org/popcon.php?package=kformula</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/kformula.html" target="_top">NOT_FOUND</a></td>
<td align="left">
KDE
</td>
<td align="left">
mathematical equation/formula editor
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/kplato" target="_top">
<code class="literal">kplato</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=kplato" target="_top">http://qa.debian.org/popcon.php?package=kplato</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/kplato.html" target="_top">NOT_FOUND</a></td>
<td align="left">
KDE
</td>
<td align="left">
project management
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break">
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_x_utility_applications"></a>7.7.2. X utility applications</h3></div></div></div>
<p>Here is a list of basic utility applications which caught my eyes.</p>
<div class="table">
<a name="listofbasicxutilityapplications"></a><p class="title"><b>Table 7.9. List of basic X utility applications</b></p>
<div class="table-contents"><table summary="List of basic X utility applications" border="1">
<colgroup>
<col align="left">
<col align="left">
<col align="left">
<col align="left">
<col align="left">
</colgroup>
<thead><tr>
<th align="left">
package
</th>
<th align="left">
popcon
</th>
<th align="left">
package size
</th>
<th align="left">
type
</th>
<th align="left">
description
</th>
</tr></thead>
<tbody>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/evince" target="_top">
<code class="literal">evince</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=evince" target="_top">http://qa.debian.org/popcon.php?package=evince</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/e/evince.html" target="_top">1073</a></td>
<td align="left">
GNOME
</td>
<td align="left">
document(pdf) viewer
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/okular" target="_top">
<code class="literal">okular</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=okular" target="_top">http://qa.debian.org/popcon.php?package=okular</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/o/okular.html" target="_top">3215</a></td>
<td align="left">
KDE
</td>
<td align="left">
document(pdf) viewer
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/evolution" target="_top">
<code class="literal">evolution</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=evolution" target="_top">http://qa.debian.org/popcon.php?package=evolution</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/e/evolution.html" target="_top">4983</a></td>
<td align="left">
GNOME
</td>
<td align="left">
Personal information Management (groupware and email)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/kontact" target="_top">
<code class="literal">kontact</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=kontact" target="_top">http://qa.debian.org/popcon.php?package=kontact</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/kontact.html" target="_top">4971</a></td>
<td align="left">
KDE
</td>
<td align="left">
Personal information Management (groupware and email)
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/scribus" target="_top">
<code class="literal">scribus</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=scribus" target="_top">http://qa.debian.org/popcon.php?package=scribus</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/s/scribus.html" target="_top">54492</a></td>
<td align="left">
KDE
</td>
<td align="left">
desktop page layout editor
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/glabels" target="_top">
<code class="literal">glabels</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=glabels" target="_top">http://qa.debian.org/popcon.php?package=glabels</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/g/glabels.html" target="_top">1269</a></td>
<td align="left">
GNOME
</td>
<td align="left">
label editor
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/gnucash" target="_top">
<code class="literal">gnucash</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=gnucash" target="_top">http://qa.debian.org/popcon.php?package=gnucash</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/g/gnucash.html" target="_top">7016</a></td>
<td align="left">
GNOME
</td>
<td align="left">
personal accounting
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/homebank" target="_top">
<code class="literal">homebank</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=homebank" target="_top">http://qa.debian.org/popcon.php?package=homebank</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/h/homebank.html" target="_top">759</a></td>
<td align="left">
GTK
</td>
<td align="left">
personal accounting
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/kmymoney" target="_top">
<code class="literal">kmymoney</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=kmymoney" target="_top">http://qa.debian.org/popcon.php?package=kmymoney</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/k/kmymoney.html" target="_top">9488</a></td>
<td align="left">
KDE
</td>
<td align="left">
personal accounting
</td>
</tr>
<tr>
<td align="left"><a class="ulink" href="http://packages.debian.org/sid/xsane" target="_top">
<code class="literal">xsane</code>
</a></td>
<td align="left"><a class="ulink" href="http://qa.debian.org/popcon.php?package=xsane" target="_top">http://qa.debian.org/popcon.php?package=xsane</a></td>
<td align="left"><a class="ulink" href="http://packages.qa.debian.org/x/xsane.html" target="_top">702</a></td>
<td align="left">
GTK
</td>
<td align="left">
scanner frontend
</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><div class="caution" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Caution">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Caution]" src="images/caution.png"></td>
<th align="left">Caution</th>
</tr>
<tr><td align="left" valign="top"><p>The <code class="literal">poppler-data</code> package (previously non-free, see <a class="xref" href="ch11.en.html#_ghostscript" title="11.3.1. Ghostscript">Section 11.3.1, “Ghostscript”</a>) needs to be installed for <code class="literal">evince</code> and <code class="literal">okular</code> to display CJK PDF documents using Cmap data (<a class="xref" href="ch07.en.html#_cjk_fonts" title="7.6.3. CJK fonts">Section 7.6.3, “CJK fonts”</a>).</p></td></tr>
</table></div>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>Installing softwares such as <code class="literal">scribus</code> (KDE) on GNOME desktop environment are quite acceptable since corresponding functionality is not available under GNOME desktop environment. But installing too many packages with duplicated functionalities clutter your menu.</p></td></tr>
</table></div>
</div>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="_the_x_trivia"></a>7.8. The X trivia</h2></div></div></div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_keymaps_and_pointer_button_mappings_in_x"></a>7.8.1. Keymaps and pointer button mappings in X</h3></div></div></div>
<p><span class="citerefentry"><span class="refentrytitle">xmodmap</span>(1)</span> is a utility for modifying keymaps and pointer button mappings in the X Window System.
To get the <span class="strong"><strong>keycode</strong></span>, run <span class="citerefentry"><span class="refentrytitle">xev</span>(1)</span> in the X and press keys. To get the meaning of <span class="strong"><strong>keysym</strong></span>, look into the MACRO definition in "<code class="literal">/usr/include/X11/keysymdef.h</code>" file (<code class="literal">x11proto-core-dev</code> package). All "<code class="literal">#define</code>" statements in this file are named as "<code class="literal">XK_</code>" prepended to <span class="strong"><strong>keysym</strong></span> names.</p>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_classic_x_clients"></a>7.8.2. Classic X clients</h3></div></div></div>
<p>Most traditional X client programs, such as <span class="citerefentry"><span class="refentrytitle">xterm</span>(1)</span>, can be started with a set of standard command line options to specify geometry, font, and display.</p>
<p>They also use the X resource database to configure their appearance. The system-wide defaults of X resources are stored in "<code class="literal">/etc/X11/Xresources/*</code>" and application defaults of them are stored in "<code class="literal">/etc/X11/app-defaults/*</code>". Use these settings as the starting points.</p>
<p>The "<code class="literal">~/.Xresources</code>" file is used to store user resource specifications. This file is automatically merged into the default X resources upon login. To make changes to these settings and make them effective immediately, merge them into the database using the following command.</p>
<pre class="screen">$ xrdb -merge ~/.Xresources</pre>
<p>See <span class="citerefentry"><span class="refentrytitle">x</span>(7)</span> and <span class="citerefentry"><span class="refentrytitle">xrdb</span>(1)</span>.</p>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_the_x_terminal_emulator_8212_xterm"></a>7.8.3. The X terminal emulator — xterm</h3></div></div></div>
<p>Learn everything about <span class="citerefentry"><span class="refentrytitle">xterm</span>(1)</span> at <a class="ulink" href="http://dickey.his.com/xterm/xterm.faq.html" target="_top">http://dickey.his.com/xterm/xterm.faq.html</a>.</p>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="_running_x_clients_as_root"></a>7.8.4. Running X clients as root</h3></div></div></div>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Warning">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="images/warning.png"></td>
<th align="left">Warning</th>
</tr>
<tr><td align="left" valign="top"><p>Never start the X display/session manager under the root account by typing in <code class="literal">root</code> to the prompt of the display manager such as <code class="literal">gdm3</code> because it is considered unsafe (insecure), even when you plan to perform administrative activities. The entire X architecture is considered insecure if run as root. You must always use the lowest privilege level possible, like a regular user account.</p></td></tr>
</table></div>
<p>Easy ways to run a particular X client, e.g. "<code class="literal">foo</code>" as root is to use <span class="citerefentry"><span class="refentrytitle">sudo</span>(8)</span> etc. as the following.</p>
<pre class="screen">$ sudo foo &amp;</pre>
<pre class="screen">$ sudo -s
# foo &amp;</pre>
<pre class="screen">$ gksu foo &amp;</pre>
<pre class="screen">$ ssh -X root@localhost
# foo &amp;</pre>
<div class="caution" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Caution">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Caution]" src="images/caution.png"></td>
<th align="left">Caution</th>
</tr>
<tr><td align="left" valign="top"><p>Use of <span class="citerefentry"><span class="refentrytitle">ssh</span>(1)</span> just for this purpose as above is waste of resource.</p></td></tr>
</table></div>
<p>In order for the X client to connect to the X server, please note the following.</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>
Values of the old user's "<code class="literal">$XAUTHORITY</code>" and "<code class="literal">$DISPLAY</code>" environment variables must be copied to the new user's ones.
</p></li>
<li class="listitem"><p>
The file pointed by value of the "<code class="literal">$XAUTHORITY</code>" environment variable must be readable by the new user.
</p></li>
</ul></div>
<p>The <code class="literal">gksu</code> package (popcon: ) is a specialized GTK+ GUI package for gaining the root privileges. It can be configured to use <span class="citerefentry"><span class="refentrytitle">su</span>(1)</span> or <span class="citerefentry"><span class="refentrytitle">sudo</span>(8)</span> as its backend depending on the "<code class="literal">/apps/gksu/sudo-mode</code>" gconf key. You can edit gconf key using <span class="citerefentry"><span class="refentrytitle">gconf-editor</span>(1)</span> (menu: "Applications" → "System Tools" → "Configuration Editor").</p>
</div>
</div>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="ch06.en.html"><img src="images/prev.gif" alt="Prev"></a> </td>
<td width="20%" align="center"> </td>
<td width="40%" align="right"> <a accesskey="n" href="ch08.en.html"><img src="images/next.gif" alt="Next"></a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Chapter 6. Network applications </td>
<td width="20%" align="center"><a accesskey="h" href="index.en.html"><img src="images/home.gif" alt="Home"></a></td>
<td width="40%" align="right" valign="top"> Chapter 8. I18N and L10N</td>
</tr>
</table>
</div>
</body>
</html>