source: x/installing/xfree86.xml@ 8222555

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 8222555 was 8222555, checked in by DJ Lucas <dj@…>, 18 years ago

Changes to Xorg7 and fontpath changes for xfree and xorg6

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

  • Property mode set to 100644
File size: 32.4 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/* INTERNATIONAL FONTS. Change to YES if you need any of them. These
313 * are the defaults. **************************************************/
314
315/* #define BuildCyrillicFonts NO */
316/* #define BuildArabicFonts NO */
317/* #define BuildISO8859_6Fonts NO */
318/* #define BuildGreekFonts NO */
319/* #define BuildISO8859_7Fonts NO */
320/* #define BuildHebrewFonts NO */
321/* #define BuildISO8859_8Fonts NO */
322/* #define BuildKOI8_RFonts NO */
323/* #define BuildJapaneseFonts NO */
324/* #define BuildJISX0201Fonts NO */
325/* #define BuildKoreanFonts NO */
326/* #define BuildChineseFonts NO */
327
328/* DOCUMENTATION SETTINGS ********************************************/
329
330/* These setting are the defaults. ***********************************/
331
332/* #define BuildLinuxDocHtml NO */ /* X Docs in Html format */
333/* #define BuildLinuxDocPS NO */ /* PostScript format */
334/* #define BuildAllSpecsDocs NO */ /* Various docs */
335/* #define BuildHtmlManPages NO */
336
337/* GENERAL SETTINGS: You generally want to leave these alone when
338 * building X on an LFS system ***************************************/
339
340#define GccWarningOptions -pipe /* Speed up compiles */
341#define TermcapLibrary -lncurses
342#define XprtServer YES /* Needed by realplayer */
343#define XnestServer YES
344#define XAppLoadDir EtcX11Directory/app-defaults
345#define VarLibDir /var/lib
346#define XFree86Devel NO
347#define FSUseSyslog YES
348#define ThreadedX YES
349#define HasPam NO
350#define SystemManDirectory /usr/share/man /*Instead of /usr/man*/
351#define HasLibCrypt YES
352#define InstallXinitConfig YES
353#define InstallXdmConfig YES
354#define ForceNormalLib YES
355#define BuildSpecsDocs NO
356
357/* End XFree86 host.def file */</literal>
358EOF</userinput></screen>
359
360 <para>Edit the file for your hardware and desires.</para>
361
362 </sect3>
363
364 <sect3>
365 <title>Build Commands</title>
366
367 <para>Install <application>XFree86</application> by running the
368 following commands:</para>
369
370<screen><userinput>patch -Np1 -i ../XFree86-&xfree86-version;-kernel_headers-1.patch &amp;&amp;
371sed -i -e "s@^#include &lt;linux/config.h&gt;@/* &amp; */@" \
372 `grep -lr linux/config.h *` &amp;&amp;
373( make WORLDOPTS="" World 2&gt;&amp;1 | \
374 tee xfree-compile.log &amp;&amp; exit $PIPESTATUS )</userinput></screen>
375
376 <para>Now, as the <systemitem class="username">root</systemitem>
377 user:</para>
378
379<screen role="root"><userinput>make install &amp;&amp;
380make install.man &amp;&amp;
381ln -v -sf ../X11R6/bin /usr/bin/X11 &amp;&amp;
382ln -v -sf ../X11R6/lib/X11 /usr/lib/X11 &amp;&amp;
383ln -v -sf ../X11R6/include/X11 /usr/include/X11</userinput></screen>
384
385 <para><application>XFree86</application> installs the
386 <application>XRender</application> and
387 <application>XExtensions</application> extension libraries but does not
388 install the corresponding <application>pkg-config</application> files.
389 Create the files by issuing the following commands as the
390 <systemitem class="username">root</systemitem> user:</para>
391
392<screen role="root"><userinput>cat &gt; /usr/X11R6/lib/pkgconfig/xrender.pc &lt;&lt; "EOF"
393<literal>prefix=/usr/X11R6
394exec_prefix=${prefix}
395libdir=${exec_prefix}/lib
396includedir=${prefix}/include
397
398Name: Xrender
399Description: X Render Library
400Version: 0.8.3
401Cflags: -I${includedir} -I/usr/X11R6/include
402Libs: -L${libdir} -lXrender -L/usr/X11R6/lib -lX11</literal>
403
404EOF
405
406cat &gt; /usr/X11R6/lib/pkgconfig/xextensions.pc &lt;&lt; "EOF"
407<literal>prefix=/usr/X11R6
408exec_prefix=${prefix}
409libdir=${exec_prefix}/lib
410includedir=${prefix}/include
411
412Name: XExtensions
413Description: Sundry X extension headers
414Version: 1.0.1
415Cflags: -I${includedir}</literal>
416
417EOF</userinput></screen>
418
419 </sect3>
420
421 </sect2>
422
423 <sect2 role="commands">
424 <title>Command Explanations</title>
425
426 <para><command>sed -i -e "s@^#include &lt;linux/config.h&gt;@...</command>:
427 The <application>Linux-Libc-Headers</application> package installed in
428 LFS installs a <filename>/usr/include/linux/config.h</filename> file which
429 is not compatible with userspace applications. The recommended fix for
430 applications including this file is to remove it (see <ulink
431 url="http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/FAQ">
432 linux-libc-headers FAQ</ulink>). The <command>sed</command> uses
433 <command>grep -lr</command> to replace all occurrences. If you desire, just
434 remove (comment) the line in the appropriate video driver file if you
435 customized <filename>host.def</filename>.</para>
436
437 <para><command>( make WORLDOPTS="" World 2&gt;&amp;1 | tee xfree-compile.log
438 &amp;&amp; exit $PIPESTATUS )</command>:
439 This command runs multiple <filename>Makefile</filename>s to completely
440 rebuild the system. <envar>WORLDOPTS</envar>="" disables the default setting
441 to continue after encountering an error. <option>2&gt;&amp;1</option>
442 redirects error messages to the same location as standard output. The
443 <command>tee</command> command allows viewing of the output while logging
444 the results to a file. The parentheses around the command runs the entire
445 command in a subshell and finally the <command>exit $PIPESTATUS</command>
446 ensures the result of the <command>make</command> is returned as the result
447 and not the result of the <command>tee</command> command.</para>
448
449 <note>
450 <para>When rebuilding <application>XFree86</application>, a separate
451 command that may be used if only minor changes are made to the sources
452 is <command>make Everything</command>. This does not automatically
453 remove generated files and only rebuilds those files or programs that
454 are out of date.</para>
455 </note>
456
457 <para><command>ln -v -sf ...</command>: These commands are present to
458 enable other (broken) packages to build against
459 <application>XFree86</application>, even though the Filesystem Hierarchy
460 Standard says: <quote>In general, software must not be installed or managed
461 via the above symbolic links. They are intended for utilization by
462 users only.</quote></para>
463
464 </sect2>
465
466 <sect2 role="configuration" id="xfree86-config">
467 <title>Configuring XFree86</title>
468
469 <para>As the <systemitem class="username">root</systemitem> user: Edit
470 <filename>/etc/ld.so.conf</filename> and add
471 <filename class="directory">/usr/X11R6/lib</filename>, then run:</para>
472
473<screen role="root"><userinput>ldconfig</userinput></screen>
474
475 <indexterm zone="xfree86 xfree86-config">
476 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
477 </indexterm>
478
479 <para>Ensure <filename class="directory">/usr/X11R6/bin</filename>
480 and <filename class="directory">/usr/X11R6/lib/pkgconfig</filename>
481 are added to your <envar>PATH</envar> and <envar>PKG_CONFIG_PATH</envar>
482 environment variables, respectively. Instructions for doing this are
483 described in the section <xref linkend='postlfs-config-profile'/>.</para>
484
485 <indexterm zone="xfree86 xfree86-config">
486 <primary sortas="e-etc-X11-XF86Config">/etc/X11/XF86Config</primary>
487 </indexterm>
488
489 <para>Create the <filename>XF86Config</filename> file with:</para>
490
491<screen><userinput>cd ~ &amp;&amp;
492XFree86 -configure</userinput></screen>
493
494 <para>The screen will go black and you may hear some clicking of the monitor.
495 This command will create a file, <filename>XF86Config.new</filename> in your
496 home directory.</para>
497
498 <para>Edit <filename>XF86Config.new</filename> to suit your system.
499 The details of the file are located in the man page <command>man
500 XF86Config</command>. Some things you may want to do are:</para>
501
502 <itemizedlist>
503 <listitem>
504 <para>Section "Files". Change the order of the font paths searched.
505 You may want to put 100dpi fonts ahead of 75dpi fonts if your system
506 normally comes up closer to 100 dots per inch. You may want to remove
507 some font directories completely.</para>
508 </listitem>
509 <listitem>
510 <para>Section "Module". If you are going to install NVidia
511 drivers, remove the "dri" line.</para>
512 </listitem>
513 <listitem>
514 <para>Sections "InputDevice". You may want to change the
515 keyboard autorepeat rate by adding
516 <option>Option "Autorepeat" "250 30"</option>.</para>
517 </listitem>
518 <listitem>
519 <para>Section "Monitor". Specify the <option>VertRefresh</option>
520 and <option>HorizSync</option> values if the system does not
521 automatically detect the monitor and its values.</para>
522 </listitem>
523 <listitem>
524 <para>Section "Device". You may want to set some of the options
525 available for your selected video driver. A description of the
526 driver parameters is in the man page for your driver.</para>
527 </listitem>
528 <listitem>
529 <para>Section "Screen". Add a DefaultDepth statement such as:
530 <option>DefaultDepth 24</option>. In the SubSection for your
531 default depth, add a modes line such as:
532 <option>Modes "1600x1200" "1280x1024" "1024x768"</option>. The
533 first mode listed will normally be the starting resolution.</para>
534 </listitem>
535 </itemizedlist>
536
537 <para>Test the system with:</para>
538
539<screen><userinput>XFree86 -xf86config ~/XF86Config.new</userinput></screen>
540
541 <para>You will only get a gray background with an X-shaped mouse cursor,
542 but it confirms the system is working. Exit with
543 <keycap>Control+Alt+Backspace</keycap>. If the system does not work,
544 examine <filename>/var/log/XFree86.0.log</filename> to see what went
545 wrong.</para>
546
547 <para>As the <systemitem class="username">root</systemitem> user:
548 move the configuration file to its final location:</para>
549
550<screen role="root"><userinput>mv ~/XF86Config.new /etc/X11/XF86Config</userinput></screen>
551
552 <para>Create <filename>.xinitrc</filename>:</para>
553
554<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
555<literal># Begin .xinitrc file
556xterm -g 80x40+0+0 &amp;
557xclock -g 100x100-0+0 &amp;
558twm</literal>
559EOF</userinput></screen>
560
561 <para>This provides an initial screen with an xterm and a clock that is
562 managed by a simple window manager, Tab Window Manager. For details of
563 <command>twm</command>, see the man page.</para>
564
565 <indexterm zone="xfree86 xfree86-config">
566 <primary sortas="e-AA.xinitrc">~/.xinitrc</primary>
567 </indexterm>
568
569 <note>
570 <para>When needed, <application>XFree86</application> creates the
571 directory <filename>/tmp/.ICE-unix</filename> if it does not exist.
572 If this directory is not owned by <systemitem
573 class="username">root</systemitem>, <application>XFree86</application>
574 delays startup by a few seconds and also appends a warning to the
575 logfile. This also affects startup of other applications. To improve
576 performance, it is advisable to manually create the directory before
577 <application>XFree86</application> uses it. Add the file creation to
578 <filename>/etc/sysconfig/createfiles</filename> that is sourced by
579 the <filename>/etc/rc.d/init.d/cleanfs</filename> startup script.</para>
580
581<screen role="root"><userinput>cat &gt;&gt; /etc/sysconfig/createfiles &lt;&lt; "EOF"
582<literal>/tmp/.ICE-unix dir 1777 root root</literal>
583EOF</userinput></screen>
584
585 </note>
586
587 <indexterm zone="xfree86 xfree86-config">
588 <primary
589 sortas="e-etc-sysconfig-createfiles">/etc/sysconfig/createfiles</primary>
590 </indexterm>
591
592 <para>Start <application>X</application> with:</para>
593
594<screen><userinput>startx</userinput></screen>
595
596 <para>to get a basic functional <application>X Window
597 System</application>.</para>
598
599 <para>At this point, you should check out <xref linkend='x-setup'/>
600 for the necessary configuration to make <application>X</application>
601 fully functional. Additionally, you can have a look at <xref
602 linkend='x-config'/> for information on fine tuning your
603 <application>X</application> configuration.</para>
604
605 </sect2>
606
607 <sect2 id="xfree86-contents" role="content"
608 xreflabel="XFree86 Contents and Descriptions">
609 <title>Contents</title>
610
611 <para>The <application>XFree86</application> package contains the
612 <application>X Window System</application> for Linux (and other operating
613 systems). It includes the <application>X</application> server, fonts,
614 <command>xterm</command>, a simple window manager (<command>twm</command>),
615 various utilities, video output drivers, and various input drivers
616 including the mouse and keyboard.</para>
617
618 <para><application>XFree86</application> also contains libraries and header
619 files for development of the <application>X Window System</application>
620 programs.</para>
621
622 <note>
623 <para>The following lists are not comprehensive. The full list of
624 programs is in <filename class="directory">/usr/X11R6/bin</filename>.
625 For additional information about these programs, see the respective
626 man page.</para>
627 </note>
628
629 <segmentedlist>
630 <segtitle>Installed Programs</segtitle>
631 <segtitle>Installed Libraries</segtitle>
632 <segtitle>Installed Directories</segtitle>
633
634 <seglistitem>
635 <seg>XFree86, xf86config, xf86cfg, startx, xinit, twm, xterm,
636 xwininfo, x11perf, xlsfonts, xvidtune, xload, xcalc, xclock,
637 oclock, and xmodmap</seg>
638 <seg>libGL.so, libGLU.so, libSM.so, libXi.so, libXrender.so,
639 libXt.so, and libXfont.so</seg>
640 <seg>/usr/X11R6/ and /etc/X11/</seg>
641 </seglistitem>
642 </segmentedlist>
643
644 <variablelist>
645 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
646 <?dbfo list-presentation="list"?>
647 <?dbhtml list-presentation="table"?>
648
649 <varlistentry id="XFree86">
650 <term><command>XFree86</command></term>
651 <listitem>
652 <para>is the X11R6 implementation of the <application>X Window
653 System</application> server.</para>
654 <indexterm zone="xfree86 XFree86">
655 <primary sortas="b-XFree86">XFree86</primary>
656 </indexterm>
657 </listitem>
658 </varlistentry>
659
660 <varlistentry id="xf86config">
661 <term><command>xf86config</command></term>
662 <listitem>
663 <para>is an interactive program for generating an
664 <filename>XF86Config</filename> file for use with
665 <application>XFree86</application> <application>X</application>
666 servers.</para>
667 <indexterm zone="xfree86 xf86config">
668 <primary sortas="b-xf86config">xf86config</primary>
669 </indexterm>
670 </listitem>
671 </varlistentry>
672
673 <varlistentry id="xf86cfg">
674 <term><command>xf86cfg</command></term>
675 <listitem>
676 <para>is a tool to configure <application>XFree86</application>
677 that can be used to either write the initial configuration file
678 or make customizations to the current configuration.</para>
679 <indexterm zone="xfree86 xf86cfg">
680 <primary sortas="b-xf86cfg">xf86cfg</primary>
681 </indexterm>
682 </listitem>
683 </varlistentry>
684
685 <varlistentry id="startx">
686 <term><command>startx</command></term>
687 <listitem>
688 <para>is a script to initialize the <application>X</application>
689 session. It runs <command>xinit</command>.</para>
690 <indexterm zone="xfree86 startx">
691 <primary sortas="b-startx">startx</primary>
692 </indexterm>
693 </listitem>
694 </varlistentry>
695
696 <varlistentry id="xinit">
697 <term><command>xinit</command></term>
698 <listitem>
699 <para>is used to start the <application>X Window
700 System</application> server.</para>
701 <indexterm zone="xfree86 xinit">
702 <primary sortas="b-xinit">xinit</primary>
703 </indexterm>
704 </listitem>
705 </varlistentry>
706
707 <varlistentry id="twm">
708 <term><command>twm</command></term>
709 <listitem>
710 <para>(Tab Window Manager) is a window manager included with the
711 <application>X Window System</application>.</para>
712 <indexterm zone="xfree86 twm">
713 <primary sortas="b-twm">twm</primary>
714 </indexterm>
715 </listitem>
716 </varlistentry>
717
718 <varlistentry id="xterm">
719 <term><command>xterm</command></term>
720 <listitem>
721 <para>is a terminal emulator for <application>X</application>.</para>
722 <indexterm zone="xfree86 xterm">
723 <primary sortas="b-xterm">xterm</primary>
724 </indexterm>
725 </listitem>
726 </varlistentry>
727
728 <varlistentry id="xwininfo">
729 <term><command>xwininfo</command></term>
730 <listitem>
731 <para>is a window information utility for
732 <application>X</application>.</para>
733 <indexterm zone="xfree86 xwininfo">
734 <primary sortas="b-xwininfo">xwininfo</primary>
735 </indexterm>
736 </listitem>
737 </varlistentry>
738
739 <varlistentry id="x11perf">
740 <term><command>x11perf</command></term>
741 <listitem>
742 <para>is an <application>X</application>11 server performance
743 test program.</para>
744 <indexterm zone="xfree86 x11perf">
745 <primary sortas="b-x11perf">x11perf</primary>
746 </indexterm>
747 </listitem>
748 </varlistentry>
749
750 <varlistentry id="xlsfonts">
751 <term><command>xlsfonts</command></term>
752 <listitem>
753 <para>is a program to list fonts available to the
754 <application>X</application> server.</para>
755 <indexterm zone="xfree86 xlsfonts">
756 <primary sortas="b-xlsfonts">xlsfonts</primary>
757 </indexterm>
758 </listitem>
759 </varlistentry>
760
761 <varlistentry id="xvidtune">
762 <term><command>xvidtune</command></term>
763 <listitem>
764 <para>is a video mode tuner for
765 <application>XFree86</application>.</para>
766 <indexterm zone="xfree86 xvidtune">
767 <primary sortas="b-xvidtune">xvidtune</primary>
768 </indexterm>
769 </listitem>
770 </varlistentry>
771
772 <varlistentry id="xload">
773 <term><command>xload</command></term>
774 <listitem>
775 <para> is a system load average display for
776 <application>X</application>.</para>
777 <indexterm zone="xfree86 xload">
778 <primary sortas="b-xload">xload</primary>
779 </indexterm>
780 </listitem>
781 </varlistentry>
782
783 <varlistentry id="xcalc">
784 <term><command>xcalc</command></term>
785 <listitem>
786 <para>is a scientific calculator for
787 <application>X</application>.</para>
788 <indexterm zone="xfree86 xcalc">
789 <primary sortas="b-xcalc">xcalc</primary>
790 </indexterm>
791 </listitem>
792 </varlistentry>
793
794 <varlistentry id="xclock">
795 <term><command>xclock</command></term>
796 <listitem>
797 <para>is a clock programs for <application>X</application>.</para>
798 <indexterm zone="xfree86 xclock">
799 <primary sortas="b-xclock">xclock</primary>
800 </indexterm>
801 </listitem>
802 </varlistentry>
803
804 <varlistentry id="oclock">
805 <term><command>oclock</command></term>
806 <listitem>
807 <para>is a clock programs for <application>X</application>.</para>
808 <indexterm zone="xfree86 oclock">
809 <primary sortas="b-oclock">oclock</primary>
810 </indexterm>
811 </listitem>
812 </varlistentry>
813
814 <varlistentry id="xmodmap">
815 <term><command>xmodmap</command></term>
816 <listitem>
817 <para>is a utility for modifying keymaps and pointer button
818 mappings in <application>X</application>.</para>
819 <indexterm zone="xfree86 xmodmap">
820 <primary sortas="b-xmodmap">xmodmap</primary>
821 </indexterm>
822 </listitem>
823 </varlistentry>
824
825 </variablelist>
826
827 </sect2>
828
829</sect1>
Note: See TracBrowser for help on using the repository browser.