source: x/installing/xfree86.xml@ 6e34843

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 6e34843 was 6e34843, checked in by Randy McMurchy <randy@…>, 19 years ago

Added a command to create an X Render pkg-config file to the XFree86 instructions, also created notes in the Metacity and cairo instructions to ensure this file exists

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