LPI Linux Certification/Install & Configure X11

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

Contents

[edit] Detailed Objective

Weight: 5

Description:
Candidates should be able to install and configure X and an X font server.

  • Key knowledge area(s):
    • Verify that the video card and monitor are supported by an X server.
    • Customize and tune X for the videocard and monitor.
    • Install and configure an X font server.
    • Install fonts.
    • Manually edit the X Window configuration file.
  • The following is a partial list of the used files, terms and utilities:
    • xorgcfg
    • xorgconfig
    • /etc/X11/xorg.conf XF86Setup
    • xf86config
    • xvidtune
    • /etc/X11/XF86Config
    • .Xresources

[edit] Configuration

type "XFree86 -configure", it will scan your hardware and auto. generate a configuration file matching to your hardware. However, FOR PS/2 MOUSE, I usually need to modify this config file manually from ""Device" "/dev/mouse"" to ""Device" "/dev/psaux""

[edit] Starting and stopping X

To start X you can use:
startx - terminal command used at level 3;
edit /etc/inittab to run default at level 5;
xinit - when there is no .xinitrc file;
init 5 - to change manually runlevel to 5 (and run display manager);
xdm - (X Display Manager) - graphical login manager, which run automatically at boot process when starting Linux at level 5 (there are also external graphical login managers ex. kdm, gdm).

To stop X you can use: <CTRL>+<ALT>+<BACKSPACE>;
init 3 - at lower level than 5 Linux will stop X-Windows;
kill the XFree process.

Configuring X To configure X on a system use XF86Setup. The program will generate a configuration file that will be used by the XFree86 server. To tune the screen under X use Xfine2.

Under X, the user can configure every conceivable aspect of graphic display. Screen font size, styles Pointer behaviour Screen colors Window manager

The tuning can be done on a system-wide or per-user. .xinitrc contains the default window manager and style information to be used by the startx command. This file is usually located under /home/username when defined on a per-user basis. .Xdefaults used to setup pointer behaviour, colors, fonts, etc...

[edit] Exercises