source: x/installing/xfree86.xml@ 9a2fba9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9a2fba9 was 9a2fba9, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Remove 2nd installation of lndir in xorg and xfree86.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5679 af4574ff-66df-0310-9fd7-8a98e5e911e0

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