1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY xfree86-download-http "http://gnu.kookel.org/ftp/XFree86/4.4.0/source/">
|
---|
8 | <!ENTITY xfree86-download-ftp "ftp://ftp.xfree86.org/pub/XFree86/4.4.0/source/">
|
---|
9 | <!ENTITY xfree86-size "52 MB">
|
---|
10 | <!ENTITY xfree86-buildsize "775 MB">
|
---|
11 | <!ENTITY xfree86-time "11.6 SBU">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="xfree86" xreflabel="XFree86-&xfree86-version;">
|
---|
15 | <sect1info>
|
---|
16 | <othername>$LastChangedBy$</othername>
|
---|
17 | <date>$Date$</date>
|
---|
18 | </sect1info>
|
---|
19 | <?dbhtml filename="xfree86.html" ?>
|
---|
20 | <title>XFree86-&xfree86-version;</title>
|
---|
21 |
|
---|
22 | <sect2>
|
---|
23 | <title>Introduction to <application>XFree86</application></title>
|
---|
24 |
|
---|
25 | <para><application>XFree86</application> is a freely redistributable
|
---|
26 | open-source implementation of the <application>X</application> Window System.
|
---|
27 | <application>XFree86</application> provides a client/server interface between
|
---|
28 | display hardware (the mouse, keyboard, and video displays) and the desktop
|
---|
29 | environment, while also providing both the windowing infrastructure and a
|
---|
30 | standardized application interface (<acronym>API</acronym>).</para>
|
---|
31 |
|
---|
32 | <sect3><title>Package information</title>
|
---|
33 | <itemizedlist spacing='compact'>
|
---|
34 | <listitem><para>Download (HTTP): <ulink url="&xfree86-download-http;"/></para></listitem>
|
---|
35 | <listitem><para>Download (FTP): <ulink url="&xfree86-download-ftp;"/></para></listitem>
|
---|
36 | <listitem><para>Download size: &xfree86-size;</para></listitem>
|
---|
37 | <listitem><para>Estimated disk space required: &xfree86-buildsize;</para></listitem>
|
---|
38 | <listitem><para>Estimated build time: &xfree86-time;</para></listitem></itemizedlist>
|
---|
39 | </sect3>
|
---|
40 |
|
---|
41 | <sect3><title>Additional downloads</title>
|
---|
42 | <itemizedlist spacing='compact'>
|
---|
43 | <listitem><para>Security patch: <ulink
|
---|
44 | url="http://www.x.org/pub/X11R6.8.0/patches/xorg-CAN-2004-0687-0688.patch"/>
|
---|
45 | </para></listitem>
|
---|
46 | </itemizedlist></sect3>
|
---|
47 |
|
---|
48 | <sect3><title><application>XFree86</application> dependencies</title>
|
---|
49 |
|
---|
50 | <sect4><title>Required</title>
|
---|
51 | <para><xref linkend="libpng"/></para>
|
---|
52 | </sect4>
|
---|
53 |
|
---|
54 | <sect4><title>Optional</title>
|
---|
55 | <para><xref linkend="Linux_PAM"/>; the
|
---|
56 | following packages are included in the <application>XFree86</application>
|
---|
57 | package, however they are updated more often than the
|
---|
58 | <application>XFree86</application> package and are highly recommended:
|
---|
59 | <xref linkend="expat"/>, <xref linkend="freetype2"/>,
|
---|
60 | <xref linkend="fontconfig"/>.</para>
|
---|
61 |
|
---|
62 | <note><para>If you choose not to install <application>expat</application>,
|
---|
63 | <application>freetype2</application>, and <application>fontconfig</application>,
|
---|
64 | the <filename>host.def</filename> file below will have to be modified to
|
---|
65 | instruct <application>XFree86</application> to build them.</para></note>
|
---|
66 | </sect4>
|
---|
67 |
|
---|
68 | </sect3>
|
---|
69 |
|
---|
70 | <sect3><title>Download Instructions</title>
|
---|
71 |
|
---|
72 | <para>There are several files that need to be fetched from the download
|
---|
73 | location:</para>
|
---|
74 | <itemizedlist spacing='compact'>
|
---|
75 | <listitem><para><filename>XFree86-4.4.0-src-1.tgz</filename></para></listitem>
|
---|
76 | <listitem><para><filename>XFree86-4.4.0-src-2.tgz</filename></para></listitem>
|
---|
77 | <listitem><para><filename>XFree86-4.4.0-src-3.tgz</filename></para></listitem>
|
---|
78 | <listitem><para><filename>XFree86-4.4.0-src-4.tgz</filename></para></listitem>
|
---|
79 | <listitem><para><filename>XFree86-4.4.0-src-5.tgz</filename></para></listitem>
|
---|
80 | <listitem><para><filename>XFree86-4.4.0-src-6.tgz</filename></para></listitem>
|
---|
81 | <listitem><para><filename>XFree86-4.4.0-src-7.tgz</filename></para></listitem>
|
---|
82 | </itemizedlist>
|
---|
83 |
|
---|
84 | <para>The first three packages are the <application>XFree86</application>
|
---|
85 | programs, the fourth and fifth are fonts, the sixth is normal documentation,
|
---|
86 | and the seventh is hardcopy documentation. There are also two packages
|
---|
87 | <filename>doctools-1.3.1.tgz</filename>, which contain programs to regenerate
|
---|
88 | hardcopy documentation, and <filename>utils-1.1.0.tgz</filename>, which contain
|
---|
89 | <application><acronym>GNU</acronym> <acronym>TAR</acronym></application>
|
---|
90 | and <application>zlib</application> which are already installed on an
|
---|
91 | <acronym>LFS</acronym> system.</para>
|
---|
92 |
|
---|
93 | <para>To check your downloads for integrity, download the
|
---|
94 | <filename>SUMS.md5sum</filename> file. Then:</para>
|
---|
95 |
|
---|
96 | <screen><userinput><command>md5sum -c SUMS.md5sum</command></userinput></screen>
|
---|
97 |
|
---|
98 | <para>The only errors you should see are for <filename>README</filename>,
|
---|
99 | <filename>doctools-1.3.1.tgz</filename>, and
|
---|
100 | <filename>utils-1.1.0.tgz</filename> files if you did not download them.</para>
|
---|
101 |
|
---|
102 | <!--
|
---|
103 | <para>The fixes subdirectory also has a <filename>SUMS.md5sum</filename>. Note that
|
---|
104 | this is the same filename as the sums for the main sources, so you need to rename the
|
---|
105 | file if you download it. Otherwise, you can just look at it and use it to
|
---|
106 | check against the patch files:</para>
|
---|
107 | <screen><userinput><command>md5sum 4.3.0-4.3.0.1.diff.gz</command></userinput>
|
---|
108 | <userinput><command>md5sum fontfile.diff</command></userinput></screen>
|
---|
109 |
|
---|
110 | <para>After unpacking the <filename>X430src-?.tgz</filename> files and uncompressing the
|
---|
111 | diff file, change to the <filename class="directory">xc</filename> directory and run:</para>
|
---|
112 |
|
---|
113 | <screen><userinput><command>patch -Np1 -i ../4.3.0-4.3.0.1.diff</command></userinput>
|
---|
114 | <userinput><command>pushd lib/font/fontfile/</command></userinput>
|
---|
115 | <userinput><command>patch -N -i ../../../../fontfile.diff</command></userinput>
|
---|
116 | <userinput><command>popd</command></userinput></screen>
|
---|
117 | -->
|
---|
118 |
|
---|
119 | </sect3>
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 | <sect2>
|
---|
123 | <title>Installation of <application>XFree86</application></title>
|
---|
124 |
|
---|
125 | <sect3>
|
---|
126 | <title>Kernel Compilation Settings</title>
|
---|
127 |
|
---|
128 | <para>If you have an Intel P6 (Pentium Pro, Pentium II and later), it is
|
---|
129 | recommended that you compile <acronym>MTRR</acronym> (Memory Type Range
|
---|
130 | Registers) support into the kernel. The kernel can map Cyrix and AMD
|
---|
131 | <acronym>CPU</acronym>s to the <acronym>MTRR</acronym> interface, so selecting
|
---|
132 | this option is useful for those processors also. This option is found in the
|
---|
133 | "Processor type and features" menu. It can increase performance of image write
|
---|
134 | operations 2.5 times or more on <acronym>PCI</acronym> or
|
---|
135 | <acronym>AGP</acronym> video cards.</para>
|
---|
136 |
|
---|
137 | <para>In the "Character Devices" section, enable <acronym>AGP</acronym> Support
|
---|
138 | and select the chipset support on your motherboard. If you do not know the
|
---|
139 | chipset, you may select all the chip types at the expense of extra kernel size.
|
---|
140 | You can usually determine your motherboard's chipset by running the command
|
---|
141 | <command>lspci</command>, a program from the <xref linkend="pciutils"/> package.
|
---|
142 | </para>
|
---|
143 |
|
---|
144 | <para>In the "Character Devices" section, <emphasis>disable</emphasis> Direct
|
---|
145 | Rendering Manager unless you have a Direct Rendering Infrastructure
|
---|
146 | (<acronym>DRI</acronym>) supported video card. A complete list of
|
---|
147 | <acronym>DRI</acronym> supported video cards can be found at
|
---|
148 | <ulink url="http://dri.sourceforge.net" /> in the Status section. Currently,
|
---|
149 | supported cards include those from 3dfx (Voodoo, Banshee), 3Dlabs,
|
---|
150 | ATI (Rage Pro, Rage 128, Radeon 7X00, Radeon 2), Intel (i810, i815), and
|
---|
151 | Matrox (G200, G400, G450).</para>
|
---|
152 |
|
---|
153 | <para>Additionally NVidia provides their own closed source binary drivers,
|
---|
154 | which do not make use of <acronym>DRI</acronym>. If you intend to use these
|
---|
155 | drivers, do not enable <acronym>DRI</acronym>.</para>
|
---|
156 |
|
---|
157 | <para>If you made any changes to the kernel configuration, recompile and
|
---|
158 | install the new kernel.</para>
|
---|
159 |
|
---|
160 | <note><para>If you build <application>XFree86</application> in a
|
---|
161 | <command>chroot</command> environment, make sure the kernel version of the base
|
---|
162 | system and the target system are the same.</para>
|
---|
163 | </note>
|
---|
164 |
|
---|
165 | </sect3>
|
---|
166 |
|
---|
167 | <sect3><title>Creating <filename>host.def</filename></title>
|
---|
168 |
|
---|
169 | <para>Although <application>XFree86</application> will compile without a
|
---|
170 | <filename>host.def</filename> file, the following file is recommended for
|
---|
171 | customizing the installation. Start from the
|
---|
172 | <filename class="directory">xc</filename> directory.</para>
|
---|
173 |
|
---|
174 | <note><para>The <filename>host.def</filename> file is a
|
---|
175 | <application>C</application> file, not the usual configuration file. If you
|
---|
176 | make any changes, be sure the comment characters (<userinput>/*</userinput>
|
---|
177 | and <userinput>*/</userinput>) are balanced. Most of the entries in the file
|
---|
178 | below are commented out with the default settings shown.</para></note>
|
---|
179 |
|
---|
180 | <screen><userinput><command>cat > config/cf/host.def << "EOF"</command>
|
---|
181 | /* Begin XFree86 host.def file */
|
---|
182 |
|
---|
183 | /* System Related Information. If you read and configure only one
|
---|
184 | * section then it should be this one. The Intel architecture defaults are
|
---|
185 | * set for a i686 and higher. Axp is for the Alpha architecture and Ppc is
|
---|
186 | * for the Power PC. Note that there have been reports that the Ppc
|
---|
187 | * optimization line causes segmentation faults during build. If that
|
---|
188 | * happens, try building without the DefaultGcc2PpcOpt line. **************/
|
---|
189 |
|
---|
190 | /* #define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686 */
|
---|
191 | /* #define DefaultGcc2AxpOpt -O2 -mcpu=ev6 */
|
---|
192 | /* #define DefaultGcc2PpcOpt -O2 -mcpu=750 */
|
---|
193 |
|
---|
194 | /* The following definitions are normally set properly by XFree86's scripts.
|
---|
195 | * You can uncomment them if you want to make sure. ************************/
|
---|
196 |
|
---|
197 | /* #define HasMTRRSupport YES */ /* Enabled in kernel see kernel docs*/
|
---|
198 | /* #define HasMMXSupport NO */ /* Any i586 or above */
|
---|
199 | /* #define HasKatmaiSupport NO */ /* PIII SSE instructions */
|
---|
200 | /* #define Has3DNowSupport NO */ /* AMD instructions */
|
---|
201 |
|
---|
202 |
|
---|
203 | /* This setting reduces compile time a little by omitting rarely used input
|
---|
204 | * devices. You can find the complete list in config/cf/xfree86.cf ********/
|
---|
205 |
|
---|
206 | #define XInputDrivers mouse void
|
---|
207 |
|
---|
208 | /* VIDEO DRIVERS ***********************************************************/
|
---|
209 |
|
---|
210 | /* If you are sure you only want the drivers for one or a few video cards,
|
---|
211 | * you can delete the drivers you do not want. *****************************/
|
---|
212 |
|
---|
213 |
|
---|
214 | #define XF86CardDrivers mga glint nv tga s3 s3virge sis rendition \
|
---|
215 | neomagic i740 tdfx savage \
|
---|
216 | cirrus vmware tseng trident chips apm \
|
---|
217 | GlideDriver fbdev i128 nsc \
|
---|
218 | ati i810 AgpGartDrivers DevelDrivers ark \
|
---|
219 | cyrix siliconmotion \
|
---|
220 | vesa vga \
|
---|
221 | dummy XF86OSCardDrivers XF86ExtraCardDrivers
|
---|
222 |
|
---|
223 |
|
---|
224 | /* USER AND SYSTEM DEFAULT PATHS *******************************************/
|
---|
225 |
|
---|
226 | /* These settings set the PATH variables used by xdm. See README for *******/
|
---|
227 | /* detailed description and modify the following as per your need. *********/
|
---|
228 |
|
---|
229 | /* #define DefaultSystemPath /usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin */
|
---|
230 | /* #define DefaultUserPath /usr/bin:/bin:/usr/X11R6/bin */
|
---|
231 |
|
---|
232 | /* FONT SERVER AND LIBRARY SETTINGS ****************************************/
|
---|
233 |
|
---|
234 | /* These settings are the defaults ***************************************/
|
---|
235 |
|
---|
236 | /* #define BuildFontServer YES */ /* For Ghostscript Print Server*/
|
---|
237 | /* #define SharedLibFont YES */
|
---|
238 | /* #define CompressAllFonts YES */
|
---|
239 | /* #define GzipFontCompression YES */
|
---|
240 |
|
---|
241 | /* These settings ensure we use our libraries ******************************/
|
---|
242 | #define HasFreetype2 YES
|
---|
243 | #define HasFontconfig YES
|
---|
244 | #define HasExpat YES
|
---|
245 | #define HasLibpng YES
|
---|
246 | #define HasZlib YES
|
---|
247 |
|
---|
248 | /* The font path can be redefined in the XF86Config file *******************/
|
---|
249 |
|
---|
250 | /*
|
---|
251 | #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
|
---|
252 | $(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
|
---|
253 | $(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo
|
---|
254 | */
|
---|
255 |
|
---|
256 |
|
---|
257 | /* INTERNATIONAL FONTS. Change to YES if you need any of them. These are
|
---|
258 | * the defaults. ***********************************************************/
|
---|
259 |
|
---|
260 | /* #define BuildCyrillicFonts NO */
|
---|
261 | /* #define BuildArabicFonts NO */
|
---|
262 | /* #define BuildISO8859_6Fonts NO */
|
---|
263 | /* #define BuildGreekFonts NO */
|
---|
264 | /* #define BuildISO8859_7Fonts NO */
|
---|
265 | /* #define BuildHebrewFonts NO */
|
---|
266 | /* #define BuildISO8859_8Fonts NO */
|
---|
267 | /* #define BuildKOI8_RFonts NO */
|
---|
268 | /* #define BuildJapaneseFonts NO */
|
---|
269 | /* #define BuildJISX0201Fonts NO */
|
---|
270 | /* #define BuildKoreanFonts NO */
|
---|
271 | /* #define BuildChineseFonts NO */
|
---|
272 |
|
---|
273 | /* DOCUMENTATION SETTINGS **************************************************/
|
---|
274 |
|
---|
275 | /* These setting are the defaults. *****************************************/
|
---|
276 |
|
---|
277 | /* #define BuildLinuxDocHtml NO */ /* X Docs in Html format */
|
---|
278 | /* #define BuildLinuxDocPS NO */ /* PostScript format */
|
---|
279 | /* #define BuildAllSpecsDocs NO */ /* Various docs */
|
---|
280 | /* #define BuildHtmlManPages NO */
|
---|
281 |
|
---|
282 | /* GENERAL SETTINGS: You generally want to leave these alone when
|
---|
283 | * building X on an LFS system *********************************************/
|
---|
284 |
|
---|
285 | #define GccWarningOptions -pipe /* Speed up compiles */
|
---|
286 | #define TermcapLibrary -lncurses
|
---|
287 | #define XprtServer YES /* Needed by realplayer */
|
---|
288 | #define XnestServer YES
|
---|
289 | #define XAppLoadDir EtcX11Directory/app-defaults
|
---|
290 | #define VarLibDir /var/lib
|
---|
291 | #define XFree86Devel NO
|
---|
292 | #define FSUseSyslog YES
|
---|
293 | #define ThreadedX YES
|
---|
294 | #define HasPam NO
|
---|
295 | #define SystemManDirectory /usr/share/man /* Instead of /usr/man */
|
---|
296 | #define HasLibCrypt YES
|
---|
297 | #define InstallXinitConfig YES
|
---|
298 | #define InstallXdmConfig YES
|
---|
299 | #define ForceNormalLib YES
|
---|
300 | #define BuildSpecsDocs NO
|
---|
301 |
|
---|
302 | /* End XFree86 host.def file */
|
---|
303 | <command>EOF</command></userinput></screen>
|
---|
304 |
|
---|
305 | <para>Edit the file for your hardware and desires.</para>
|
---|
306 |
|
---|
307 | </sect3>
|
---|
308 |
|
---|
309 | <sect3>
|
---|
310 | <title>Build Commands</title>
|
---|
311 |
|
---|
312 | <para>Some vulnerabilities were reported in <filename
|
---|
313 | class="libraryfile">libXpm</filename>. A remote user may be able to
|
---|
314 | execute arbitrary code on applications that use <filename
|
---|
315 | class="libraryfile">libXpm</filename>. The <application>Xorg</application>
|
---|
316 | team released a patch for their version 6.8.0 but it works for
|
---|
317 | <application>XFree86</application> as well. Apply the patch:</para>
|
---|
318 |
|
---|
319 | <screen><userinput><command>patch -Np1 -i ../xorg-CAN-2004-0687-0688.patch</command></userinput></screen>
|
---|
320 |
|
---|
321 | <para>Install <application>XFree86</application> by running the following
|
---|
322 | commands:</para>
|
---|
323 |
|
---|
324 | <screen><userinput><command>sed -i -e "s@#include <linux/config.h>@/* & */@" \
|
---|
325 | `grep -lr linux/config.h *` &&
|
---|
326 | ( make WORLDOPTS="" World 2>&1 | tee xfree-compile.log && exit $PIPESTATUS ) &&
|
---|
327 | make install &&
|
---|
328 | make install.man &&
|
---|
329 | ln -sf ../X11R6/bin /usr/bin/X11 &&
|
---|
330 | ln -sf ../X11R6/lib/X11 /usr/lib/X11 &&
|
---|
331 | ln -sf ../X11R6/include/X11 /usr/include/X11</command></userinput></screen>
|
---|
332 |
|
---|
333 | </sect3>
|
---|
334 |
|
---|
335 | </sect2>
|
---|
336 |
|
---|
337 | <sect2>
|
---|
338 | <title>Command explanations</title>
|
---|
339 |
|
---|
340 | <para><command>sed -i -e "s@#include <linux/config.h>@...</command>: The
|
---|
341 | <application>Linux-Libc-Headers</application> package installed in
|
---|
342 | <acronym>LFS</acronym> installs a
|
---|
343 | <filename>/usr/include/linux/config.h</filename> file which is not compatible
|
---|
344 | with userspace applications. The recommended fix for applications including
|
---|
345 | this file is to remove it (see <ulink
|
---|
346 | url="http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/FAQ">
|
---|
347 | linux-libc-headers FAQ</ulink>). The <command>sed</command> uses
|
---|
348 | <command>grep -lr</command> to replace all occurences. If you desire, just
|
---|
349 | remove (comment) the line in the appropriate video driver file if you
|
---|
350 | customized <filename>host.def</filename>.
|
---|
351 | </para>
|
---|
352 |
|
---|
353 | <para><command>( make WORLDOPTS="" World 2>&1 | tee xfree-compile.log
|
---|
354 | && exit $PIPESTATUS )</command>:
|
---|
355 | This command runs multiple <filename>Makefile</filename>s to completely rebuild
|
---|
356 | the system. <envar>WORLDOPTS</envar>="" disables the default setting to
|
---|
357 | continue after encountering an error. <parameter>2>&1</parameter>
|
---|
358 | redirects error messages to the same location as standard output. The
|
---|
359 | <command>tee</command> command allows viewing of the output while logging the
|
---|
360 | results to a file. The parentheses around the command runs the entire comand in
|
---|
361 | a subshell and finally the <command>exit $PIPESTATUS</command> ensures the
|
---|
362 | result of the <command>make</command> is returned as the result and not the
|
---|
363 | result of the <command>tee</command> command.</para>
|
---|
364 |
|
---|
365 | <note><para>When rebuilding <application>XFree86</application>, a separate
|
---|
366 | command that may be used if only minor changes are made to the sources is
|
---|
367 | <command>make Everything</command>. This does not automatically remove
|
---|
368 | generated files and only rebuilds those files or programs that are out
|
---|
369 | of date.</para></note>
|
---|
370 |
|
---|
371 | <para><screen><command>ln -sf ../X11R6/bin /usr/bin/X11
|
---|
372 | ln -sf ../X11R6/lib/X11 /usr/lib/X11
|
---|
373 | ln -sf ../X11R6/include/X11 /usr/include/X11</command></screen>
|
---|
374 | These commands are present to enable other (broken) packages to build
|
---|
375 | against <application>XFree86</application>, even though the Filesystem
|
---|
376 | Hierarchy Standard says: "In general, software must not be installed or
|
---|
377 | managed via the above symbolic links. They are intended for utilization by
|
---|
378 | users only."</para>
|
---|
379 |
|
---|
380 | </sect2>
|
---|
381 |
|
---|
382 | <sect2>
|
---|
383 | <title>Configuring <application>XFree86</application></title>
|
---|
384 |
|
---|
385 | <para>Edit <filename>/etc/ld.so.conf</filename> and add
|
---|
386 | <filename class="directory">/usr/X11R6/lib</filename>.
|
---|
387 | Run: </para>
|
---|
388 | <screen><userinput><command>ldconfig</command></userinput></screen>
|
---|
389 |
|
---|
390 | <para>Ensure <filename class="directory">/usr/X11R6/bin</filename>
|
---|
391 | and <filename class="directory">/usr/X11R6/lib/pkgconfig</filename>
|
---|
392 | are added to your <envar>PATH</envar> and <envar>PKG_CONFIG_PATH</envar>
|
---|
393 | environment variables, respectively. Instructions for doing this are
|
---|
394 | described in the section "<xref linkend='postlfs-config-profile'/>."</para>
|
---|
395 |
|
---|
396 | <para>Create the <filename>XF86Config</filename> file with:
|
---|
397 | <screen><userinput><command>cd ~
|
---|
398 | XFree86 -configure</command></userinput></screen>
|
---|
399 | The screen will go black and you may hear some clicking of the monitor. This
|
---|
400 | command will create a file, <filename>XF86Config.new</filename> in your home
|
---|
401 | directory.</para>
|
---|
402 |
|
---|
403 | <para>Edit <filename>XF86Config.new</filename> to suit your system. The
|
---|
404 | details of the file are located in the man page
|
---|
405 | <command>man XF86Config</command>. Some things you may want to do are:</para>
|
---|
406 |
|
---|
407 | <itemizedlist>
|
---|
408 |
|
---|
409 | <listitem><para>Section "Files". Change the order of the font paths searched.
|
---|
410 | You may want to put 100dpi fonts ahead of 75dpi fonts if your system normally
|
---|
411 | comes up closer to 100 dots per inch. You may want to remove some font
|
---|
412 | directories completely.</para></listitem>
|
---|
413 |
|
---|
414 | <listitem><para>Section "Module". If you are going to install NVidia
|
---|
415 | drivers, remove the "dri" line.</para></listitem>
|
---|
416 |
|
---|
417 | <listitem><para>Sections "InputDevice". Specify the
|
---|
418 | <parameter>Device</parameter> parameter to "/dev/input/mice" and
|
---|
419 | <parameter>Protocol</parameter> to "auto" to set up your mouse. You may
|
---|
420 | also want to change the keyboard autorepeat rate by adding
|
---|
421 | <parameter>Option "Autorepeat" "250 30"</parameter>.</para></listitem>
|
---|
422 |
|
---|
423 | <listitem><para>Section "Monitor". Specify the
|
---|
424 | <parameter>VertRefresh</parameter> and <parameter>HorizSync</parameter> values
|
---|
425 | if the system does not automatically detect the monitor and its values.</para>
|
---|
426 | </listitem>
|
---|
427 |
|
---|
428 | <listitem><para>Section "Device". You may want to set some of the options
|
---|
429 | available for your selected video driver. A description of the driver
|
---|
430 | parameters is in the man page for your driver.</para></listitem>
|
---|
431 |
|
---|
432 | <listitem><para>Section "Screen". Add a DefaultDepth statement such
|
---|
433 | as: <parameter>DefaultDepth 16</parameter>. In the SubSection for your
|
---|
434 | default depth, add a modes line such as:
|
---|
435 | <parameter> Modes "1280x1024" "1024x768"</parameter>. The first mode listed
|
---|
436 | will normally be the starting resolution.</para></listitem>
|
---|
437 |
|
---|
438 | </itemizedlist>
|
---|
439 |
|
---|
440 | <para>Test the system with:
|
---|
441 | <screen><userinput><command>XFree86 -xf86config ~/XF86Config.new</command></userinput></screen>
|
---|
442 | You will only get a gray background with an X-shaped mouse cursor, but it
|
---|
443 | confirms the system is working. Exit with Control-Alt-Backspace. If the
|
---|
444 | system does not work, examine <filename>/var/log/XFree86.0.log</filename> to
|
---|
445 | see what went wrong.</para>
|
---|
446 |
|
---|
447 | <para>Move the configuration file to its final location:</para>
|
---|
448 | <screen><userinput><command>mv ~/XF86Config.new /etc/X11/XF86Config</command></userinput></screen>
|
---|
449 |
|
---|
450 | <para>Create <filename>.xinitrc</filename>:
|
---|
451 | <screen><userinput><command>cat > ~/.xinitrc << "EOF"</command>
|
---|
452 | # Begin .xinitrc file
|
---|
453 | xterm -g 80x40+0+0 &
|
---|
454 | xclock -g 100x100-0+0 &
|
---|
455 | twm
|
---|
456 | <command>EOF</command></userinput></screen>
|
---|
457 | This provides an initial screen with an xterm and a clock that is managed by a
|
---|
458 | simple window manager, Tab Window Manager. For details of
|
---|
459 | <command>twm</command>, see the man page.</para>
|
---|
460 |
|
---|
461 | <note>
|
---|
462 |
|
---|
463 | <para>When needed, <application>XFree86</application> creates the directory
|
---|
464 | <filename>/tmp/.ICE-unix</filename> if it does not exist. If this directory is
|
---|
465 | not owned by root, <application>XFree86</application> delays startup by a few
|
---|
466 | seconds and also appends a warning to the logfile. This also affects startup of
|
---|
467 | other applications. To improve performance, it is advisable to manually create
|
---|
468 | the directory before <application>XFree86</application> uses it. Add the file
|
---|
469 | creation to <filename>/etc/sysconfig/createfiles</filename> that is sourced by
|
---|
470 | the <filename>/etc/rc.d/init.d/cleanfs</filename> startup script.</para>
|
---|
471 |
|
---|
472 | <screen><userinput><command>cat >> /etc/sysconfig/createfiles << "EOF"</command>
|
---|
473 | /tmp/.ICE-unix dir 1777 root root
|
---|
474 | <command>EOF</command></userinput></screen>
|
---|
475 |
|
---|
476 | </note>
|
---|
477 |
|
---|
478 | <para>Start <application>X</application> with:
|
---|
479 | <screen><userinput><command>startx</command></userinput></screen>
|
---|
480 | to get a basic functional <application>X</application> Window System.</para>
|
---|
481 |
|
---|
482 | <para>At this point, you should check out <xref linkend='x-setup'/>.</para>
|
---|
483 |
|
---|
484 | </sect2>
|
---|
485 |
|
---|
486 | <sect2>
|
---|
487 | <title>Contents</title>
|
---|
488 |
|
---|
489 | <para>The <application>XFree86</application> package contains the
|
---|
490 | <application>X</application> Window System for Linux (and other operating
|
---|
491 | systems). It includes the <application>X</application> server, fonts,
|
---|
492 | <command>xterm</command>, a simple window manager (<command>twm</command>),
|
---|
493 | various utilities, video output drivers, and various input drivers including
|
---|
494 | the mouse and keyboard.</para>
|
---|
495 |
|
---|
496 | <para><application>XFree86</application> also contains libraries and header
|
---|
497 | files for development of the <application>X</application> Window System
|
---|
498 | programs.</para>
|
---|
499 |
|
---|
500 | </sect2>
|
---|
501 |
|
---|
502 | <sect2><title>Description</title>
|
---|
503 |
|
---|
504 | <note><para>The following list of programs is not comprehensive. The
|
---|
505 | full list is in <filename class="directory">/usr/X11R6/bin</filename>. For
|
---|
506 | additional information about these programs, see the respective man
|
---|
507 | page.</para></note>
|
---|
508 |
|
---|
509 | <sect3>
|
---|
510 | <title>XFree86</title>
|
---|
511 | <para><application>XFree86</application> is the X11R6 implementation of
|
---|
512 | the <application>X</application> Window System server.
|
---|
513 | </para></sect3>
|
---|
514 |
|
---|
515 | <sect3><title>xf86config</title>
|
---|
516 | <para><command>xf86config</command> is an interactive program for
|
---|
517 | generating an <filename>XF86Config</filename> file for use with
|
---|
518 | <application>XFree86</application> <application>X</application>
|
---|
519 | servers.</para></sect3>
|
---|
520 |
|
---|
521 | <sect3><title>xf86cfg</title>
|
---|
522 | <para><command>xf86cfg</command> is a tool to configure
|
---|
523 | <application>XFree86</application> that can be used to either write the
|
---|
524 | initial configuration file or make customizations to the current
|
---|
525 | configuration.</para></sect3>
|
---|
526 |
|
---|
527 | <sect3><title>startx</title>
|
---|
528 | <para><command>startx</command> is a script to initialize the
|
---|
529 | <application>X</application> session. It runs <command>xinit</command>.</para>
|
---|
530 | </sect3>
|
---|
531 |
|
---|
532 | <sect3><title>xinit</title>
|
---|
533 | <para><command>xinit</command> is used to start the
|
---|
534 | <application>X</application> Window System server.</para></sect3>
|
---|
535 |
|
---|
536 | <sect3><title>twm</title>
|
---|
537 | <para><command>twm</command> (Tab Window Manager) is a window manager included
|
---|
538 | with the <application>X</application> Window System.</para></sect3>
|
---|
539 |
|
---|
540 | <sect3><title>xterm</title>
|
---|
541 | <para><command>xterm</command> is a terminal emulator for
|
---|
542 | <application>X</application>.</para></sect3>
|
---|
543 |
|
---|
544 | <sect3><title>xwininfo</title>
|
---|
545 | <para><command>xwininfo</command> is a window information utility for
|
---|
546 | <application>X</application>.</para></sect3>
|
---|
547 |
|
---|
548 | <sect3><title>x11perf</title>
|
---|
549 | <para><command>x11perf</command> is an <application>X</application>11 server
|
---|
550 | performance test program.</para></sect3>
|
---|
551 |
|
---|
552 | <sect3><title>xlsfonts</title>
|
---|
553 | <para><command>xlsfonts</command> is a program to list fonts available
|
---|
554 | to the <application>X</application> server.</para></sect3>
|
---|
555 |
|
---|
556 | <sect3><title>xvidtune</title>
|
---|
557 | <para><command>xvidtune</command> is a video mode tuner for
|
---|
558 | <application>XFree86</application>.</para></sect3>
|
---|
559 |
|
---|
560 | <sect3><title>xload</title>
|
---|
561 | <para><command>xload</command> is a system load average display for
|
---|
562 | <application>X</application>.</para></sect3>
|
---|
563 |
|
---|
564 | <sect3><title>xcalc</title>
|
---|
565 | <para><command>xcalc</command> is a scientific calculator for
|
---|
566 | <application>X</application>.</para></sect3>
|
---|
567 |
|
---|
568 | <sect3><title>xclock and oclock</title>
|
---|
569 | <para>Clock programs for <application>X</application>.</para></sect3>
|
---|
570 |
|
---|
571 | <sect3><title>xmodmap</title>
|
---|
572 | <para><command>xmodmap</command> is a utility for modifying keymaps and pointer
|
---|
573 | button mappings in <application>X</application>.</para></sect3>
|
---|
574 |
|
---|
575 | </sect2>
|
---|
576 |
|
---|
577 | </sect1>
|
---|