source: x/installing/xorg7.xml@ c5b7d1fa

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

corrected svn ci collision

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

  • Property mode set to 100644
File size: 25.5 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
8<sect1 id="xorg7" xreflabel="X.org-&xorg7-version;">
9 <?dbhtml filename="xorg7.html"?>
10
11 <sect1info>
12 <othername>$LastChangedBy$</othername>
13 <date>$Date$</date>
14<!-- <keywordset>
15 <keyword role="package">X11R&xorg7-version;-src.tar</keyword>
16 <keyword role="ftpdir">Xorg7</keyword>
17 </keywordset>
18########## Need a way to fix this on the mirrors ##########
19##### Maybe a single tarball is the way to handle it ######
20-->
21
22
23 </sect1info>
24
25 <title>Xorg-&xorg7-version;</title>
26
27 <indexterm zone="xorg7">
28 <primary sortas="a-xorg7">Xorg</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to Xorg</title>
33
34 <para><application>Xorg</application> is a freely redistributable,
35 open-source implementation of the <application>X</application> Window
36 System. This system provides a client/server interface between display
37 hardware (the mouse, keyboard, and video displays) and the desktop
38 environment, while also providing both the windowing infrastructure and a
39 standardized application interface (API).</para>
40
41 <bridgehead renderas="sect3">Xorg Dependencies</bridgehead>
42
43 <bridgehead renderas="sect4">Required</bridgehead>
44 <para role="required"><xref linkend="fontconfig"/>,
45 <xref linkend="libpng"/>, and
46 <xref linkend="pkgconfig"/></para>
47
48 <bridgehead renderas="sect4">Optional</bridgehead>
49 <para role="optional"><xref linkend="linux-pam"/></para>
50
51 <para condition="html" role="usernotes">User Notes:
52 <ulink url='&blfs-wiki;/Xorg-&xorg7-version;'/></para>
53
54 <bridgehead renderas="sect3">Xorg Download and Installation
55 Instructions</bridgehead>
56
57 <para>With the modular build system, it is no longer possible to download
58 the entire package in a single file. In fact, there may be as many as
59 280 files that need to be fetched from the download location. To assist
60 with such a large task, it is strongly recommended to install
61 <xref linkend="wget"/> for downloading the needed files. A complete
62 <application>wget</application> script is available for each section at
63 <ulink
64 url="http://anduin.linuxfromscratch.org/sources/BLFS/svn/x/wget/"/>.</para>
65
66 <para>Given the number of packages available, deciding which packages you
67 need to install for your particular setup may seem a bit overwhelming at
68 first. Take a look at<ulink
69 url="http://lists.x.org/archives/xorg-modular/2005-November/000801.html">
70 this thread</ulink> to get an idea of what you will need. If you are
71 unsure, you should install all packages at the cost of extra
72 disk space.</para>
73
74 <note>
75 <para>The installed size of <application>Xorg</application> can
76 be reduced considerably by installing only the packages that you will
77 need and use. However, the BLFS book cannot account for all dependencies
78 and build options for individual <application>Xorg</application>
79 packages. The instructions assume that all packages have been built
80 from a particular group unless otherwise noted. A
81 <ulink url="http://wiki.linuxfromscratch.org/blfs/wiki/Xorg-&xorg7-version;">
82 wiki</ulink> page containing dependency information, for users who wish
83 to cut down on the installed size of <application>Xorg</application>, is
84 under development. You are encouraged to add to these
85 pages if you discover additional information that may be helpful to
86 other users.</para>
87 </note>
88
89 <para>Additionally, because of the large number of repetitive commands,
90 you are encouraged to script the build. For most sections, you can use
91 the following commands to compile and install all packages in your build
92 directory:</para>
93
94<screen>for package in *.tar.bz2
95do
96 packagedir=`echo $package | sed 's/.tar.bz2//'`
97 tar -xf $package &amp;&amp;
98 cd $packagedir &amp;&amp;
99 ./configure $XORG_CONFIG &amp;&amp;
100 make &amp;&amp;
101 make install
102 if [ $? -ne 0 ]; then
103 break #stop the build if the previous command failed
104 fi
105 cd .. &amp;&amp;
106 rm -rf $packagedir
107done 2&gt;&amp;1 | tee -a ../xorg-compile.log #log the entire loop</screen>
108
109 </sect2>
110
111 <sect2>
112 <title>Setting up the Xorg Build Environment</title>
113
114 <para>First, you'll need to create a working directory:</para>
115
116<screen><userinput>mkdir xc &amp;&amp;
117cd xc</userinput></screen>
118
119 <para>As with previous releases of the X Window System, it may be
120 desirable to install <application>Xorg</application> into an alternate
121 prefix. This is no longer common practice among Linux distributions.
122 The common installation prefix for <application>Xorg</application> on
123 Linux is <filename class="directory">/usr</filename>. There is no
124 standard alternate prefix, nor is there any exception in the current
125 revision of the Filesystem Hierarchy Standard for Release 7 of the X
126 Window System. Alan Coopersmith of Sun Microsystems, has recently
127 stated "At Sun, we were using
128 <filename class="directory">/usr/X11</filename> and plan to stick with
129 it." Only the <filename class="directory">/opt/*</filename> prefix or
130 the <filename class="directory">/usr</filename> prefix adhere to the
131 current FHS guidelines.</para>
132
133 <para>Choose your installation prefix, and set the
134 <envar>XORG_PREFIX</envar> variable with the following
135 command:</para>
136
137<screen><userinput>export XORG_PREFIX="<replaceable>[/usr]</replaceable>"</userinput></screen>
138
139 <para>Throughout these instructions, you will use the same three
140 <command>configure</command> switches for all of the packages. Create the
141 <envar>XORG_CONFIG</envar> variable to use for substitution:</para>
142
143<screen><userinput>export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc --localstatedir=/var"</userinput></screen>
144
145 <note>
146 <para>If you've decided to use an alternate prefix, be sure to add
147 <filename class="directory"><replaceable>[/usr]</replaceable>/lib/pkgconfig</filename>
148 to your <envar>PKG_CONFIG_PATH</envar> variable.</para>
149 </note>
150
151 </sect2>
152
153 <sect2>
154 <title>Xorg Protocol Headers</title>
155
156 <indexterm zone="xorg7">
157 <primary sortas="a-xorg7-proto">Xorg Protocol Headers</primary>
158 </indexterm>
159
160 <para>The <application>Xorg</application> protocol headers provide the
161 header files required to build the system, and to allow other
162 applications to build against the installed X Window system.</para>
163
164 <para><application>Xorg</application> Proto packages can be downloaded
165 individually from <ulink
166 url="http://xorg.freedesktop.org/releases/individual/proto/"/>.</para>
167
168 <sect3 role="installation">
169 <title>Installation of Xorg Protocol Headers</title>
170
171 <para>Install the <application>Xorg</application> protocol headers
172 by running the following commands for each package to be installed.</para>
173
174<screen><userinput>./configure $XORG_CONFIG</userinput></screen>
175
176 <para>Now as the <systemitem class="username">root</systemitem>
177 user:</para>
178
179<screen><userinput role="root">make install</userinput></screen>
180
181 </sect3>
182
183 </sect2>
184
185 <sect2>
186 <title>Xorg Utilities</title>
187
188 <indexterm zone="xorg7">
189 <primary sortas="a-xorg7-data">Xorg Utilities</primary>
190 </indexterm>
191
192 <para>The <application>Xorg</application> utility packages provide
193 needed utilities, not for the <application>Xorg</application>
194 installation itself, but for other applications that make use of
195 legacy X11R6 installation methods.</para>
196
197 <para><application>Xorg</application> Utility packages can be downloaded
198 individually from <ulink
199 url="http://xorg.freedesktop.org/releases/individual/util/"/>.</para>
200
201 <sect3 role="installation">
202 <title>Installation of Xorg Utilities</title>
203
204 <para>First install the <application>xorg-cf-files</application> package
205 with the following commands:</para>
206
207<screen><userinput>sed -i "s@/usr/X11R6@$XORG_PREFIX@" site.def &amp;&amp;
208sed -i "s@/usr/X11R6@$XORG_PREFIX@" X11.tmpl &amp;&amp;
209./configure $XORG_CONFIG --with-config-dir=$XORG_PREFIX/lib/X11/config &amp;&amp;
210make</userinput></screen>
211
212 <para>Now as the <systemitem class="username">root</systemitem>
213 user:</para>
214
215<screen><userinput role="root">make install</userinput></screen>
216
217 <para>Next, install the <application>Imake</application> package with
218 these commands:</para>
219
220<screen><userinput>./configure $XORG_CONFIG --with-config-dir=$XORG_PREFIX/lib/X11/config &amp;&amp;
221make</userinput></screen>
222
223 <para>Now as the <systemitem class="username">root</systemitem>
224 user:</para>
225
226<screen><userinput role="root">make install</userinput></screen>
227
228
229 <para>Finally, build the three remaining packages with the standard build
230 commands:</para>
231
232
233<screen><userinput>./configure $XORG_CONFIG &amp;&amp;
234make</userinput></screen>
235
236 <para>Now as the <systemitem class="username">root</systemitem>
237 user:</para>
238
239<screen><userinput role="root">make install</userinput></screen>
240
241 </sect3>
242
243 </sect2>
244
245 <sect2>
246 <title>Xorg Libraries</title>
247
248 <indexterm zone="xorg7">
249 <primary sortas="a-xorg7-lib">Xorg Libraries</primary>
250 </indexterm>
251
252 <para>The <application>Xorg</application> libraries provide library
253 routines that are used within all X Window applications.</para>
254
255 <para><application>Xorg</application> Library packages can be downloaded
256 individually from <ulink
257 url="http://xorg.freedesktop.org/releases/individual/lib/"/>.</para>
258
259 <sect3>
260 <title>Meeting Library Dependencies</title>
261
262 <para>These 17 libraries must be built first, in the order provided,
263 to cover the dependencies of the other library packages:</para>
264
265<screen>xtrans-1.0.0
266libXau-1.0.0
267libXdmcp-1.0.0
268libX11-1.0.0
269libXext-1.0.0
270libICE-1.0.0
271libSM-1.0.0
272libXt-1.0.0
273libXmu-1.0.0
274libXpm-3.5.4.2
275libXp-1.0.0
276libXfixes-3.0.1.2
277libXrender-0.9.0.2
278libfontenc-1.0.1
279libxkbfile-1.0.2
280libXprintUtil-1.0.1
281libXv-1.0.1</screen>
282
283 </sect3>
284
285 <sect3 role="installation">
286 <title>Installation of Xorg Libraries</title>
287
288 <para>Install the libraries by running the following commands for each
289 of the chosen packages:</para>
290
291<screen><userinput>./configure $XORG_CONFIG &amp;&amp;
292make</userinput></screen>
293
294 <para>Now as the <systemitem class="username">root</systemitem>
295 user:</para>
296
297<screen><userinput role="root">make install</userinput></screen>
298
299 </sect3>
300
301 <sect3 role="configuration">
302 <title>Configuration of Xorg Libraries</title>
303
304 <para>If you've chosen to install <application>Xorg</application> into
305 <filename class="directory">/usr</filename>, then no further
306 configuration is necessary and you can skip the rest of this section.
307 If you've opted for an alternate prefix, you should create two symlinks
308 to satisfy the expected environment of several packages.
309 Execute the following commands as the root user:</para>
310
311<screen role="root"><userinput>ln -sv $XORG_PREFIX/lib/X11 /usr/lib/X11 &amp;&amp;
312ln -sv $XORG_PREFIX/include/X11 /usr/include/X11</userinput></screen>
313
314 <para>As with other library directories, as the root user you must add
315 <filename class="directory">$XORG_PREFIX/lib</filename> to
316 <filename>/etc/ld.so.conf</filename> and execute
317 <command>/sbin/ldconfig</command>.</para>
318
319 </sect3>
320
321 </sect2>
322
323 <sect2>
324 <title>Xorg Data</title>
325
326 <indexterm zone="xorg7">
327 <primary sortas="a-xorg7-data">Xorg Data</primary>
328 </indexterm>
329
330 <para>The <application>Xorg</application> data packages provide
331 static data such as images and keymaps to the
332 <application>Xorg</application> applications.</para>
333
334 <para><application>Xorg</application> Data packages can be downloaded
335 individually from <ulink
336 url="http://xorg.freedesktop.org/releases/individual/data/"/>.</para>
337
338 <sect3 role="installation">
339 <title>Installation of Xorg Data</title>
340
341 <para>First, configure the xbitmap package by running the following
342 command:</para>
343
344<screen><userinput>./configure $XORG_CONFIG</userinput></screen>
345
346 <para>Now install as the <systemitem class="username">root</systemitem>
347 user:</para>
348
349<screen><userinput role="root">make install</userinput></screen>
350
351 <note>
352 <para>At this point, you should continue to the applications
353 installation. After the applications installation has completed, you
354 should return here and install the xcursor-themes and xkb-data
355 packages.</para>
356 </note>
357
358 <para>Compile the xcursor-themes and xkb-data packages with the
359 following commands:</para>
360
361<screen><userinput>./configure $XORG_CONFIG &amp;&amp;
362make</userinput></screen>
363
364 <para>Install the packages as the
365 <systemitem class="username">root</systemitem> user:</para>
366
367<screen><userinput role="root">make install</userinput></screen>
368
369 </sect3>
370
371 </sect2>
372
373 <sect2>
374 <title>Xorg Applications</title>
375
376 <indexterm zone="xorg7">
377 <primary sortas="a-xorg7-app">Xorg Applications</primary>
378 </indexterm>
379
380 <note>
381 <para>You must install <xref linkend="mesalib"/> before you install
382 Xorg Applications.</para>
383 </note>
384
385 <para>The <application>Xorg</application> applications provide the
386 expected applications available in previous X Window
387 implementations.</para>
388
389 <para><application>Xorg</application> applications can be downloaded
390 individually from <ulink
391 url="http://xorg.freedesktop.org/releases/individual/app/"/>.</para>
392
393 <sect3 role="installation">
394 <title>Installation of Xorg Applications</title>
395
396 <para>Install the applications by running the following commands for each
397 chosen package:</para>
398
399<screen><userinput>./configure $XORG_CONFIG &amp;&amp;
400make</userinput></screen>
401
402 <para>Now as the <systemitem class="username">root</systemitem>
403 user:</para>
404
405<screen><userinput role="root">make install</userinput></screen>
406
407 <note>
408 <para>Remember to return to the data packages and install the
409 xcursor-themes and xkb-data packages.</para>
410 </note>
411
412</sect3>
413
414 <sect3 role="installation">
415
416 <title>Installation of luit</title>
417
418 <note>
419 <para>The luit package should not be compiled at this point. You
420 should install the luit application after the fonts have been
421 installed.</para>
422 </note>
423
424 <para>A patch is required to fix a race condition in
425 <application>luit</application> that was discovered shortly after
426 release. Download the patch from
427 <ulink url="&patch-root;/luit-1.0.1-race-1.patch"/>.</para>
428
429 <para>Install luit with the following commands:</para>
430
431<screen><userinput>patch -Np1 -i luit-1.0.1-race-1.patch &amp;&amp;
432./configure $XORG_CONFIG &amp;&amp;
433make</userinput></screen>
434
435 <para>Now as the <systemitem class="username">root</systemitem>
436 user:</para>
437
438<screen><userinput role="root">make install</userinput></screen>
439
440 </sect3>
441
442 </sect2>
443
444 <sect2>
445 <title>Xorg Fonts</title>
446
447 <indexterm zone="xorg7">
448 <primary sortas="a-xorg7-fonts">Xorg Fonts</primary>
449 </indexterm>
450
451 <para>The <application>Xorg</application> font packages provide
452 needed fonts to the <application>Xorg</application> applications.</para>
453
454 <para><application>Xorg</application> Font packages can be downloaded
455 individually from <ulink
456 url="http://xorg.freedesktop.org/releases/individual/font/"/>.</para>
457
458 <sect3 role="installation">
459 <title>Installation of Xorg Fonts</title>
460
461 <para>Run the following commands for each package:</para>
462
463 <note>
464 <para>You should install encodings and font-util before all
465 other font packages.</para>
466 </note>
467
468
469<screen><userinput>./configure $XORG_CONFIG</userinput></screen>
470
471 <para>Now as the <systemitem class="username">root</systemitem>
472 user:</para>
473
474<screen><userinput role="root">make install</userinput></screen>
475
476 <para>When all of the fonts have been installed, the system must be
477 configured so that <application>Fontconfig</application> can find the
478 TrueType fonts since they are outside of the default search path of
479 <filename class="directory">/usr/share/fonts</filename>. Make symlinks
480 to the <application>Xorg</application> TrueType font directories by
481 running the following commands as the
482 <systemitem class="username">root</systemitem> user:</para>
483
484<screen><userinput role="root">ln -svn $XORG_PREFIX/lib/X11/fonts/OTF /usr/share/fonts/X11-OTF &amp;&amp;
485ln -svn $XORG_PREFIX/lib/X11/fonts/TTF /usr/share/fonts/X11/TTF</userinput></screen>
486
487 <note>
488 <para>If you haven't done so, and intend to install
489 <application>luit</application>, do so now.</para>
490 </note>
491
492 </sect3>
493
494 </sect2>
495
496 <sect2>
497 <title>Xorg Server</title>
498
499 <indexterm zone="xorg7">
500 <primary sortas="a-xorg7-server">Xorg Server</primary>
501 </indexterm>
502
503 <para>The <application>Xorg</application> Server is the core
504 of the X Window system.</para>
505
506 <para>The Xorg Server is a single download. Get it from
507 <ulink url="http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-1.0.2.tar.bz2"/>.</para>
508
509 <sect3 role="installation">
510 <title>Installation of Xorg Server</title>
511
512 <note>
513 <para>You must have the <application>Mesa</application> source
514 directory available when building the
515 <application>Xorg-server</application>.</para>
516 </note>
517
518<!-- To be removed if/when proposed glibc patch is added to LFS SVN-->
519 <para>Execute the following sed command to work around a broken
520 <application>glibc</application> header file:</para>
521
522<screen><userinput>sed -i.bak '/CONFIG_H/i #include &lt;linux/types.h&gt;' \
523 hw/xfree86/os-support/linux/lnx_agp.c</userinput></screen>
524<!-- End remove -->
525
526 <para>Install the server by running the following commands:</para>
527
528<screen><userinput>./configure $XORG_CONFIG \
529 --with-mesa-source='<replaceable>[/path/to]</replaceable>/Mesa-&mesalib-version;' \
530 --with-fontdir=$XORG_PREFIX/lib/X11/fonts \
531 --with-module-dir=$XORG_PREFIX/lib/X11/modules &amp;&amp;
532make</userinput></screen>
533
534 <para>Now as the <systemitem class="username">root</systemitem>
535 user:</para>
536
537<screen><userinput role="root">make install</userinput></screen>
538
539 </sect3>
540
541 </sect2>
542
543 <sect2>
544 <title>Xorg Drivers</title>
545
546 <indexterm zone="xorg7">
547 <primary sortas="a-xorg7-driver">Xorg Drivers</primary>
548 </indexterm>
549
550 <para>The <application>Xorg</application> drivers provide the means
551 for the xserver to take advantage of installed hardware.</para>
552
553 <para><application>Xorg</application> Driver packages can be downloaded
554 individually from <ulink
555 url="http://xorg.freedesktop.org/releases/individual/driver/"/>.</para>
556
557 <sect3 role="installation">
558 <title>Installation of Xorg Drivers</title>
559
560 <warning><para>It is very important not to build display drivers that
561 cannot be used with your hardware. For instance, do not build Sun drivers
562 for an x86 PC as the Sun drivers will expect to see SPARC symbols
563 exported from the kernel. Failure to follow this warning will result
564 in a display lockup, which requires a hard reboot, when configuring
565 <application>Xorg</application> for the first time.</para></warning>
566
567 <para>Install the drivers by running the following commands for each
568 package:</para>
569
570<screen><userinput>./configure $XORG_CONFIG \
571 --with-xorg-module-dir=$XORG_PREFIX/lib/X11/modules &amp;&amp;
572make</userinput></screen>
573
574 <para>Now as the <systemitem class="username">root</systemitem>
575 user:</para>
576
577<screen><userinput role="root">make install</userinput></screen>
578
579 </sect3>
580
581 </sect2>
582
583 <sect2 role="configuration" id='xorg7-config'>
584 <title>Configuring Xorg</title>
585
586 <para>As the <systemitem class="username">root</systemitem> user ensure you
587 have executed <command>ldconfig</command> and
588 create the <filename>xorg.conf</filename> file with:</para>
589
590<screen><userinput>cd ~ &amp;&amp;
591Xorg -configure</userinput></screen>
592
593 <para>The screen will go black and you may hear some clicking of the monitor.
594 This command will create a file, <filename>xorg.conf.new</filename>, in your
595 home directory.</para>
596
597 <indexterm zone="xorg7 xorg7-config">
598 <primary sortas="e-etc-X11-xorg-conf">/etc/X11/xorg.conf</primary>
599 </indexterm>
600
601 <para>Edit <filename>xorg.conf.new</filename> to suit your system. The
602 details of the file are located in the xorg.conf man page. Some things
603 you may want to do are:</para>
604
605 <itemizedlist>
606 <listitem>
607 <para>Section "Files". Change the order of the font paths searched.
608 You may want to put 100dpi fonts ahead of 75dpi fonts if your system
609 normally comes up closer to 100 dots per inch. You may want to remove
610 some font directories completely.</para>
611 </listitem>
612 <listitem>
613 <para>Section "Module". If you are going to install NVidia
614 drivers, remove the "dri" line.</para>
615 </listitem>
616 <listitem>
617 <para>Sections "InputDevice". You may want to change the
618 keyboard autorepeat rate by adding
619 <option>Option "Autorepeat" "250 30"</option>.</para>
620 </listitem>
621 <listitem>
622 <para>Section "Monitor". Specify the <option>VertRefresh</option>
623 and <option>HorizSync</option> values if the system does not
624 automatically detect the monitor and its values.</para>
625 </listitem>
626 <listitem>
627 <para>Section "Device". You may want to set some of the options
628 available for your selected video driver. A description of the driver
629 parameters is in the man page for your driver.</para>
630 </listitem>
631 <listitem><para>Section "Screen". Add a DefaultDepth statement such as:
632 <option>DefaultDepth 24</option>. In the SubSection for your
633 default depth, add a modes line such as:
634 <option>Modes "1600x1200" "1280x1024" "1024x768"</option>. The first
635 mode listed will normally be the starting resolution.</para>
636 </listitem>
637 </itemizedlist>
638
639 <para>Test the system with:</para>
640
641<screen><userinput>X -config ~/xorg.conf.new</userinput></screen>
642
643 <para>You will only get a gray background with an X-shaped mouse cursor,
644 but it confirms the system is working. Exit with
645 <keycap>Control+Alt+Backspace</keycap>. If the system does not work, take
646 a look at <filename>/var/log/Xorg.0.log</filename> to see what went
647 wrong.</para>
648
649 <para>As the <systemitem class="username">root</systemitem> user, move
650 the configuration file to its final location:</para>
651
652<screen role="root"><userinput>mv ~/xorg.conf.new /etc/X11/xorg.conf</userinput></screen>
653
654 <para>As the <systemitem class="username">root</systemitem> user, create
655 <filename>.xinitrc</filename>:</para>
656
657<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
658<literal># Begin .xinitrc file
659xterm -g 80x40+0+0 &amp;
660xclock -g 100x100-0+0 &amp;
661twm</literal>
662EOF</userinput></screen>
663
664 <para>This provides an initial screen with a small clock that is
665 managed by a simple window manager, Tab Window Manager. For details of
666 <command>twm</command>, see the man page.</para>
667
668 <note>
669 <para>The above file is the default configuration for Xorg. Xorg's
670 distribution no longer includes <command>xterm</command>, and as such the
671 <command>startx</command> command will fail if you have not yet
672 installed <xref linkend="xterm2"/>.</para>
673 </note>
674
675 <indexterm zone="xorg7 xorg7-config">
676 <primary sortas="e-AA.xinitrc">~/.xinitrc</primary>
677 </indexterm>
678
679 <note>
680 <para>When needed, <application>Xorg</application> creates the directory
681 <filename class='directory'>/tmp/.ICE-unix</filename> if it does not
682 exist. If this directory is not owned by
683 <systemitem class="username">root</systemitem>,
684 <application>Xorg</application> delays startup by a few seconds and also
685 appends a warning to the logfile. This also affects startup of other
686 applications. To improve performance, it is advisable to manually create
687 the directory before <application>Xorg</application> uses it. Add the
688 file creation to <filename>/etc/sysconfig/createfiles</filename> that is
689 sourced by the <filename>/etc/rc.d/init.d/cleanfs</filename> startup
690 script.</para>
691
692<screen role="root"><userinput>cat &gt;&gt; /etc/sysconfig/createfiles &lt;&lt; "EOF"
693<literal>/tmp/.ICE-unix dir 1777 root root</literal>
694EOF</userinput></screen>
695 </note>
696
697 <indexterm zone="xorg7 xorg7-config">
698 <primary
699 sortas="e-etc-sysconfig-createfiles">/etc/sysconfig/createfiles</primary>
700 </indexterm>
701
702 <para>Start <application>X</application> with:</para>
703
704<screen><userinput>startx</userinput></screen>
705
706 <para>and a basic functional <application>X Window
707 System</application> should be displayed.</para>
708
709 <para>At this point, you should check out <xref linkend='x-setup'/> for
710 the necessary configuration to make <application>X</application> fully
711 functional. Additionally, you can have a look at <xref linkend='x-config'/>
712 for information on fine tuning your <application>X</application>
713 configuration.</para>
714
715 <para>For a list of the package contents and a description of the commands,
716 see the sections in the <xref linkend='xfree86-contents'/>.</para>
717
718 </sect2>
719
720</sect1>
Note: See TracBrowser for help on using the repository browser.