429-431.html

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

HTML
137
字号
<HTML>

<HEAD>

<TITLE>Special Edition Using Linux, Fourth Edition:Installing the X Windows System</TITLE>

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

 -->




<!--ISBN=0789717468//-->

<!--TITLE=Special Edition Using Linux, Fourth Edition//-->

<!--AUTHOR=Jack Tackett//-->

<!--AUTHOR=Jr.//-->

<!--AUTHOR=Steve Burnett//-->

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

<!--IMPRINT=Que//-->

<!--CHAPTER=21//-->

<!--PAGES=429-431//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="426-429.html">Previous</A></TD>

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

<TD><A HREF="431-434.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P>Next, enter <TT><B>pkgtool</B></TT> at the command prompt. This command activates the Slackware package tool program that allows you to delete old packages or install new ones. For X Windows, these packages are the <TT>x</TT> and <TT>xap</TT> packages contained with the Slackware distribution. A menu with the following options appears:</P>

<CENTER>

<TABLE WIDTH="85%"><TR>

<TH WIDTH="25%" ALIGN="LEFT">Menu Item

<TH WIDTH="75%" ALIGN="LEFT">Description

<TR>

<TD><U>C</U>urrent

<TD>Installs packages from the current directory

<TR>

<TD><U>O</U>ther

<TD>Installs packages from some other directory

<TR>

<TD><U>F</U>loppy

<TD>Installs packages from floppy disks

<TR>

<TD><U>R</U>emove

<TD>Removes packages that are now installed

<TR>

<TD><U>V</U>iew

<TD>Displays the list of files contained in a package

<TR>

<TD><U>E</U>xit

<TD>Exits package tool

</TABLE>

</CENTER>

<P>Press &lt;Shift-o&gt; or use the arrow keys to select the Other menu line and press &lt;Return&gt;. <TT>pkgtool</TT> asks for the source directory. Enter the directory you recorded earlier for the first <TT>x</TT> package directory, normally <TT>x1</TT>. Hence, you would enter <TT><B>/cdrom/slackware/x1</B></TT>.</P>

<P>After supplying the initial directory, <TT>pkgtool</TT> first seeks the X server for your graphics card. You can install only one server, so as you go from screen to screen, wait until you reach the required X server before choosing Yes.</P>

<P>Remember that you have to install the appropriate programs from each package. Although not all packages are required, if you&#146;re installing XFree86 after installing Linux, you should review the full details on the packages to install. If you have the 21MB needed for a full installation, go ahead and install each package, with the exception of the X server; install only one X server for your chipset.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>If you&#146;ve previously installed X Windows, you should first back up important configuration files and then delete the currently installed <TT>x</TT> and <TT>xap</TT> packages.<HR></FONT>

</BLOCKQUOTE>

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

<P>After installing XFree86, you must then configure it for your system. XFree86 expects to find a file named XF86Config in one of the following directories:

</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;/etc/XF86Config

<DD><B>&#149;</B>&nbsp;&nbsp;/usr/X11R6/lib/X11/XF86Config.<I>hostname</I>

<DD><B>&#149;</B>&nbsp;&nbsp;/usr/X11R6/lib/X11/XF86Config

</DL>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>Configuring XFree86 is the same under most Linux distributions, including Red Hat, Slackware 96, and Caldera. <HR></FONT>

</BLOCKQUOTE>

<P>You can find the configuration file information in the /etc/X11/etc directory. Before configuring your system, you should check out the files labeled README.Config and README.Linux. If you have the standard, supported equipment listed earlier in the section &#147;Ensuring Hardware Support for XFree86,&#148; you should check out the sample Xconfig files from the <TT>x3</TT> package. These files are stored in the /usr/X11/lib/X11/Sample-Xconfig-files directory. Check out the Xconfig.Index file to see whether your video card is listed. You can do so by using the following commands:</P>

<!-- CODE SNIP //-->

<PRE>

cd /usr/X11/lib/X11/Sample-Xconfig-files

less Xconfig.Index

</PRE>

<!-- END CODE SNIP //-->

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>CAUTION:&nbsp;&nbsp;</B><BR>You should never use an Xconfig file from someone else, or even one verbatim from this book or any other source, <TT><I>without</I></TT> looking the file over for improper values. For example, driving your monitor at unsupported frequencies may damage your equipment.<HR></FONT>

</BLOCKQUOTE>

<P>If your video card is listed, copy the corresponding Xconfig.number file from the sample directory to the /usr/X11/lib/X11 directory. You can use the following command to do this (just substitute the number from the Xconfig.Index file for <I>number</I> in the example shown here):</P>

<!-- CODE SNIP //-->

<PRE>

cp Xconfig.<I>number</I> /usr/X11/lib/X11/Xconfig

</PRE>

<!-- END CODE SNIP //-->

<P>These sample configuration files might work for standard hardware. You can test the configuration file by starting X Windows (enter <TT><B>startx</B></TT>). If the X Windows system starts and runs, congratulations! If for some reason the configuration file isn&#146;t correct, Linux reports an error. Reboot your system if it just hangs. After a start failure, you need to create a configuration file yourself when you return to the command prompt.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>If something does go wrong (and your monitor doesn&#146;t explode), pressing &lt;Ctrl-Alt-Backspace&gt; should terminate the X server and return you to a shell prompt. <HR></FONT>

</BLOCKQUOTE>

<H4 ALIGN="LEFT"><A NAME="Heading12"></A><FONT COLOR="#000077">Running the SuperProbe Program</FONT></H4>

<P>If the preceding installation procedures don&#146;t work, you can run a program to configure your system. Slackware provides a program called <TT>xf86Config</TT> to help you configure your XFree86 system, but this program requires you to answer several questions. These questions deal with the type of hardware you have on your system, and incorrect information can cause X to damage that hardware.</P>

<P>You should read several document files located in the /usr/X11R6/lib/X11/doc directory: HOWTO.Config, README.Config, and configxf.doc. You can use the following command to read the files:</P>

<!-- CODE SNIP //-->

<PRE>

less filename

</PRE>

<!-- END CODE SNIP //-->

<P>You should also gather any manufacturer&#146;s manuals for your video card and monitor.

</P>

<P>Next, run the SuperProbe utility:</P>

<!-- CODE SNIP //-->

<PRE>

<B>/usr/X11R6/bin/SuperProb</B>

</PRE>

<!-- END CODE SNIP //-->

<P>This utility scans your system, trying to identify the installed video hardware. You should write down the information reported for later use with the <TT>xf86Config</TT> program. You should also double-check the information generated by SuperProbe with your hardware&#146;s documentation. The SuperProbe program will generate information that will be placed in the various sections of the XF86Config file.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="426-429.html">Previous</A></TD>

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

<TD><A HREF="431-434.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





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

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

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