source: x/installing/xorg7.xml@ 84da85a

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 84da85a was 0aeb696, checked in by Randy McMurchy <randy@…>, 18 years ago

Added a comment to each file that may need a mention of a test suite added to it, this allows closing of bug #1697

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

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