396-398.html

来自「linux-unix130.linux.and.unix.ebooks130 l」· HTML 代码 · 共 79 行

HTML
79
字号
<HTML>

<HEAD>

<TITLE>Linux Unleashed, Third Edition:Installing and Configuring XFree86</TITLE>

<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0672313723//-->

<!--TITLE=Linux Unleashed, Third Edition//-->

<!--AUTHOR=Tim Parker//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Sams//-->

<!--CHAPTER=22//-->

<!--PAGES=396-398//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="394-396.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="398-400.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H3><A NAME="Heading8"></A><FONT COLOR="#000077">Configuring XFree86</FONT></H3>

<P>Before you can run XFree86, some configuration information should be specified. This is the part that tends to frustrate newcomers to XFree86, as it can be a convoluted process to get your configuration files exactly right and allow XFree86 to execute properly. Hopefully, a few simple step-by-step instructions will streamline the process.

</P>

<P>There is a utility called either <TT>ConfigFX86</TT> or <TT>fx86config</TT> provided with many distributions of Linux and XFree86 that simplify the entire XFree86 installation process, but only if you have one of the supported graphics cards. A list of cards supported by <TT>ConfigFX86</TT> and <TT>fx86config</TT> is usually included in the Hardware HOWTO file provided with the Linux distribution software. If you can&#146;t find the HOWTO file, it can be obtained from most FTP and BBS locations. Make sure the version of the file corresponds to the Linux version you are running. More details about <TT>ConfigFX86</TT> and <TT>fx86config</TT> are provided in the later section &#147;Using <TT>ConfigFX86</TT> and <TT>fx86config</TT>.&#148; (You can, in some cases, provide enough information for <TT>ConfigFX86</TT> and <TT>fx86config</TT> to use your unlisted video card for the installation. This is discussed in the following section.)</P>

<P>If you don&#146;t have the Hardware HOWTO file or your video card is not listed and you don&#146;t want to use a generic driver, then you must manually configure XFree86. Even if you use the <TT>ConfigXF86</TT> or <TT>fx86config</TT> script to install XFree86, you may still have to make manual modifications to tweak your installation.</P>

<P>Most of the configuration details for XFree86 version 2.X are contained in a file called <TT>Xconfig</TT>, whereas XFree86 version 3.X uses a file called <TT>XF86Config</TT> or <TT>Xconfig</TT>, depending on the version. The bare-bones instructions for setting up an <TT>Xconfig</TT> or <TT>XF86Config</TT> file are spread out over several text files included with the XFree86 distribution set. In most cases, you should check the <TT>README</TT>, <TT>VideoModes.doc</TT>, <TT>README.Config</TT>, and <TT>README.Linux</TT> files. That&#146;s not all: You also have to read the man pages for <TT>Xconfig</TT>, <TT>XF86Config XFree86</TT>, and <TT>XFree86kbd</TT>. Finally, you should check the man pages for the server version you are running, if one is provided. (It&#146;s a good idea to print out the man pages for easier reference.)</P>

<P>There are a few items of information you need to properly complete the <TT>Xconfig</TT> or <TT>FX86Config</TT> file. Before you start configuring XFree86, take a moment to note the following details:</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;The XFree86 server to be used.

<DD><B>&#149;</B>&nbsp;&nbsp;The type of mouse on your system and the port it is connected to.

<DD><B>&#149;</B>&nbsp;&nbsp;Your video card&#146;s brand name and chipset. If you&#146;re not sure of the chipset, either consult your documentation or use a utility program such as <TT>SuperProbe</TT> (Linux) or <TT>MSD</TT> (DOS).

<DD><B>&#149;</B>&nbsp;&nbsp;Your video monitor brand name and model number, as well as the size of the monitor. It also helps to know the maximum horizontal and vertical scan frequencies, usually available from the monitor&#146;s documentation.

<DD><B>&#149;</B>&nbsp;&nbsp;The type of keyboard you will be using if not the U.S. generic type. Most users have the U.S. type, although some countries have customized keyboards that require different key mappings.

</DL>

<P>If you don&#146;t know some of the information and don&#146;t have an easy way (such as a utility program) to find out, you should check the documentation that comes with XFree86. Many distributions contain a directory such as <TT>/usr/X11/lib/X11/doc</TT> (usually linked to <TT>/usr/X386/lib/X11/doc</TT> or <TT>/usr/X11R6/lib/X11/doc</TT>) that contains a number of files describing many cards and monitors supported by XFree86 and the essential configuration information (such as monitor scan rates, which are always difficult to determine because you invariably can&#146;t remember where you placed the manual).</P>

<P>When you&#146;ve noted all this configuration information, you are ready to start configuring XFree86. This all begins with the <TT>Xconfig</TT> or <TT>XF86Config</TT> file.</P>

<H4 ALIGN="LEFT"><A NAME="Heading9"></A><FONT COLOR="#000077">Where to Put Xconfig or XF86Config</FONT></H4>

<P>The <TT>Xconfig</TT> or <TT>XF86Config</TT> file can be located in several places on the Linux file system. Usually, it resides in the <TT>/usr/X386/lib/X11</TT> directory, which is also where a sample <TT>Xconfig</TT> or <TT>XF86Config</TT> file is often found. If you have easy access to the <TT>/usr/X386/lib/X11</TT> directory, it&#146;s the best place for the <TT>Xconfig</TT> or <TT>XF86Config</TT> file. (Formally, the file is referenced in <TT>/usr/X11R6/lib/X11</TT> or <TT>/etc</TT>, but because <TT>/usr/X386</TT> is linked to <TT>/usr/X11R6,</TT> the two directories point to the same place. You may run into the X11R6 directory referenced in documentation, but as long as the link to the X386 directory is in place, you can use either.)</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>Note:&nbsp;&nbsp;</B><BR>Unless you are manually installing configuration information, don&#146;t worry about whether you should be using <TT>Xconfig</TT> or <TT>XF86Config</TT>. Automated installation scripts will use the proper file. If you are performing a manual configuration, use <TT>XConfig</TT> for XFree86 version 2.X and <TT>XFConfig</TT> for XFree86 version 3.X.<HR></FONT>

</BLOCKQUOTE>

<P>If you can&#146;t use <TT>/usr/X386/lib/X11</TT> (maybe it&#146;s read-only or on a remote server) or don&#146;t want to because you need a customized version of the <TT>Xconfig</TT> file, the file can also be placed in the <TT>/etc</TT> directory or in your home directory. If the <TT>Xconfig</TT> file is in your home directory, it will apply only to your sessions and any configuration information will not be valid for other users. The <TT>/etc</TT> directory location for the XFree86 <TT>Xconfig</TT> file means the configuration information is applicable to all users.</P>

<P>You can also put the <TT>Xconfig</TT> file in the directory <TT>/usr/X386/lib/X11</TT> specific to a particular host machine. To do this, the <TT>Xconfig</TT> filename is appended with the name of the host machine. For example, the file <TT>Xconfig.merlin</TT> will apply the configuration information only to users logging in from the machine &#147;merlin.&#148;</P>

<P>The Linux convention for the <TT>Xconfig</TT> file is to place it in the <TT>/etc</TT> directory. Because this is not the usual location for XFree86 installations, a link must be created to the <TT>/etc/Xconfig</TT> file to <TT>/usr/X386/lib/X11</TT> or your home directory. This allows XFree86 to find the <TT>Xconfig</TT> file properly.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="394-396.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="398-400.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?