⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 431-434.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<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=431-434//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

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

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

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

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H4 ALIGN="LEFT"><A NAME="Heading13"></A><FONT COLOR="#000077">Understanding the XF86Config Sections</FONT></H4>

<P>The XF86Config file is a normal ASCII text file read by XFree86 and used to configure the X server to run properly under your hardware system. The file is formatted into the following sections, as shown in Table 21.4.

</P>

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

<CAPTION ALIGN=LEFT><B>Table 21.4</B> XF86Config File Sections

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="20%" ALIGN="LEFT">Section

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

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD><TT>Files</TT>

<TD>Lists directories for the font and rgb files.

<TR>

<TD><TT>ServerFlags</TT>

<TD>Specifies special flags for the X server.

<TR>

<TD><TT>Keyboard</TT>

<TD>Describes the type of keyboard.

<TR>

<TD VALIGN="TOP"><TT>Pointer</TT>

<TD>Describes your pointing device, typically your mouse.

<TR>

<TD VALIGN="TOP"><TT>Monitor</TT>

<TD>Provides detailed descriptions about your monitor. <I>This section is very important because incorrect information can severely damage the monitor</I>.

<TR>

<TD><TT>Device</TT>

<TD>Describes your video card.

<TR>

<TD VALIGN="TOP"><TT>Screen</TT>

<TD>Uses the information from the <TT>Monitor</TT> and <TT>Device</TT> sections to describe your physical screen area, including such items as number of colors and size of the screen in pixels.

<TR>

<TD COLSPAN="2"><HR>

</TABLE>

<P>Each section in the file has the following general form:

</P>

<!-- CODE SNIP //-->

<PRE>

Section &#147;<I>Name</I>&#148;

<I>data entry values</I>

<I>data entry values</I>

<I>more values as needed&#133;</I>

#this is a comment line and is ignored by XFree86

EndSection

</PRE>

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

<P>You should build such a configuration file using a text editor such as <TT>vi</TT>, following the examples given. After creating the file, you run the <TT>xf86Config</TT> program to generate an XF86Config file for comparison. Finally, you run the X server in a special mode to probe for your system&#146;s settings, which you may not be able to determine from the examples, the generated file, or the documentation. These precautions are necessary because of the real threat of damage to your system.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR>&#149; <B>See</B> &#147;Using <TT>vi</TT>,&#148; <B>p. 181</B><HR></FONT>

</BLOCKQUOTE>

<P><FONT SIZE="+1"><B>The <I>Files</I> Section

</B></FONT></P>

<P>This section lists the various fonts installed on your system in the /usr/X11R6/lib/X11/fonts directory. Each font series will have its own subdirectory here, so you can use the following command to determine which ones are loaded:

</P>

<!-- CODE SNIP //-->

<PRE>

ls /usr/X11R6/lib/X11/fonts

</PRE>

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

<P>Each directory listed should have a corresponding entry in the <TT>Files</TT> section.</P>

<P>Depending on your selections during installation, your font files should go into standard directories, and your <TT>Files</TT> section will appear as in the sample section here:</P>

<!-- CODE SNIP //-->

<PRE>

Section &#147;Files&#148;

RgbPath    &#147;/usr/X11R6/lib/X11/rgb&#148;

fontPath   &#147;/usr/X11R6/lib/X11/misc/&#148;

fontPath   &#147;/usr/X11R6/lib/X11/Type1/&#148;

fontPath   &#147;/usr/X11R6/lib/X11/speedo/&#148;

fontPath   &#147;/usr/X11R6/lib/X11/75dpi/&#148;

fontPath   &#147;/usr/X11R6/lib/X11/100dpi/&#148;

EndSection

</PRE>

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

<P><FONT SIZE="+1"><B>The <I>ServerFlags</I> Section

</B></FONT></P>

<P>You&#146;ll rarely need to edit the default <TT>ServerFlags</TT> section. This section controls the following three flags used by the X server to control its operation.</P>

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

<TH WIDTH="20%" ALIGN="LEFT">Flag

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

<TR>

<TD VALIGN="TOP"><TT>NoTrapSignals</TT>

