-->

Previous | Table of Contents | Next

Page 175

CHAPTER 10

X Window

by Kamran Husain

IN THIS CHAPTER

Page 176

This chapter details the way to configure the X Window System for Linux. This version of
X Window for Linux is called XFree86 version 3.3.1.

This chapter covers the following topics with regard to configuring your X Window System:

Setting Up Your XFree86 System

This section covers another one of the most difficult, time-consuming, and frustrating parts of installing XFree86: setting up an XF86Config file.

If you have XFree86 3.3.1 and your graphic card is listed in the Hardware-HOWTO file, you should use the xf86config program to do your configuration. This xf86config program is a comfortable and safe way to set up your system. If your graphics card is not listed, you have some work ahead of you.

The XF86Config File

To be able to set up an XF86Config file, you need to read these files from /usr/X11R6/lib/X11/doc: README, README.Config, VideoModes.doc, and README.Linux. You also need to read the man pages on the following topics: XF86Config, XFree86, and the server you are using.

The XF86Config file can be located in several places:

The Linux filesystem standard places the XF86Config file in /etc/X11. The XFree86 servers will not "expect" an XF86Config file at this location, so there must be a link from one of the places in the preceding list to /usr/X11R6/lib/X11. Find this link first and use it to access the file. This way, you can be sure your changes take effect.

To give you some hints, here is a list of what you need to set up the XF86Config file correctly:

Page 177

CAUTION
Do not share XF86Config files with people who do not have the same configuration (graphics card and monitor). By sharing, you could fry your monitor.

It isn't so hard to figure out modes for multisync monitors. Don't ever use a mode that you haven't verified as being within your monitor's specs. Even if you have exactly the same setup as the computer you're sharing the file with, check all modes before trying them. There are many people who run their computers from specs that may not damage their hardware but could damage yours.

Using Xconfigurator

Red Hat Linux comes with a utility called Xconfigurator. This is a menu-driven tool that will ask questions about your video card, monitor, and mouse, and then create an XF86Config file for you. Xconfigurator will ask some fairly in-depth questions about your video card and monitor. Gather up all your documentation about your machine's hardware before running Xconfigurator.

Examining the XF86Config File

The XF86Config file contains all the configuration parameters for your X Window installation. Space does not permit me to print the whole file. You will have to look in the directory

Page 178

/usr/lib/X11 for the XF86Config.eg file. Copy this XF86Config.eg file to XF86Config. Then edit the XF86Config file. The format of the XF86Config file consists of different sets that are listed in the following sections:

Each of these sections describes your hardware configuration, location of files, or both, to the X server. Each section is enclosed by the words:


Section "SectionName"

< information for the section >

EndSection

The File Pathnames

There is no reason to fiddle with the standard paths as provided in the sample XF86Config file. In fact, any distribution that provides a different path structure should have edited this section of the XF86Config.sample or the template XF86Config file for xf86config. You do have to know where these paths are pointing to in case of difficulties.

Your XF86Config file should look similar to the lines from my XF86Config file, as shown in Listing 10.1.

Listing 10.1. Font paths.


#

# Multiple FontPath entries are allowed (which are concatenated together),

# as well as specifying multiple comma-separated entries in one FontPath

# command (or a combination of both methods)

#

FontPath      "/usr/X11R6/lib/X11/fonts/misc/"

FontPath      "/usr/X11R6/lib/X11/fonts/Type1/"

FontPath      "/usr/X11R6/lib/X11/fonts/Speedo/"

FontPath      "/usr/X11R6/lib/X11/fonts/75dpi/"

# FontPath    "/usr/X11R6/lib/X11/fonts/100dpi/"

To see whether these lines are correct, look into each of the directories mentioned in Listing 10.1 to see whether they have files in them. If these directories are empty, you do not have the fonts installed, or they may be at another location.

Previous | Table of Contents | Next