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/&xfree86-version;/source/">
|
---|
8 | <!ENTITY xfree86-download-ftp "ftp://ftp.xfree86.org/pub/XFree86/&xfree86-version;/source/">
|
---|
9 | <!ENTITY xfree86-md5sum "ftp://ftp.xfree86.org/pub/XFree86/&xfree86-version;/source/SUMS.md5sum">
|
---|
10 | <!ENTITY xfree86-size "51 MB">
|
---|
11 | <!ENTITY xfree86-buildsize "740 MB">
|
---|
12 | <!ENTITY xfree86-time "12 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="xfree86" xreflabel="XFree86-&xfree86-version;">
|
---|
16 | <?dbhtml filename="xfree86.html" ?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | <keywordset>
|
---|
22 | <keyword role="package">XFree86-&xfree86-version;-src-1.tar</keyword>
|
---|
23 | <keyword role="ftpdir">XFree86</keyword>
|
---|
24 | </keywordset>
|
---|
25 | </sect1info>
|
---|
26 |
|
---|
27 | <title>XFree86-&xfree86-version;</title>
|
---|
28 |
|
---|
29 | <indexterm zone="xfree86">
|
---|
30 | <primary sortas="a-xfree86">XFree86</primary>
|
---|
31 | </indexterm>
|
---|
32 |
|
---|
33 | <sect2 role="package">
|
---|
34 | <title>Introduction to XFree86</title>
|
---|
35 |
|
---|
36 | <para><application>XFree86</application> is a freely redistributable
|
---|
37 | open-source implementation of the <application>X Window
|
---|
38 | System</application>. <application>XFree86</application> provides a
|
---|
39 | client/server interface between display hardware (the mouse, keyboard,
|
---|
40 | and video displays) and the desktop environment, while also providing
|
---|
41 | both the windowing infrastructure and a standardized application
|
---|
42 | interface (API).</para>
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 | <itemizedlist spacing="compact">
|
---|
46 | <listitem>
|
---|
47 | <para>Download (HTTP): <ulink url="&xfree86-download-http;"/></para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download (FTP): <ulink url="&xfree86-download-ftp;"/></para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Download MD5 sum: &xfree86-md5sum;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Download size: &xfree86-size;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Estimated disk space required: &xfree86-buildsize;</para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>Estimated build time: &xfree86-time;</para>
|
---|
63 | </listitem>
|
---|
64 | </itemizedlist>
|
---|
65 |
|
---|
66 | <bridgehead renderas="sect3">XFree86 Dependencies</bridgehead>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
69 | <para role="required"><xref linkend="libpng"/></para>
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
72 | <para role="optional"><xref linkend="linux-pam"/>; the
|
---|
73 | following packages are included in the <application>XFree86</application>
|
---|
74 | package, however they are updated more often than the
|
---|
75 | <application>XFree86</application> package and are highly recommended:
|
---|
76 | <xref linkend="expat"/>, <xref linkend="freetype2"/>,
|
---|
77 | <xref linkend="fontconfig"/>.</para>
|
---|
78 |
|
---|
79 | <note>
|
---|
80 | <para>If you choose not to install <application>expat</application>,
|
---|
81 | <application>FreeType2</application>, and
|
---|
82 | <application>Fontconfig</application>, the
|
---|
83 | <filename>host.def</filename> file below will have to be modified to
|
---|
84 | instruct <application>XFree86</application> to build them.</para>
|
---|
85 | </note>
|
---|
86 |
|
---|
87 | <para condition="html" role="usernotes">User Notes:
|
---|
88 | <ulink url='&blfs-wiki;/XFree86-&xfree86-version;'/></para>
|
---|
89 |
|
---|
90 | <bridgehead renderas="sect3">Download Instructions</bridgehead>
|
---|
91 |
|
---|
92 | <para>There are several files that need to be fetched from the download
|
---|
93 | location:</para>
|
---|
94 |
|
---|
95 | <itemizedlist spacing='compact'>
|
---|
96 | <listitem>
|
---|
97 | <para><filename>XFree86-&xfree86-version;-src-1.tgz</filename></para>
|
---|
98 | </listitem>
|
---|
99 | <listitem>
|
---|
100 | <para><filename>XFree86-&xfree86-version;-src-2.tgz</filename></para>
|
---|
101 | </listitem>
|
---|
102 | <listitem>
|
---|
103 | <para><filename>XFree86-&xfree86-version;-src-3.tgz</filename></para>
|
---|
104 | </listitem>
|
---|
105 | <listitem>
|
---|
106 | <para><filename>XFree86-&xfree86-version;-src-4.tgz</filename></para>
|
---|
107 | </listitem>
|
---|
108 | <listitem>
|
---|
109 | <para><filename>XFree86-&xfree86-version;-src-5.tgz</filename></para>
|
---|
110 | </listitem>
|
---|
111 | <listitem>
|
---|
112 | <para><filename>XFree86-&xfree86-version;-src-6.tgz</filename></para>
|
---|
113 | </listitem>
|
---|
114 | <listitem>
|
---|
115 | <para><filename>XFree86-&xfree86-version;-src-7.tgz</filename></para>
|
---|
116 | </listitem>
|
---|
117 | </itemizedlist>
|
---|
118 |
|
---|
119 | <para>The first three packages are the <application>XFree86</application>
|
---|
120 | programs, the fourth and fifth are fonts, the sixth is normal documentation,
|
---|
121 | and the seventh is hardcopy documentation.</para>
|
---|
122 |
|
---|
123 | <para>To check your downloads for integrity, download the
|
---|
124 | <filename>SUMS.md5sum</filename> file. Then:</para>
|
---|
125 |
|
---|
126 | <screen><userinput>md5sum -c SUMS.md5sum</userinput></screen>
|
---|
127 |
|
---|
128 | <para>The only errors you should see are for <filename>README</filename>,
|
---|
129 | <filename>doctools-1.3.x.tgz</filename>, <filename>utils-1.1.x.tgz</filename>
|
---|
130 | and <filename>XFree86-xtest-4.0.x.tar.bz2</filename> files if you did not
|
---|
131 | download them.</para>
|
---|
132 |
|
---|
133 | </sect2>
|
---|
134 |
|
---|
135 | <sect2 role="kernel" id='xfree86-kernel'>
|
---|
136 | <title>Kernel Configuration</title>
|
---|
137 |
|
---|
138 | <para>If you have an Intel P6 (Pentium Pro, Pentium II and later), it is
|
---|
139 | recommended that you compile MTRR (Memory Type Range Registers) support
|
---|
140 | into the kernel. The kernel can map Cyrix and AMD CPUs to the MTRR
|
---|
141 | interface, so selecting this option is useful for those processors also.
|
---|
142 | This option is found in the "Processor type and features" menu. It can
|
---|
143 | increase performance of image write operations 2.5 times or more on PCI
|
---|
144 | or AGP video cards.</para>
|
---|
145 |
|
---|
146 | <indexterm zone="xfree86 xfree86-kernel">
|
---|
147 | <primary sortas="d-xfree86">XFree86</primary>
|
---|
148 | </indexterm>
|
---|
149 |
|
---|
150 | <para>In the "Character Devices" section, enable AGP Support and select
|
---|
151 | the chipset support on your motherboard. If you do not know the chipset,
|
---|
152 | you may select all the chip types at the expense of extra kernel size.
|
---|
153 | You can usually determine your motherboard's chipset by running the
|
---|
154 | command <command>lspci</command>, a program from the
|
---|
155 | <xref linkend="pciutils"/> package.</para>
|
---|
156 |
|
---|
157 | <para>In the "Character Devices" section, <emphasis>disable</emphasis>
|
---|
158 | Direct Rendering Manager unless you have a Direct Rendering Infrastructure
|
---|
159 | (DRI) supported video card. A complete list of DRI supported video cards
|
---|
160 | can be found at <ulink url="http://dri.sourceforge.net" /> in the Status
|
---|
161 | section. Currently, supported cards include those from 3dfx (Voodoo,
|
---|
162 | Banshee), 3Dlabs, ATI (Rage Pro, Rage 128, Radeon 7X00, Radeon 2), Intel
|
---|
163 | (i810, i815), and Matrox (G200, G400, G450).</para>
|
---|
164 |
|
---|
165 | <para>Additionally NVidia provides their own closed source binary drivers,
|
---|
166 | which do not make use of DRI. If you intend to use these drivers, do not
|
---|
167 | enable DRI.</para>
|
---|
168 |
|
---|
169 | <para>If you made any changes to the kernel configuration, recompile and
|
---|
170 | install the new kernel.</para>
|
---|
171 |
|
---|
172 | </sect2>
|
---|
173 |
|
---|
174 | <sect2 role="installation">
|
---|
175 | <title>Installation of XFree86</title>
|
---|
176 |
|
---|
177 | <sect3>
|
---|
178 | <title>Glibc build fix</title>
|
---|
179 |
|
---|
180 | <!-- To be removed if/when proposed glibc patch is added to LFS SVN
|
---|
181 | Leave in in for a couple of weeks with 'you may need' and a testcase
|
---|
182 | around it to save the support list silly questions. Should remove in
|
---|
183 | a couple of weeks -->
|
---|
184 | <para>Xfree86 may have a problem with <filename>sys/kd.h</filename>
|
---|
185 | installed with some recent versions of <application>Glibc</application>.
|
---|
186 | This has recently been fixed in LFS SVN. Execute the
|
---|
187 | following commands to work around a broken <filename>kd.h</filename>
|
---|
188 | file. The <command>grep</command> command is to ensure the modification
|
---|
189 | is only made if it is needed. Run these commands from within the
|
---|
190 | <filename class="directory">xc</filename> folder:</para>
|
---|
191 |
|
---|
192 | <screen><userinput>grep "__undef_LINUX" \
|
---|
193 | /usr/include/sys/kd.h 2>&1 > /dev/null || \
|
---|
194 | sed -i.bak '/X.h/i #include <linux/types.h>' \
|
---|
195 | programs/Xserver/hw/xfree86/os-support/linux/lnx_agp.c</userinput></screen>
|
---|
196 | <!-- End remove -->
|
---|
197 |
|
---|
198 | </sect3>
|
---|
199 | <sect3>
|
---|
200 |
|
---|
201 | <title>Setting Up a Shadow Directory</title>
|
---|
202 |
|
---|
203 | <para>When building <application>XFree86</application>, you should create
|
---|
204 | a shadow directory of symbolic links for the compiled code. To do that,
|
---|
205 | first make <command>lndir</command>. Starting from the
|
---|
206 | <filename class='directory'>xc</filename> directory:</para>
|
---|
207 |
|
---|
208 | <screen><userinput>make -C config/util -f Makefile.ini lndir</userinput></screen>
|
---|
209 |
|
---|
210 | <para>Now create the shadow tree:</para>
|
---|
211 |
|
---|
212 | <screen><userinput>mkdir ../xcbuild &&
|
---|
213 | cd ../xcbuild &&
|
---|
214 | ../xc/config/util/lndir ../xc</userinput></screen>
|
---|
215 |
|
---|
216 | </sect3>
|
---|
217 |
|
---|
218 | <sect3>
|
---|
219 | <title>Creating 'host.def'</title>
|
---|
220 |
|
---|
221 | <para>Although <application>XFree86</application> will compile without
|
---|
222 | a <filename>host.def</filename> file, the following file is recommended
|
---|
223 | for customizing the installation. Start from the
|
---|
224 | <filename class="directory">xcbuild</filename> directory.</para>
|
---|
225 |
|
---|
226 | <note>
|
---|
227 | <para>The <filename>host.def</filename> file is a
|
---|
228 | <application>C</application> file, not the usual configuration file.
|
---|
229 | If you make any changes, be sure the comment characters (/* and */)
|
---|
230 | are balanced. Most of the entries in the file below are commented
|
---|
231 | out with the default settings shown.</para>
|
---|
232 | </note>
|
---|
233 |
|
---|
234 | <screen><userinput>cat > config/cf/host.def << "EOF"
|
---|
235 | <literal>/* Begin XFree86 host.def file */
|
---|
236 |
|
---|
237 | /* System Related Information. If you read and configure only one
|
---|
238 | * section then it should be this one. The Intel architecture defaults
|
---|
239 | * are set for a i686 and higher. Axp is for the Alpha architecture
|
---|
240 | * and Ppc is for the Power PC. Note that there have been reports that
|
---|
241 | * the Ppc optimization line causes segmentation faults during build.
|
---|
242 | * If that happens, try building without the DefaultGcc2PpcOpt line. */
|
---|
243 |
|
---|
244 | /* #define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686 */
|
---|
245 | /* #define DefaultGcc2AxpOpt -O2 -mcpu=ev6 */
|
---|
246 | /* #define DefaultGcc2PpcOpt -O2 -mcpu=750 */
|
---|
247 |
|
---|
248 | /* The following definitions are normally set properly by XFree86's
|
---|
249 | * scripts. You can uncomment them if you want to make sure. *********/
|
---|
250 |
|
---|
251 | /* #define HasMTRRSupport YES */ /* Enabled in kernel; */
|
---|
252 | /* see kernel docs */
|
---|
253 | /* #define HasMMXSupport NO */ /* Any i586 or above */
|
---|
254 | /* #define HasKatmaiSupport NO */ /* PIII SSE instructions */
|
---|
255 | /* #define Has3DNowSupport NO */ /* AMD instructions */
|
---|
256 |
|
---|
257 |
|
---|
258 | /* This setting reduces compile time a little by omitting rarely used
|
---|
259 | * input devices. You can find the complete list in
|
---|
260 | * config/cf/xfree86.cf *********************************************/
|
---|
261 |
|
---|
262 | #define XInputDrivers mouse void
|
---|
263 |
|
---|
264 | /* VIDEO DRIVERS ****************************************************/
|
---|
265 |
|
---|
266 | /* If you are sure you only want the drivers for one or a few video
|
---|
267 | * cards, you can delete the drivers you do not want. ***************/
|
---|
268 |
|
---|
269 |
|
---|
270 | #define XF86CardDrivers mga glint nv tga s3 s3virge sis rendition \
|
---|
271 | neomagic i740 tdfx savage \
|
---|
272 | cirrus vmware tseng trident chips apm \
|
---|
273 | GlideDriver fbdev i128 nsc \
|
---|
274 | ati i810 DevelDrivers ark \
|
---|
275 | cyrix siliconmotion \
|
---|
276 | vesa vga \
|
---|
277 | dummy XF86OSCardDrivers XF86ExtraCardDrivers
|
---|
278 |
|
---|
279 |
|
---|
280 | /* USER AND SYSTEM DEFAULT PATHS *************************************/
|
---|
281 |
|
---|
282 | /* These settings set the PATH variables used by xdm. See README for */
|
---|
283 | /* detailed description and modify the following as per your need. ***/
|
---|
284 |
|
---|
285 | /* #define DefaultSystemPath \
|
---|
286 | /usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin */
|
---|
287 | /* #define DefaultUserPath /usr/bin:/bin:/usr/X11R6/bin */
|
---|
288 |
|
---|
289 | /* FONT SERVER AND LIBRARY SETTINGS **********************************/
|
---|
290 |
|
---|
291 | /* These settings are the defaults **********************************/
|
---|
292 |
|
---|
293 | /* #define BuildFontServer YES */ /*For Ghostscript Print Server*/
|
---|
294 | /* #define SharedLibFont YES */
|
---|
295 | /* #define CompressAllFonts YES */
|
---|
296 | /* #define GzipFontCompression YES */
|
---|
297 |
|
---|
298 | /* These settings ensure we use our libraries ************************/
|
---|
299 | #define HasFreetype2 YES
|
---|
300 | #define HasFontconfig YES
|
---|
301 | #define HasExpat YES
|
---|
302 | #define HasLibpng YES
|
---|
303 | #define HasZlib YES
|
---|
304 |
|
---|
305 | /* INTERNATIONAL FONTS. Change to YES if you need any of them. These
|
---|
306 | * are the defaults. **************************************************/
|
---|
307 |
|
---|
308 | /* #define BuildCyrillicFonts NO */
|
---|
309 | /* #define BuildArabicFonts NO */
|
---|
310 | /* #define BuildISO8859_6Fonts NO */
|
---|
311 | /* #define BuildGreekFonts NO */
|
---|
312 | /* #define BuildISO8859_7Fonts NO */
|
---|
313 | /* #define BuildHebrewFonts NO */
|
---|
314 | /* #define BuildISO8859_8Fonts NO */
|
---|
315 | /* #define BuildKOI8_RFonts NO */
|
---|
316 | /* #define BuildJapaneseFonts NO */
|
---|
317 | /* #define BuildJISX0201Fonts NO */
|
---|
318 | /* #define BuildKoreanFonts NO */
|
---|
319 | /* #define BuildChineseFonts NO */
|
---|
320 |
|
---|
321 | /* DOCUMENTATION SETTINGS ********************************************/
|
---|
322 |
|
---|
323 | /* These setting are the defaults. ***********************************/
|
---|
324 |
|
---|
325 | /* #define BuildLinuxDocHtml NO */ /* X Docs in Html format */
|
---|
326 | /* #define BuildLinuxDocPS NO */ /* PostScript format */
|
---|
327 | /* #define BuildAllSpecsDocs NO */ /* Various docs */
|
---|
328 | /* #define BuildHtmlManPages NO */
|
---|
329 |
|
---|
330 | /* GENERAL SETTINGS: You generally want to leave these alone when
|
---|
331 | * building X on an LFS system ***************************************/
|
---|
332 |
|
---|
333 | #define GccWarningOptions -pipe /* Speed up compiles */
|
---|
334 | #define TermcapLibrary -lncurses
|
---|
335 | #define XprtServer YES /* Needed by realplayer */
|
---|
336 | #define XnestServer YES
|
---|
337 | #define XAppLoadDir EtcX11Directory/app-defaults
|
---|
338 | #define VarLibDir /var/lib
|
---|
339 | #define XFree86Devel NO
|
---|
340 | #define FSUseSyslog YES
|
---|
341 | #define ThreadedX YES
|
---|
342 | #define HasPam NO
|
---|
343 | #define SystemManDirectory /usr/share/man /*Instead of /usr/man*/
|
---|
344 | #define HasLibCrypt YES
|
---|
345 | #define InstallXinitConfig YES
|
---|
346 | #define InstallXdmConfig YES
|
---|
347 | #define ForceNormalLib YES
|
---|
348 | #define BuildSpecsDocs NO
|
---|
349 | #define DocDir /usr/share/doc/xfree86-4.6.0
|
---|
350 |
|
---|
351 | /* Installation prefix. The default is to install into /usr/X11R6. If you
|
---|
352 | * would like to install into /usr, uncomment these options. */
|
---|
353 |
|
---|
354 | /* #define ProjectRoot /usr */
|
---|
355 | /* #define LinkGLToUsrLib NO */
|
---|
356 | /* #define LinkGLToUsrInclude NO */
|
---|
357 |
|
---|
358 | /* End XFree86 host.def file */</literal>
|
---|
359 | EOF</userinput></screen>
|
---|
360 |
|
---|
361 | <para>Edit the file for your hardware and desires.</para>
|
---|
362 |
|
---|
363 | </sect3>
|
---|
364 |
|
---|
365 | <sect3>
|
---|
366 | <title>Build Commands</title>
|
---|
367 |
|
---|
368 | <para>Install <application>XFree86</application> by running the
|
---|
369 | following commands:</para>
|
---|
370 |
|
---|
371 | <screen><userinput>sed -i 's:^.*asm.*$:# define PAGE_MASK (~(getpagesize() - 1)):' \
|
---|
372 | ../xc/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c &&
|
---|
373 | sed -i -e "s@^#include <linux/config.h>@/* & */@" \
|
---|
374 | `grep -lr linux/config.h ../xc` &&
|
---|
375 | ( make World 2>&1 | tee xfree-compile.log && exit $PIPESTATUS )
|
---|
376 | </userinput></screen>
|
---|
377 |
|
---|
378 | <para>This package does not come with a test suite.</para>
|
---|
379 |
|
---|
380 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
381 | user:</para>
|
---|
382 |
|
---|
383 | <screen role="root"><userinput>make install &&
|
---|
384 | make install.man &&
|
---|
385 | ln -v -s ../X11R6/bin /usr/bin/X11 &&
|
---|
386 | ln -v -s ../X11R6/lib/X11 /usr/lib/X11 &&
|
---|
387 | ln -v -s ../X11R6/include/X11 /usr/include/X11</userinput></screen>
|
---|
388 |
|
---|
389 | <para>The <application>XFree86</application> fonts have been installed
|
---|
390 | outside of <application>Fontconfig</application>'s default search path
|
---|
391 | of <filename class="directory">/usr/share/fonts</filename>. In order
|
---|
392 | for <application>Fontconfig</application> to find the installed TrueType
|
---|
393 | fonts, you should make symlinks to their directories. Assuming you've
|
---|
394 | installed <application>XFree86</application> in the default prefix, run the
|
---|
395 | following commands as the <systemitem class="username">root</systemitem>
|
---|
396 | user:</para>
|
---|
397 |
|
---|
398 | <screen role="root"><userinput>install -d -m755 /usr/share/fonts &&
|
---|
399 | ln -svn /usr/X11R6/lib/X11/fonts/OTF /usr/share/fonts/X11-OTF &&
|
---|
400 | ln -svn /usr/X11R6/lib/X11/fonts/TTF /usr/share/fonts/X11-TTF</userinput></screen>
|
---|
401 |
|
---|
402 | <para><application>XFree86</application> installs the
|
---|
403 | <application>XRender</application> and
|
---|
404 | <application>XExtensions</application> extension libraries but does not
|
---|
405 | install the corresponding <application>pkg-config</application> files.
|
---|
406 | Create the files by issuing the following commands as the
|
---|
407 | <systemitem class="username">root</systemitem> user:</para>
|
---|
408 |
|
---|
409 | <screen role="root"><userinput>cat > /usr/X11R6/lib/pkgconfig/xrender.pc << "EOF"
|
---|
410 | <literal>prefix=/usr/X11R6
|
---|
411 | exec_prefix=${prefix}
|
---|
412 | libdir=${exec_prefix}/lib
|
---|
413 | includedir=${prefix}/include
|
---|
414 |
|
---|
415 | Name: Xrender
|
---|
416 | Description: X Render Library
|
---|
417 | Version: 0.8.3
|
---|
418 | Cflags: -I${includedir} -I/usr/X11R6/include
|
---|
419 | Libs: -L${libdir} -lXrender -L/usr/X11R6/lib -lX11</literal>
|
---|
420 |
|
---|
421 | EOF
|
---|
422 |
|
---|
423 | cat > /usr/X11R6/lib/pkgconfig/xextensions.pc << "EOF"
|
---|
424 | <literal>prefix=/usr/X11R6
|
---|
425 | exec_prefix=${prefix}
|
---|
426 | libdir=${exec_prefix}/lib
|
---|
427 | includedir=${prefix}/include
|
---|
428 |
|
---|
429 | Name: XExtensions
|
---|
430 | Description: Sundry X extension headers
|
---|
431 | Version: 1.0.1
|
---|
432 | Cflags: -I${includedir}</literal>
|
---|
433 |
|
---|
434 | EOF</userinput></screen>
|
---|
435 |
|
---|
436 | <para>You should now continue on to the <xref linkend="x-setup"/> section
|
---|
437 | to complete the configuration of
|
---|
438 | <application>XFree86</application>.</para>
|
---|
439 |
|
---|
440 | </sect3>
|
---|
441 |
|
---|
442 | </sect2>
|
---|
443 |
|
---|
444 | <sect2 role="commands">
|
---|
445 | <title>Command Explanations</title>
|
---|
446 |
|
---|
447 | <para><command>sed -i 's:^.*asm.* ... fbdevhw.c</command>: This sed fixes a
|
---|
448 | problem compiling against kernel headers since linux-2.6.8.</para>
|
---|
449 |
|
---|
450 | <para><command>sed -i -e "s@^#include <linux/config.h>@...</command>:
|
---|
451 | The <application>Linux-Libc-Headers</application> package installed in
|
---|
452 | LFS installs a <filename>/usr/include/linux/config.h</filename> file which
|
---|
453 | is not compatible with userspace applications. The recommended fix for
|
---|
454 | applications including this file is to remove it (see <ulink
|
---|
455 | url="http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/FAQ">
|
---|
456 | linux-libc-headers FAQ</ulink>). The <command>sed</command> uses
|
---|
457 | <command>grep -lr</command> to replace all occurrences. If you desire, just
|
---|
458 | remove (comment) the line in the appropriate video driver file if you
|
---|
459 | customized <filename>host.def</filename>.</para>
|
---|
460 |
|
---|
461 | <para><command>( make World 2>&1 | tee xfree-compile.log
|
---|
462 | && exit $PIPESTATUS )</command>:
|
---|
463 | This command runs multiple <filename>Makefile</filename>s to completely
|
---|
464 | rebuild the system. <option>2>&1</option>
|
---|
465 | redirects error messages to the same location as standard output. The
|
---|
466 | <command>tee</command> command allows viewing of the output while logging
|
---|
467 | the results to a file. The parentheses around the command runs the entire
|
---|
468 | command in a subshell and finally the <command>exit $PIPESTATUS</command>
|
---|
469 | ensures the result of the <command>make</command> is returned as the result
|
---|
470 | and not the result of the <command>tee</command> command.</para>
|
---|
471 |
|
---|
472 | <note>
|
---|
473 | <para>When rebuilding <application>XFree86</application>, a separate
|
---|
474 | command that may be used if only minor changes are made to the sources
|
---|
475 | is <command>make Everything</command>. This does not automatically
|
---|
476 | remove generated files and only rebuilds those files or programs that
|
---|
477 | are out of date.</para>
|
---|
478 | </note>
|
---|
479 |
|
---|
480 | <para><command>ln -v -sf ...</command>: These commands are present to
|
---|
481 | enable other (broken) packages to build against
|
---|
482 | <application>XFree86</application>, even though the Filesystem Hierarchy
|
---|
483 | Standard says: <quote>In general, software must not be installed or managed
|
---|
484 | via the above symbolic links. They are intended for utilization by
|
---|
485 | users only.</quote></para>
|
---|
486 |
|
---|
487 | </sect2>
|
---|
488 |
|
---|
489 | <sect2 id="xfree86-contents" role="content"
|
---|
490 | xreflabel="XFree86 Contents and Descriptions">
|
---|
491 | <title>Contents</title>
|
---|
492 |
|
---|
493 | <para>The <application>XFree86</application> package contains the
|
---|
494 | <application>X Window System</application> for Linux (and other operating
|
---|
495 | systems). It includes the <application>X</application> server, fonts,
|
---|
496 | <command>xterm</command>, a simple window manager (<command>twm</command>),
|
---|
497 | various utilities, video output drivers, and various input drivers
|
---|
498 | including the mouse and keyboard.</para>
|
---|
499 |
|
---|
500 | <para><application>XFree86</application> also contains libraries and header
|
---|
501 | files for development of the <application>X Window System</application>
|
---|
502 | programs.</para>
|
---|
503 |
|
---|
504 | <note>
|
---|
505 | <para>The following lists are not comprehensive. The full list of
|
---|
506 | programs is (if you install into
|
---|
507 | <filename class="directory">/usr/X11R6</filename>) in
|
---|
508 | <filename class="directory">/usr/X11R6/bin</filename>.
|
---|
509 | For additional information about these programs, see the respective
|
---|
510 | man page.</para>
|
---|
511 | </note>
|
---|
512 |
|
---|
513 | <segmentedlist>
|
---|
514 | <segtitle>Installed Programs</segtitle>
|
---|
515 | <segtitle>Installed Libraries</segtitle>
|
---|
516 | <segtitle>Installed Directories</segtitle>
|
---|
517 |
|
---|
518 | <seglistitem>
|
---|
519 | <seg>XFree86, xf86config, xf86cfg, startx, xinit, twm, xterm,
|
---|
520 | xwininfo, x11perf, xlsfonts, xvidtune, xload, xcalc, xclock,
|
---|
521 | oclock, and xmodmap</seg>
|
---|
522 | <seg>libGL.so, libGLU.so, libSM.so, libXi.so, libXrender.so,
|
---|
523 | libXt.so, and libXfont.so</seg>
|
---|
524 | <seg>/usr/X11R6/ and /etc/X11/</seg>
|
---|
525 | </seglistitem>
|
---|
526 | </segmentedlist>
|
---|
527 |
|
---|
528 | <variablelist>
|
---|
529 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
530 | <?dbfo list-presentation="list"?>
|
---|
531 | <?dbhtml list-presentation="table"?>
|
---|
532 |
|
---|
533 | <varlistentry id="XFree86">
|
---|
534 | <term><command>XFree86</command></term>
|
---|
535 | <listitem>
|
---|
536 | <para>is the X11R6 implementation of the <application>X Window
|
---|
537 | System</application> server.</para>
|
---|
538 | <indexterm zone="xfree86 XFree86">
|
---|
539 | <primary sortas="b-XFree86">XFree86</primary>
|
---|
540 | </indexterm>
|
---|
541 | </listitem>
|
---|
542 | </varlistentry>
|
---|
543 |
|
---|
544 | <varlistentry id="xf86config">
|
---|
545 | <term><command>xf86config</command></term>
|
---|
546 | <listitem>
|
---|
547 | <para>is an interactive program for generating an
|
---|
548 | <filename>XF86Config</filename> file for use with
|
---|
549 | <application>XFree86</application> <application>X</application>
|
---|
550 | servers.</para>
|
---|
551 | <indexterm zone="xfree86 xf86config">
|
---|
552 | <primary sortas="b-xf86config">xf86config</primary>
|
---|
553 | </indexterm>
|
---|
554 | </listitem>
|
---|
555 | </varlistentry>
|
---|
556 |
|
---|
557 | <varlistentry id="xf86cfg">
|
---|
558 | <term><command>xf86cfg</command></term>
|
---|
559 | <listitem>
|
---|
560 | <para>is a tool to configure <application>XFree86</application>
|
---|
561 | that can be used to either write the initial configuration file
|
---|
562 | or make customizations to the current configuration.</para>
|
---|
563 | <indexterm zone="xfree86 xf86cfg">
|
---|
564 | <primary sortas="b-xf86cfg">xf86cfg</primary>
|
---|
565 | </indexterm>
|
---|
566 | </listitem>
|
---|
567 | </varlistentry>
|
---|
568 |
|
---|
569 | <varlistentry id="startx">
|
---|
570 | <term><command>startx</command></term>
|
---|
571 | <listitem>
|
---|
572 | <para>is a script to initialize the <application>X</application>
|
---|
573 | session. It runs <command>xinit</command>.</para>
|
---|
574 | <indexterm zone="xfree86 startx">
|
---|
575 | <primary sortas="b-startx">startx</primary>
|
---|
576 | </indexterm>
|
---|
577 | </listitem>
|
---|
578 | </varlistentry>
|
---|
579 |
|
---|
580 | <varlistentry id="xinit">
|
---|
581 | <term><command>xinit</command></term>
|
---|
582 | <listitem>
|
---|
583 | <para>is used to start the <application>X Window
|
---|
584 | System</application> server.</para>
|
---|
585 | <indexterm zone="xfree86 xinit">
|
---|
586 | <primary sortas="b-xinit">xinit</primary>
|
---|
587 | </indexterm>
|
---|
588 | </listitem>
|
---|
589 | </varlistentry>
|
---|
590 |
|
---|
591 | <varlistentry id="twm">
|
---|
592 | <term><command>twm</command></term>
|
---|
593 | <listitem>
|
---|
594 | <para>(Tab Window Manager) is a window manager included with the
|
---|
595 | <application>X Window System</application>.</para>
|
---|
596 | <indexterm zone="xfree86 twm">
|
---|
597 | <primary sortas="b-twm">twm</primary>
|
---|
598 | </indexterm>
|
---|
599 | </listitem>
|
---|
600 | </varlistentry>
|
---|
601 |
|
---|
602 | <varlistentry id="xterm">
|
---|
603 | <term><command>xterm</command></term>
|
---|
604 | <listitem>
|
---|
605 | <para>is a terminal emulator for <application>X</application>.</para>
|
---|
606 | <indexterm zone="xfree86 xterm">
|
---|
607 | <primary sortas="b-xterm">xterm</primary>
|
---|
608 | </indexterm>
|
---|
609 | </listitem>
|
---|
610 | </varlistentry>
|
---|
611 |
|
---|
612 | <varlistentry id="xwininfo">
|
---|
613 | <term><command>xwininfo</command></term>
|
---|
614 | <listitem>
|
---|
615 | <para>is a window information utility for
|
---|
616 | <application>X</application>.</para>
|
---|
617 | <indexterm zone="xfree86 xwininfo">
|
---|
618 | <primary sortas="b-xwininfo">xwininfo</primary>
|
---|
619 | </indexterm>
|
---|
620 | </listitem>
|
---|
621 | </varlistentry>
|
---|
622 |
|
---|
623 | <varlistentry id="x11perf">
|
---|
624 | <term><command>x11perf</command></term>
|
---|
625 | <listitem>
|
---|
626 | <para>is an <application>X</application>11 server performance
|
---|
627 | test program.</para>
|
---|
628 | <indexterm zone="xfree86 x11perf">
|
---|
629 | <primary sortas="b-x11perf">x11perf</primary>
|
---|
630 | </indexterm>
|
---|
631 | </listitem>
|
---|
632 | </varlistentry>
|
---|
633 |
|
---|
634 | <varlistentry id="xlsfonts">
|
---|
635 | <term><command>xlsfonts</command></term>
|
---|
636 | <listitem>
|
---|
637 | <para>is a program to list fonts available to the
|
---|
638 | <application>X</application> server.</para>
|
---|
639 | <indexterm zone="xfree86 xlsfonts">
|
---|
640 | <primary sortas="b-xlsfonts">xlsfonts</primary>
|
---|
641 | </indexterm>
|
---|
642 | </listitem>
|
---|
643 | </varlistentry>
|
---|
644 |
|
---|
645 | <varlistentry id="xvidtune">
|
---|
646 | <term><command>xvidtune</command></term>
|
---|
647 | <listitem>
|
---|
648 | <para>is a video mode tuner for
|
---|
649 | <application>XFree86</application>.</para>
|
---|
650 | <indexterm zone="xfree86 xvidtune">
|
---|
651 | <primary sortas="b-xvidtune">xvidtune</primary>
|
---|
652 | </indexterm>
|
---|
653 | </listitem>
|
---|
654 | </varlistentry>
|
---|
655 |
|
---|
656 | <varlistentry id="xload">
|
---|
657 | <term><command>xload</command></term>
|
---|
658 | <listitem>
|
---|
659 | <para> is a system load average display for
|
---|
660 | <application>X</application>.</para>
|
---|
661 | <indexterm zone="xfree86 xload">
|
---|
662 | <primary sortas="b-xload">xload</primary>
|
---|
663 | </indexterm>
|
---|
664 | </listitem>
|
---|
665 | </varlistentry>
|
---|
666 |
|
---|
667 | <varlistentry id="xcalc">
|
---|
668 | <term><command>xcalc</command></term>
|
---|
669 | <listitem>
|
---|
670 | <para>is a scientific calculator for
|
---|
671 | <application>X</application>.</para>
|
---|
672 | <indexterm zone="xfree86 xcalc">
|
---|
673 | <primary sortas="b-xcalc">xcalc</primary>
|
---|
674 | </indexterm>
|
---|
675 | </listitem>
|
---|
676 | </varlistentry>
|
---|
677 |
|
---|
678 | <varlistentry id="xclock">
|
---|
679 | <term><command>xclock</command></term>
|
---|
680 | <listitem>
|
---|
681 | <para>is a clock programs for <application>X</application>.</para>
|
---|
682 | <indexterm zone="xfree86 xclock">
|
---|
683 | <primary sortas="b-xclock">xclock</primary>
|
---|
684 | </indexterm>
|
---|
685 | </listitem>
|
---|
686 | </varlistentry>
|
---|
687 |
|
---|
688 | <varlistentry id="oclock">
|
---|
689 | <term><command>oclock</command></term>
|
---|
690 | <listitem>
|
---|
691 | <para>is a clock programs for <application>X</application>.</para>
|
---|
692 | <indexterm zone="xfree86 oclock">
|
---|
693 | <primary sortas="b-oclock">oclock</primary>
|
---|
694 | </indexterm>
|
---|
695 | </listitem>
|
---|
696 | </varlistentry>
|
---|
697 |
|
---|
698 | <varlistentry id="xmodmap">
|
---|
699 | <term><command>xmodmap</command></term>
|
---|
700 | <listitem>
|
---|
701 | <para>is a utility for modifying keymaps and pointer button
|
---|
702 | mappings in <application>X</application>.</para>
|
---|
703 | <indexterm zone="xfree86 xmodmap">
|
---|
704 | <primary sortas="b-xmodmap">xmodmap</primary>
|
---|
705 | </indexterm>
|
---|
706 | </listitem>
|
---|
707 | </varlistentry>
|
---|
708 |
|
---|
709 | </variablelist>
|
---|
710 |
|
---|
711 | </sect2>
|
---|
712 |
|
---|
713 | </sect1>
|
---|