<TD>An advance flag that causes the X server to &#147;dump core&#148;&#151;create a debugging file&#151;when an operating system software signal is received by the X server

<TR>

<TD VALIGN="TOP"><TT>DontZap</TT>

<TD>Disables the use of the &lt;Ctrl-Alt-Backspace&gt; key combination to terminate the X server

<TR>

<TD><TT>DontZoom</TT>

<TD>Disables switching between various graphics modes

</TABLE>

<P>The sample section is shown as follows with each flag commented out and thus disabled:

</P>

<!-- CODE SNIP //-->

<PRE>

Section &#147;ServerFlags&#148;

#NoTrapSignals

#DontZap

#DontZoom

EndSection

</PRE>

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

<P><FONT SIZE="+1"><B>The <I>Keyboard</I> Section

</B></FONT></P>

<P>The <TT>Keyboard</TT> section lets you specify several options for your keyboard, such as key mappings. The minimal <TT>Keyboard</TT> section looks like this:</P>

<!-- CODE SNIP //-->

<PRE>

Section &#147;Keyboard&#148;

Protocol &#147;Standard&#148;

AutoRepeat 500 5

ServerNumLock

EndSection

</PRE>

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

<P>Many more options are available, as shown in Table 21.5, but many aren&#146;t required for proper operation of your keyboard. Type <TT><B>man XF86Config</B></TT> at a shell prompt to see a full description of the various parameters for each section of the XF86Config file.</P>

<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 21.5</B> <TT>Keyboard</TT> Section Options

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="30%" ALIGN="LEFT">Option

<TH WIDTH="70%" ALIGN="LEFT">Parameter/Description

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD><TT>Protocol</TT>

<TD>Is Standard or Xqueue (Standard is the default)

<TR>

<TD VALIGN="TOP"><TT>AutoRepeat <I>delay rate</I></TT>

<TD>Sets the <TT><I>delay</I></TT> before repeating the key at the specified <TT><I>rate</I></TT>

<TR>

<TD VALIGN="TOP"><TT>ServerNumLock</TT>

<TD>Tells the X server to handle the response to the NumLock key internally

<TR>

<TD VALIGN="TOP"><TT>VTSysReq</TT>

<TD>Specifies that the X server will handle switching between virtual terminals by using the &lt;SysRq&gt; key instead of the &lt;Ctrl&gt; key

<TR>

<TD COLSPAN="2"><HR>

</TABLE>

<P>Typically, you use the &lt;Alt-F<I>x</I>&gt; method to switch between the various virtual terminals under Linux (where F<I>x</I> indicates any function key). But when in X, you must use &lt;Ctrl-Alt-F<I>x</I>&gt; to access the virtual terminal. Of course, if you&#146;re questioning the need for virtual terminals when running a GUI, consider what happens if your X session locks&#151;you can then use a virtual terminal to kill your X session.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR>&#149; <B>See</B> &#147;Logging In,&#148; <B>p. 338</B><HR></FONT>

</BLOCKQUOTE>

<P><FONT SIZE="+1"><B>The Pointer Section</B></FONT></P>

<P>The <TT>Pointer</TT> section deals with your mouse or other pointing device. XFree86 uses the information here to configure your mouse for use under X. Minimally, you should specify the protocol used by your mouse and the device type. If you have a serial mouse, the device will be the serial port used by the mouse. A sample Pointer section follows:</P>

<!-- CODE SNIP //-->

<PRE>

Section &#147;Pointer&#148;

Protocol    &#147;Microsoft&#148;

Device      &#147;/dev/mouse&#148;

EndSection

</PRE>

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

<P>The various protocols supported by Linux are

</P>

<CENTER>

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

<TD WIDTH="30%">BusMouse

<TD WIDTH="50%">Microsoft

<TR>

<TD>Logitech

<TD>Mouse Systems

<TR>

<TD>MM Series

<TD>Xqueue

<TR>

<TD>Mouseman

<TD>PS/2

</TABLE>

</CENTER>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

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

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

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

</TR>

</TABLE>

</CENTER>





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

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

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