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
RevLine 
[4ff4e9a]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;
[0aeb696]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> -->
[4ff4e9a]18]>
19
[e77976f]20<sect1 id="xorg7" xreflabel="Xorg-&xorg7-version;">
[4ff4e9a]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>
[190568b]29 </keywordset>
[4ff4e9a]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
[190568b]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
[4ff4e9a]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
[190568b]58 <xref linkend="pkgconfig"/></para>
[4ff4e9a]59
60 <bridgehead renderas="sect4">Optional</bridgehead>
[190568b]61 <para role="optional"><xref linkend="linux-pam"/></para>
[4ff4e9a]62
[1663c2b5]63 <para condition="html" role="usernotes">User Notes:
64 <ulink url='&blfs-wiki;/Xorg-&xorg7-version;'/></para>
[61af9e0e]65
[190568b]66 <bridgehead renderas="sect3">Xorg Download and Installation
[8222555]67 Instructions</bridgehead>
[4ff4e9a]68
[3735050]69 <para>With the modular build system, it is no longer possible to download
[190568b]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
[4ff4e9a]76 url="http://anduin.linuxfromscratch.org/sources/BLFS/svn/x/wget/"/>.</para>
77
[38362ef]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
[190568b]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
[8222555]93 disk space.</para>
94
[190568b]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
[18bcaf6]102 <ulink url="http://wiki.linuxfromscratch.org/blfs/wiki/Xorg-&xorg7-version;">
[190568b]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>
[4ff4e9a]109
[7f362fa]110 <para>Additionally, because of the large number of repetitive commands,
[8222555]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
[4ff4e9a]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
[190568b]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.
[4ff4e9a]143 The common installation prefix for <application>Xorg</application> on
[190568b]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
[8222555]152 current FHS guidelines.</para>
[190568b]153
154 <para>Choose your installation prefix, and set the
155 <envar>XORG_PREFIX</envar> variable with the following
[4ff4e9a]156 command:</para>
157
[c5c2654]158<screen><userinput>export XORG_PREFIX="<replaceable>&lt;/usr&gt;</replaceable>"</userinput></screen>
[4ff4e9a]159
[190568b]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>
[4ff4e9a]163
164<screen><userinput>export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc --localstatedir=/var"</userinput></screen>
165
[190568b]166 <note>
167 <para>If you've decided to use an alternate prefix, be sure to add
[c5c2654]168 <filename class="directory"><replaceable>&lt;/usr&gt;</replaceable>/lib/pkgconfig</filename>
[190568b]169 to your <envar>PKG_CONFIG_PATH</envar> variable.</para>
170 </note>
[8222555]171
[4ff4e9a]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
[51cfdb2a]187 url="http://xorg.freedesktop.org/releases/individual/proto/"/>.</para>
[4ff4e9a]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
[8222555]195<screen><userinput>./configure $XORG_CONFIG</userinput></screen>
[3735050]196
197 <para>Now as the <systemitem class="username">root</systemitem>
198 user:</para>
199
200<screen><userinput role="root">make install</userinput></screen>
[4ff4e9a]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
[190568b]214 needed utilities, not for the <application>Xorg</application>
[4ff4e9a]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
[51cfdb2a]220 url="http://xorg.freedesktop.org/releases/individual/util/"/>.</para>
[4ff4e9a]221
222 <sect3 role="installation">
223 <title>Installation of Xorg Utilities</title>
224
[190568b]225 <para>First install the <application>xorg-cf-files</application> package
[4ff4e9a]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;
[3735050]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>
[4ff4e9a]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;
[3735050]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>
[4ff4e9a]248
249
[190568b]250 <para>Finally, build the three remaining packages with the standard build
[4ff4e9a]251 commands:</para>
252
253
254<screen><userinput>./configure $XORG_CONFIG &amp;&amp;
[3735050]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>
[4ff4e9a]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
[51cfdb2a]278 url="http://xorg.freedesktop.org/releases/individual/lib/"/>.</para>
[4ff4e9a]279
280 <sect3>
281 <title>Meeting Library Dependencies</title>
282
[190568b]283 <para>These 17 libraries must be built first, in the order provided,
[8222555]284 to cover the dependencies of the other library packages:</para>
[4ff4e9a]285
[51cfdb2a]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>
[4ff4e9a]303
304 </sect3>
305
306 <sect3 role="installation">
307 <title>Installation of Xorg Libraries</title>
308
[190568b]309 <para>Install the libraries by running the following commands for each
[4ff4e9a]310 of the chosen packages:</para>
311
[3735050]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>
[4ff4e9a]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
[190568b]326 <filename class="directory">/usr</filename>, then no further
[4ff4e9a]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
[190568b]329 to satisfy the expected environment of several packages.
[4ff4e9a]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
[190568b]335 <para>As with other library directories, as the root user you must add
[4ff4e9a]336 <filename class="directory">$XORG_PREFIX/lib</filename> to
[190568b]337 <filename>/etc/ld.so.conf</filename> and execute
[4ff4e9a]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
[190568b]352 static data such as images and keymaps to the
[4ff4e9a]353 <application>Xorg</application> applications.</para>
354
355 <para><application>Xorg</application> Data packages can be downloaded
356 individually from <ulink
[51cfdb2a]357 url="http://xorg.freedesktop.org/releases/individual/data/"/>.</para>
[4ff4e9a]358
359 <sect3 role="installation">
360 <title>Installation of Xorg Data</title>
361
[c5b7d1fa]362 <para>First, configure the xbitmap package by running the following
363 command:</para>
[4ff4e9a]364
[69fdc017]365<screen><userinput>./configure $XORG_CONFIG</userinput></screen>
[3735050]366
[c5b7d1fa]367 <para>Now install as the <systemitem class="username">root</systemitem>
[3735050]368 user:</para>
369
370<screen><userinput role="root">make install</userinput></screen>
[4ff4e9a]371
[190568b]372 <note>
373 <para>At this point, you should continue to the applications
374 installation. After the applications installation has completed, you
[69fdc017]375 should return here and install the xcursor-themes and xkb-data
376 packages.</para>
[190568b]377 </note>
[4ff4e9a]378
[69fdc017]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
[c5b7d1fa]385 <para>Install the packages as the
386 <systemitem class="username">root</systemitem> user:</para>
[69fdc017]387
388<screen><userinput role="root">make install</userinput></screen>
389
[4ff4e9a]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
[190568b]401 <note>
[4a1f001]402 <para>You must install <xref linkend="mesalib"/> before you install
[190568b]403 Xorg Applications.</para>
404 </note>
[4ff4e9a]405
406 <para>The <application>Xorg</application> applications provide the
[0fa0330]407 expected applications available in previous X Window
[4ff4e9a]408 implementations.</para>
409
410 <para><application>Xorg</application> applications can be downloaded
[190568b]411 individually from <ulink
[51cfdb2a]412 url="http://xorg.freedesktop.org/releases/individual/app/"/>.</para>
[4ff4e9a]413
414 <sect3 role="installation">
415 <title>Installation of Xorg Applications</title>
416
[190568b]417 <para>Install the applications by running the following commands for each
[4ff4e9a]418 chosen package:</para>
419
420<screen><userinput>./configure $XORG_CONFIG &amp;&amp;
[3735050]421make</userinput></screen>
422
[190568b]423 <para>Now as the <systemitem class="username">root</systemitem>
[3735050]424 user:</para>
425
426<screen><userinput role="root">make install</userinput></screen>
[4ff4e9a]427
[190568b]428 <note>
429 <para>Remember to return to the data packages and install the
430 xcursor-themes and xkb-data packages.</para>
431 </note>
[8222555]432
433</sect3>
[3735050]434
435 <sect3 role="installation">
436
437 <title>Installation of luit</title>
438
[69fdc017]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
[3735050]445 <para>A patch is required to fix a race condition in
446 <application>luit</application> that was discovered shortly after
[190568b]447 release. Download the patch from
[e50cece]448 <ulink url="&patch-root;/luit-1.0.1-race-1.patch"/>.</para>
[3735050]449
450 <para>Install luit with the following commands:</para>
451
[69fdc017]452<screen><userinput>patch -Np1 -i luit-1.0.1-race-1.patch &amp;&amp;
[3735050]453./configure $XORG_CONFIG &amp;&amp;
454make</userinput></screen>
455
[190568b]456 <para>Now as the <systemitem class="username">root</systemitem>
[3735050]457 user:</para>
458
459<screen><userinput role="root">make install</userinput></screen>
[4ff4e9a]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
[51cfdb2a]477 url="http://xorg.freedesktop.org/releases/individual/font/"/>.</para>
[4ff4e9a]478
479 <sect3 role="installation">
480 <title>Installation of Xorg Fonts</title>
481
482 <para>Run the following commands for each package:</para>
483
[190568b]484 <note>
485 <para>You should install encodings and font-util before all
486 other font packages.</para>
487 </note>
[4ff4e9a]488
489
[3735050]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>
[4ff4e9a]496
[18bcaf6]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
[aebc72fa]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;
[db292f6]507ln -svn $XORG_PREFIX/lib/X11/fonts/TTF /usr/share/fonts/X11-TTF</userinput></screen>
[18bcaf6]508
[190568b]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
[4ff4e9a]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
[a6c2aff2]529 <ulink url="http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-1.0.2.tar.bz2"/>.</para>
[4ff4e9a]530
531 <sect3 role="installation">
532 <title>Installation of Xorg Server</title>
533
[190568b]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>
[4ff4e9a]539
[aebc72fa]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;' \
[c5b7d1fa]552 hw/xfree86/os-support/linux/lnx_agp.c</userinput></screen>
553<!-- End remove -->
554
[4ff4e9a]555 <para>Install the server by running the following commands:</para>
556
[51cfdb2a]557<screen><userinput>./configure $XORG_CONFIG \
[c5c2654]558 --with-mesa-source='<replaceable>&lt;/path/to&gt;</replaceable>/Mesa-&mesalib-version;' \
[51cfdb2a]559 --with-fontdir=$XORG_PREFIX/lib/X11/fonts \
[9879f11]560 --with-module-dir=$XORG_PREFIX/lib/X11/modules &amp;&amp;
[3735050]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>
[4ff4e9a]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
[51cfdb2a]584 url="http://xorg.freedesktop.org/releases/individual/driver/"/>.</para>
[4ff4e9a]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
[190568b]590 cannot be used with your hardware. For instance, do not build Sun drivers
[4ff4e9a]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
[190568b]596 <para>Install the drivers by running the following commands for each
[4ff4e9a]597 package:</para>
598
599<screen><userinput>./configure $XORG_CONFIG \
[9879f11]600 --with-xorg-module-dir=$XORG_PREFIX/lib/X11/modules &amp;&amp;
[3735050]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>
[4ff4e9a]607
608 </sect3>
609
610 </sect2>
611
612 <sect2 role="configuration" id='xorg7-config'>
613 <title>Configuring Xorg</title>
614
[190568b]615 <para>As the <systemitem class="username">root</systemitem> user ensure you
616 have executed <command>ldconfig</command> and
[4ff4e9a]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.
[190568b]623 This command will create a file, <filename>xorg.conf.new</filename>, in your
[4ff4e9a]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
[38362ef]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>
[4ff4e9a]681
[38362ef]682<screen role="root"><userinput>install -v -m755 -D ~/xorg.conf.new /etc/X11/xorg.conf</userinput></screen>
[4ff4e9a]683
[190568b]684 <para>As the <systemitem class="username">root</systemitem> user, create
685 <filename>.xinitrc</filename>:</para>
[4ff4e9a]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
[190568b]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>
[4ff4e9a]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
[190568b]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>,
[4ff4e9a]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
[190568b]736 <para>and a basic functional <application>X Window
737 System</application> should be displayed.</para>
[4ff4e9a]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
[190568b]750</sect1>
Note: See TracBrowser for help on using the repository browser.