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