source: x/installing/xfree86.xml@ da4aff6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.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 da4aff6 was da4aff6, checked in by Randy McMurchy <randy@…>, 20 years ago

Removed erroneously added optional dependency 'pkgconfig' from various packages

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

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