Section 10.5. The X Window System


10.5. The X Window System

  • X is a client-server GUI system. XFree86 is the X implementation used on Linux.

  • An X server is software or hardware that renders graphical output on a display device.

  • An X client is software whose output is displayed by an X server and is usually managed by a window manager.

  • An X window manager is a client that applies frames and controls to other client windows.

10.5.1. Objective 1: Install and Configure X11

10.5.1.1. Selecting and configuring an X server
  • XFree86 configuration depends on the software version, the video chipset in use, and the monitor's capabilities.

  • XFree86 can be installed from Linux distribution packages (.rpm, .deb), precompiled binaries, or compiled from source.

  • Configuration of XFree86 is done in the XF86Configfile.

  • XF86Config contains sections that define input devices, monitors, graphics modes, and so on.

  • XF86Config files differ between XFree86 Versions 3.x and 4.x.

10.5.1.2. X fonts
  • The X server uses X fonts to satisfy font requests from X clients.

  • Fonts are enumerated either through a static list presented in /etc/X11/XF86Config or through a font server such as xfs.

  • xfs is configured using its configuration file, /etc/X11/fs/config.

10.5.1.3. .Xresources
  • X resource settings in the .Xresources file control client program parameters. For example, this line defines a black background for an xterm:

     xterm*background: Black 

10.5.2. Objective 2: Setup A Display Manager

10.5.2.1. xdm
  • xdm, the X Display Manager, handles X sessions on physical displays both locally and across the network.

  • xdm handles authentication.

  • xdm is configured by a series of files in /etc/X11/xdm.

  • xdm is typically started automatically in runlevel 5 by making the appropriate settings in /etc/inittab.

  • xdm may be personalized by changing the resources in /etc/X11/xdm/Xresources.

  • Command-line options for the X server can be added to the /etc/X11/xdm/Xservers file.

10.5.2.2. X terminals
  • X terminals, are low-cost hardware systems that implement an X server and display.

  • xdm can listen for inbound connection requests from X terminals using the xdmcp protocol.

  • Specific access rules for X terminals to the xdm daemon can be configured in /etc/X11/xdm/Xaccess.

10.5.3. Objective 4: Install and Customize a Window Manager Environment

10.5.3.1. Concepts
  • An X server doesn't supply a working user environment.

  • Starting X usually involves launching not only the X server but also a window manager and other clients.

  • A default window manager, such as the basic twm, is started by a combination of the startx script and xinit.

  • xinit also calls scripts that include a window manager and default clients.

  • Default system X configuration can be overridden by files in the user's home directory.

10.5.3.2. Window managers
  • Each window manager and desktop environment has its own style of configuration.

  • twm uses .twmrc in the user's home directory. If that file doesn't exist, it uses the system-wide /etc/X11/twm/system.twmrc.

  • Window manager configuration files can contain font and color selections, bindings between actions (such as mouse clicks) and responses, and menu definitions.

10.5.3.3. xterm
  • A terminal emulator is a program that offers a command-line interface in a GUI window.

  • xterm is the standard terminal emulator; there are many others.

  • xterm can be configured in /usr/lib/X11/app-defaults/XTerm.

10.5.3.4. X libraries
  • X applications are dependent upon shared X libraries.

  • Various graphical toolkits such as GTK or Qt can be used to develop X client applications.

  • Software that depends on a particular library will not run unless that library is installed.

  • You can determine which libraries an executable requires with ldd.

10.5.3.5. Remote X clients
  • X clients can be displayed on remote X servers.

  • The DISPLAY environment variable is used to indicate the destination for X client displays.

  • DISPLAY has the format [host]:display[.screen] where host is a remote hostname or IP address, display is the display target (starting with 0), and screen is the screen to use on multiheaded displays.

  • DISPLAY must be exported.



LPI Linux Certification in a Nutshell
LPI Linux Certification in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596005288
EAN: 2147483647
Year: 2004
Pages: 257

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net