[feeb99a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[feeb99a] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8d09223] | 7 | <!ENTITY xorg-download-http " ">
|
---|
[197d9d4] | 8 | <!ENTITY xorg-download-ftp "ftp://ftp.opengroup.org/pub/x.org/pub/X11R&xorg-version;/src-single/X11R&xorg-version;-src.tar.bz2">
|
---|
[b57fc39] | 9 | <!ENTITY xorg-md5sum "8131cd7ea1e4566e6e05c438a93fcfe1">
|
---|
| 10 | <!ENTITY xorg-size "43 MB">
|
---|
[b1fc792b] | 11 | <!ENTITY xorg-buildsize "839 MB">
|
---|
| 12 | <!ENTITY xorg-time "10.34 SBU">
|
---|
[feeb99a] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="xorg" xreflabel="X.org-&xorg-version;">
|
---|
[36c3ba1] | 16 | <?dbhtml filename="xorg.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[76a39aa] | 21 | <keywordset>
|
---|
| 22 | <keyword role="package">X11R&xorg-version;-src.tar</keyword>
|
---|
[3f5f915] | 23 | <keyword role="ftpdir">Xorg</keyword>
|
---|
[76a39aa] | 24 | </keywordset>
|
---|
[36c3ba1] | 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>Xorg-&xorg-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="xorg">
|
---|
| 30 | <primary sortas="a-xorg">Xorg</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to Xorg</title>
|
---|
| 35 |
|
---|
| 36 | <note>
|
---|
| 37 | <para>There are two packages in BLFS that implement the <application>X
|
---|
| 38 | Window System</application>: <application>Xorg</application> and
|
---|
| 39 | <application>XFree86</application>. These packages are quite similar.
|
---|
| 40 | In fact, the base system of <application>Xorg</application> is
|
---|
| 41 | <application>XFree86</application>-4.4.0RC2. The primary difference as
|
---|
| 42 | of this writing is the license provisions of the packages. For someone
|
---|
| 43 | building a package for their own use, these issues are not significant.
|
---|
| 44 | Most large commercial distributions have decided to use the
|
---|
| 45 | <application>Xorg</application> package, but several still use
|
---|
| 46 | <application>XFree86</application>.</para>
|
---|
| 47 |
|
---|
| 48 | <para>A second reason for the forking of <application>X</application>
|
---|
| 49 | packages is the stated goals of the developers. Some developers were
|
---|
| 50 | unhappy with the administration and progress of
|
---|
| 51 | <application>XFree86</application>. X.org's future plans include
|
---|
| 52 | significant improvements to the internals of the system and more frequent
|
---|
| 53 | releases.</para>
|
---|
| 54 |
|
---|
| 55 | <para><application>XFree86</application> continues to be a solid,
|
---|
| 56 | conservative application with excellent driver support.</para>
|
---|
| 57 |
|
---|
| 58 | <para>Both <application>Xorg</application> and
|
---|
| 59 | <application>XFree86</application> can be installed in the same way,
|
---|
| 60 | but this section will provide a slightly different and more current
|
---|
| 61 | variation for installation.</para>
|
---|
| 62 | </note>
|
---|
| 63 |
|
---|
| 64 | <para><application>Xorg</application> is a freely redistributable open-source
|
---|
| 65 | implementation of the <application>X</application> Window System. This
|
---|
| 66 | application provides a client/server interface between display hardware (the
|
---|
| 67 | mouse, keyboard, and video displays) and the desktop environment, while also
|
---|
| 68 | providing both the windowing infrastructure and a standardized application
|
---|
| 69 | interface (API).</para>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 72 | <itemizedlist spacing="compact">
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>Download (HTTP): <ulink url="&xorg-download-http;"/></para>
|
---|
| 75 | </listitem>
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>Download (FTP): <ulink url="&xorg-download-ftp;"/></para>
|
---|
| 78 | </listitem>
|
---|
| 79 | <listitem>
|
---|
| 80 | <para>Download MD5 sum: &xorg-md5sum;</para>
|
---|
| 81 | </listitem>
|
---|
| 82 | <listitem>
|
---|
| 83 | <para>Download size: &xorg-size;</para>
|
---|
| 84 | </listitem>
|
---|
| 85 | <listitem>
|
---|
| 86 | <para>Estimated disk space required: &xorg-buildsize;</para>
|
---|
| 87 | </listitem>
|
---|
| 88 | <listitem>
|
---|
| 89 | <para>Estimated build time: &xorg-time;</para>
|
---|
| 90 | </listitem>
|
---|
| 91 | </itemizedlist>
|
---|
| 92 |
|
---|
[10bffdc8] | 93 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 94 | <itemizedlist spacing="compact">
|
---|
| 95 | <listitem>
|
---|
| 96 | <para>Required patch: <ulink
|
---|
| 97 | url="&patch-root;/X11R&xorg-version;-src-gcc4-1.patch"/></para>
|
---|
| 98 | </listitem>
|
---|
| 99 | </itemizedlist>
|
---|
| 100 |
|
---|
[7d7bb83] | 101 | <bridgehead renderas="sect3">Xorg Dependencies</bridgehead>
|
---|
[36c3ba1] | 102 |
|
---|
| 103 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[76a39aa] | 104 | <para role="required"><xref linkend="libpng"/> and
|
---|
[36c3ba1] | 105 | <xref linkend="fontconfig"/></para>
|
---|
| 106 |
|
---|
| 107 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[76a39aa] | 108 | <para role="optional"><xref linkend="linux-pam"/></para>
|
---|
[36c3ba1] | 109 |
|
---|
| 110 | <bridgehead renderas="sect3">Download Instructions</bridgehead>
|
---|
| 111 |
|
---|
| 112 | <para>As an alternative to downloading the entire source tree in a single
|
---|
| 113 | file, there are several files that need to be fetched from the download
|
---|
| 114 | location (directory /pub/x.org/pub/X11R&xorg-version;/src/):</para>
|
---|
| 115 |
|
---|
| 116 | <itemizedlist spacing='compact'>
|
---|
| 117 | <listitem>
|
---|
| 118 | <para><filename>X11R&xorg-version;-src1.tar.gz</filename></para>
|
---|
| 119 | </listitem>
|
---|
| 120 | <listitem>
|
---|
| 121 | <para><filename>X11R&xorg-version;-src2.tar.gz</filename></para>
|
---|
| 122 | </listitem>
|
---|
| 123 | <listitem>
|
---|
| 124 | <para><filename>X11R&xorg-version;-src3.tar.gz</filename></para>
|
---|
| 125 | </listitem>
|
---|
| 126 | <listitem>
|
---|
| 127 | <para><filename>X11R&xorg-version;-src4.tar.gz</filename></para>
|
---|
| 128 | </listitem>
|
---|
| 129 | <listitem>
|
---|
| 130 | <para><filename>X11R&xorg-version;-src5.tar.gz</filename></para>
|
---|
| 131 | </listitem>
|
---|
| 132 | <listitem>
|
---|
| 133 | <para><filename>X11R&xorg-version;-src6.tar.gz</filename></para>
|
---|
| 134 | </listitem>
|
---|
| 135 | <listitem>
|
---|
| 136 | <para><filename>X11R&xorg-version;-src7.tar.gz</filename></para>
|
---|
| 137 | </listitem>
|
---|
| 138 | </itemizedlist>
|
---|
| 139 |
|
---|
| 140 | <para>The first package contains the <application>Xorg</application>
|
---|
| 141 | libraries and support programs, the second contains standard
|
---|
| 142 | <application>X</application> programs, the third contains the
|
---|
| 143 | <application>X</application> server, the fourth and fifth are fonts,
|
---|
| 144 | the sixth is normal documentation, and the seventh is hardcopy
|
---|
| 145 | documentation.</para>
|
---|
| 146 |
|
---|
| 147 | <para>To check your file for integrity, download the
|
---|
| 148 | <filename>md5sums</filename> file. Then:</para>
|
---|
| 149 |
|
---|
| 150 | <screen><userinput>md5sum -c md5sums</userinput></screen>
|
---|
| 151 |
|
---|
| 152 | <para>The package (or all seven packages) should give an OK status.</para>
|
---|
| 153 |
|
---|
| 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2 role="kernel" id='xorg-kernel'>
|
---|
| 157 | <title>Kernel Configuration</title>
|
---|
| 158 |
|
---|
| 159 | <indexterm zone="xorg xorg-kernel">
|
---|
| 160 | <primary sortas="d-Xorg">Xorg</primary>
|
---|
| 161 | </indexterm>
|
---|
| 162 |
|
---|
| 163 | <para>If you have an Intel P6 (Pentium Pro, Pentium II and later), it is
|
---|
| 164 | recommended that you compile MTRR (Memory Type Range Registers) support
|
---|
| 165 | into the kernel. The kernel can map Cyrix and AMD CPUs to the MTRR
|
---|
| 166 | interface, so selecting this option is useful for those processors also.
|
---|
| 167 | This option is found in the "Processor type and features" menu. It can
|
---|
| 168 | increase performance of image write operations 2.5 times or more on PCI or
|
---|
| 169 | AGP video cards.</para>
|
---|
| 170 |
|
---|
[9ec95e7] | 171 | <para>In the "Character Devices" section of the "Device Drivers" menu,
|
---|
| 172 | enable AGP Support and select the chipset support on your motherboard. If
|
---|
| 173 | you do not know the chipset, you may select all the chip types at the
|
---|
| 174 | expense of extra kernel size. You can usually determine your motherboard's
|
---|
| 175 | chipset by running the command <command>lspci</command>, a program from the
|
---|
| 176 | <xref linkend="pciutils"/> package.</para>
|
---|
[36c3ba1] | 177 |
|
---|
| 178 | <para>In the "Character Devices" section, <emphasis>disable</emphasis>
|
---|
| 179 | Direct Rendering Manager unless you have a Direct Rendering Infrastructure
|
---|
| 180 | (DRI) supported video card. A complete list of DRI supported video cards
|
---|
| 181 | can be found at <ulink url="http://dri.sourceforge.net" /> in the "Status"
|
---|
| 182 | section. Currently, supported cards include those from 3dfx (Voodoo,
|
---|
| 183 | Banshee), 3Dlabs, ATI (Rage Pro, Rage 128, Radeon 7X00, Radeon 2), Intel
|
---|
| 184 | (i810, i815), and Matrox (G200, G400, G450).</para>
|
---|
| 185 |
|
---|
| 186 | <para>Additionally NVidia provides their own closed source binary drivers,
|
---|
| 187 | which do not make use of DRI. If you intend to use these drivers, do not
|
---|
| 188 | enable DRI.</para>
|
---|
| 189 |
|
---|
| 190 | <para>If you made any changes to the kernel configuration, recompile and
|
---|
| 191 | install the new kernel.</para>
|
---|
| 192 |
|
---|
| 193 | </sect2>
|
---|
| 194 |
|
---|
| 195 | <sect2 role="installation">
|
---|
| 196 | <title>Installation of Xorg</title>
|
---|
| 197 |
|
---|
[10bffdc8] | 198 | <sect3>
|
---|
| 199 | <title>Patching to be Compatible with GCC-4.x</title>
|
---|
| 200 |
|
---|
| 201 | <para>The <application>Xorg</application> sources must be patched in
|
---|
| 202 | order to be compiled using <application>GCC</application>-4.x. Install
|
---|
| 203 | the following patch:</para>
|
---|
| 204 |
|
---|
| 205 | <screen><userinput>patch -Np1 -i ../X11R&xorg-version;-src-gcc4-1.patch</userinput></screen>
|
---|
| 206 |
|
---|
| 207 | </sect3>
|
---|
| 208 |
|
---|
[36c3ba1] | 209 | <sect3>
|
---|
| 210 | <title>Suppressing Xprint-related Modification to '/etc'</title>
|
---|
| 211 |
|
---|
| 212 | <para><application>Xorg</application> insists on putting
|
---|
| 213 | its boot and profile scripts into the <filename
|
---|
| 214 | class="directory">/etc</filename> directory even if specifically told
|
---|
| 215 | not to compile anything Xprint server or client related (see
|
---|
| 216 | <filename>host.def</filename> below). The following command will
|
---|
| 217 | suppress any such modifications:</para>
|
---|
| 218 |
|
---|
| 219 | <screen><userinput>sed -i '/^SUBDIRS =/s/ etc$//' programs/Xserver/Xprint/Imakefile</userinput></screen>
|
---|
| 220 |
|
---|
| 221 | </sect3>
|
---|
| 222 |
|
---|
| 223 | <sect3>
|
---|
| 224 | <title>Setting Up a Shadow Directory</title>
|
---|
| 225 |
|
---|
| 226 | <para>When building <application>Xorg</application>, you should create
|
---|
| 227 | a shadow directory of symbolic links for the compiled code. To do that,
|
---|
| 228 | first make <command>lndir</command>. Starting from the
|
---|
| 229 | <filename class='directory'>xc</filename> directory:</para>
|
---|
| 230 |
|
---|
| 231 | <screen><userinput>pushd config/util &&
|
---|
| 232 | make -f Makefile.ini lndir</userinput></screen>
|
---|
| 233 |
|
---|
| 234 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 235 | user:</para>
|
---|
| 236 |
|
---|
| 237 | <screen role="root"><userinput>cp -v lndir /usr/bin/</userinput></screen>
|
---|
| 238 |
|
---|
[4c288b0] | 239 | <para>And back as an unprivileged user:</para>
|
---|
[36c3ba1] | 240 |
|
---|
| 241 | <screen><userinput>popd</userinput></screen>
|
---|
| 242 |
|
---|
| 243 | <para>Now create the shadow tree:</para>
|
---|
| 244 |
|
---|
| 245 | <screen><userinput>mkdir ../xcbuild &&
|
---|
[feeb99a] | 246 | cd ../xcbuild &&
|
---|
[36c3ba1] | 247 | lndir ../xc</userinput></screen>
|
---|
| 248 |
|
---|
| 249 | </sect3>
|
---|
| 250 |
|
---|
| 251 | <sect3>
|
---|
| 252 | <title>Creating 'host.def'</title>
|
---|
| 253 |
|
---|
| 254 | <para>The next step is to create the
|
---|
| 255 | <filename>config/cf/host.def</filename> file. The documentation for
|
---|
| 256 | <application>Xorg</application> indicates that the application will
|
---|
| 257 | build without a <filename>host.def</filename> file, but the included
|
---|
| 258 | libraries for <application>Fontconfig</application> and
|
---|
| 259 | <application>FreeType2</application> do not build properly on a base
|
---|
| 260 | LFS system. Therefore, you must specify that these libraries, as well
|
---|
| 261 | as others, should be imported from the system.</para>
|
---|
| 262 |
|
---|
| 263 | <note>
|
---|
| 264 | <para><filename>config/cf/host.def</filename> is a C file, not a
|
---|
| 265 | shell script. Ensure the comments delimited by /* ... */ are balanced
|
---|
| 266 | when modifying the file.</para>
|
---|
| 267 | </note>
|
---|
| 268 |
|
---|
| 269 | <screen><userinput>cat > config/cf/host.def << "EOF"
|
---|
| 270 | <literal>/* Begin Xorg host.def file */
|
---|
| 271 |
|
---|
[feeb99a] | 272 | /* System Related Information. If you read and configure only one
|
---|
[36c3ba1] | 273 | * section then it should be this one. The Intel architecture defaults
|
---|
| 274 | * are set for a i686 and higher. Axp is for the Alpha architecture
|
---|
| 275 | * and Ppc is for the Power PC. AMD64 is for the Opteron processor.
|
---|
| 276 | * Note that there have been reports that the Ppc optimization line
|
---|
| 277 | * causes segmentation faults during build. If that happens, try
|
---|
[47603ac1] | 278 | * building without the DefaultGcc2PpcOpt line. ***********/
|
---|
[36c3ba1] | 279 |
|
---|
[a592e42] | 280 | /* #define DefaultGcc2i386Opt -O2 -fno-strength-reduce \
|
---|
| 281 | -fno-strict-aliasing -march=i686 */
|
---|
| 282 | /* #define DefaultGcc2AMD64Opt -O2 -fno-strength-reduce \
|
---|
| 283 | -fno-strict-aliasing */
|
---|
| 284 | /* #define DefaultGcc2AxpOpt -O2 -mcpu=ev6 */
|
---|
| 285 | /* #define DefaultGcc2PpcOpt -O2 -mcpu=750 */
|
---|
[feeb99a] | 286 |
|
---|
[7461475] | 287 | #define HasFreetype2 YES
|
---|
| 288 | #define HasFontconfig YES
|
---|
| 289 | #define HasExpat YES
|
---|
| 290 | #define HasLibpng YES
|
---|
| 291 | #define HasZlib YES
|
---|
[feeb99a] | 292 |
|
---|
[9805d0f] | 293 | /*
|
---|
| 294 | * Comment out the following define if you would prefer to install the
|
---|
| 295 | * fonts into /usr/X11R6/lib/X11/fonts. /usr/share/fonts is in
|
---|
| 296 | * fontconfig's default font search path.
|
---|
| 297 | */
|
---|
| 298 |
|
---|
| 299 | #define FontDir /usr/share/fonts
|
---|
| 300 |
|
---|
[feeb99a] | 301 | /*
|
---|
[36c3ba1] | 302 | * Which drivers to build. When building a static server, each of
|
---|
| 303 | * these will be included in it. When building the loadable server
|
---|
[47603ac1] | 304 | * each of these modules will be built.
|
---|
[feeb99a] | 305 | *
|
---|
| 306 | #define XF86CardDrivers mga glint nv tga s3virge sis rendition \
|
---|
| 307 | neomagic i740 tdfx savage \
|
---|
| 308 | cirrus vmware tseng trident chips apm \
|
---|
| 309 | GlideDriver fbdev i128 \
|
---|
[5c8344d] | 310 | ati DevelDrivers ark \
|
---|
[47603ac1] | 311 | cyrix siliconmotion vesa vga \
|
---|
| 312 | XF86OSCardDrivers XF86ExtraCardDrivers
|
---|
[feeb99a] | 313 | */
|
---|
| 314 |
|
---|
| 315 | /*
|
---|
| 316 | * Select the XInput devices you want by uncommenting this.
|
---|
| 317 | *
|
---|
| 318 | #define XInputDrivers mouse keyboard acecad calcomp citron \
|
---|
| 319 | digitaledge dmc dynapro elographics \
|
---|
[47603ac1] | 320 | microtouch mutouch penmount spaceorb \
|
---|
| 321 | summa wacom void magictouch aiptek
|
---|
[feeb99a] | 322 | */
|
---|
| 323 |
|
---|
| 324 | /* Most installs will only need this */
|
---|
| 325 |
|
---|
| 326 | #define XInputDrivers mouse keyboard
|
---|
| 327 |
|
---|
[fb0480d5] | 328 | /* Disable building Xprint server and clients until we get them figured
|
---|
| 329 | * out but build Xprint libraries to allow precompiled binaries such as
|
---|
| 330 | * Acrobat Reader to run.
|
---|
| 331 | */
|
---|
[7461475] | 332 |
|
---|
[fb0480d5] | 333 | #define XprtServer NO
|
---|
| 334 | #define BuildXprintClients NO
|
---|
[feeb99a] | 335 |
|
---|
[2ee51e6] | 336 | /* Uncomment the following define if you would prefer to install X into
|
---|
| 337 | * /usr or change it to any other location that you prefer.
|
---|
[bccbdaea] | 338 | * The GL related defines disable compatibility symlinks (the links
|
---|
[310cc9a] | 339 | * are not needed when X is installed in /usr).
|
---|
[f84ff8d] | 340 | #define ProjectRoot /usr
|
---|
| 341 | #define LinkGLToUsrInclude NO
|
---|
| 342 | #define LinkGLToUsrLib NO
|
---|
[2ee51e6] | 343 | */
|
---|
| 344 |
|
---|
[36c3ba1] | 345 | /* End Xorg host.def file */</literal>
|
---|
| 346 | EOF</userinput></screen>
|
---|
[feeb99a] | 347 |
|
---|
[36c3ba1] | 348 | <para>There are several other options that you may want to consider.
|
---|
| 349 | A well documented example file is
|
---|
| 350 | <filename>config/cf/xorgsite.def</filename>.</para>
|
---|
[2826127] | 351 |
|
---|
[36c3ba1] | 352 | </sect3>
|
---|
[feeb99a] | 353 |
|
---|
[36c3ba1] | 354 | <sect3>
|
---|
| 355 | <title>Build Commands</title>
|
---|
[2826127] | 356 |
|
---|
[36c3ba1] | 357 | <para>Install <application>Xorg</application> by running the
|
---|
| 358 | following commands:</para>
|
---|
| 359 |
|
---|
| 360 | <screen><userinput>sed -i -e "s@^#include <linux/config.h>@/* & */@" \
|
---|
[df3a050] | 361 | `grep -lr linux/config.h *` &&
|
---|
[36c3ba1] | 362 | ( make World 2>&1 | tee xorg-compile.log && exit $PIPESTATUS )</userinput></screen>
|
---|
| 363 |
|
---|
| 364 | <para>Again as the <systemitem class="username">root</systemitem>
|
---|
| 365 | user:</para>
|
---|
[2826127] | 366 |
|
---|
[36c3ba1] | 367 | <screen role="root"><userinput>make install &&
|
---|
[feeb99a] | 368 | make install.man &&
|
---|
[36c3ba1] | 369 | ln -v -sf ../X11R6/bin /usr/bin/X11 &&
|
---|
| 370 | ln -v -sf ../X11R6/lib/X11 /usr/lib/X11 &&
|
---|
| 371 | ln -v -sf ../X11R6/include/X11 /usr/include/X11</userinput></screen>
|
---|
| 372 |
|
---|
| 373 | </sect3>
|
---|
| 374 |
|
---|
| 375 | </sect2>
|
---|
| 376 |
|
---|
| 377 | <sect2 role="commands">
|
---|
| 378 | <title>Command Explanations</title>
|
---|
| 379 |
|
---|
| 380 | <para><command>sed -i -e "s@^#include <linux/config.h>@...</command>:
|
---|
[2826127] | 381 | The <application>Linux-Libc-Headers</application> package installed in
|
---|
[36c3ba1] | 382 | LFS installs a <filename>/usr/include/linux/config.h</filename> file
|
---|
| 383 | which is not compatible with userspace applications. The recommended fix
|
---|
| 384 | for applications including this file is to remove it (see <ulink
|
---|
[2826127] | 385 | url="http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/FAQ">
|
---|
| 386 | linux-libc-headers FAQ</ulink>). The <command>sed</command> uses
|
---|
[bfb7882] | 387 | <command>grep -lr</command> to replace all occurrences. If you desire, just
|
---|
[2826127] | 388 | remove (comment) the line in the appropriate video driver file if you
|
---|
[36c3ba1] | 389 | customized <filename>host.def</filename>.</para>
|
---|
| 390 |
|
---|
| 391 | <para><command>( make World 2>&1 | tee xorg-compile.log
|
---|
| 392 | && exit $PIPESTATUS )</command>: This command runs multiple
|
---|
| 393 | <filename>Makefile</filename>s to completely rebuild the system.
|
---|
| 394 | <parameter>2>&1</parameter> redirects error messages to the
|
---|
| 395 | same location as standard output. The <command>tee</command> command
|
---|
| 396 | allows viewing of the output while logging the results to a file. The
|
---|
[bfb7882] | 397 | parentheses around the command runs the entire command in a subshell
|
---|
[36c3ba1] | 398 | and finally the <command>exit $PIPESTATUS</command> ensures the result
|
---|
| 399 | of the <command>make</command> is returned as the result and not the
|
---|
| 400 | result of the <command>tee</command> command.</para>
|
---|
| 401 |
|
---|
| 402 | <note>
|
---|
| 403 | <para>When rebuilding <application>Xorg</application>, a separate
|
---|
| 404 | command that may be used if only minor changes are made to the sources
|
---|
| 405 | is <command>make Everything</command>. This does not automatically
|
---|
| 406 | remove generated files and only rebuilds those files or programs that
|
---|
| 407 | are out of date.</para>
|
---|
| 408 | </note>
|
---|
| 409 |
|
---|
| 410 | <para><command>ln -v -sf ...</command>: These commands are present to
|
---|
| 411 | enable other (broken) packages to build against
|
---|
| 412 | <application>Xorg</application>, even though the Filesystem Hierarchy
|
---|
| 413 | Standard says: <quote>In general, software must not be installed or
|
---|
| 414 | managed via the above symbolic links. They are intended for utilization
|
---|
| 415 | by users only.</quote></para>
|
---|
| 416 |
|
---|
| 417 | </sect2>
|
---|
| 418 |
|
---|
| 419 | <sect2 role="configuration" id='xorg-config'>
|
---|
| 420 | <title>Configuring Xorg</title>
|
---|
| 421 |
|
---|
| 422 | <para>Edit <filename>/etc/ld.so.conf</filename> and add
|
---|
| 423 | <filename class="directory">/usr/X11R6/lib</filename>. Run:</para>
|
---|
| 424 |
|
---|
| 425 | <indexterm zone="xorg xorg-config">
|
---|
| 426 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 427 | </indexterm>
|
---|
| 428 |
|
---|
| 429 | <screen role="root"><userinput>ldconfig</userinput></screen>
|
---|
| 430 |
|
---|
| 431 | <para>Ensure <filename class="directory">/usr/X11R6/bin</filename>
|
---|
| 432 | and <filename class="directory">/usr/X11R6/lib/pkgconfig</filename>
|
---|
| 433 | are added to your <envar>PATH</envar> and <envar>PKG_CONFIG_PATH</envar>
|
---|
| 434 | environment variables, respectively. Instructions for doing this are
|
---|
| 435 | described in the section <xref linkend='postlfs-config-profile'/>.</para>
|
---|
| 436 |
|
---|
| 437 | <para>Create the <filename>xorg.conf</filename> file with:</para>
|
---|
| 438 |
|
---|
[5ee44e37] | 439 | <screen><userinput>cd ~ &&
|
---|
[36c3ba1] | 440 | Xorg -configure</userinput></screen>
|
---|
| 441 |
|
---|
| 442 | <para>The screen will go black and you may hear some clicking of the monitor.
|
---|
| 443 | This command will create a file, <filename>xorg.conf.new</filename> in your
|
---|
| 444 | home directory.</para>
|
---|
| 445 |
|
---|
| 446 | <indexterm zone="xorg xorg-config">
|
---|
| 447 | <primary sortas="e-etc-X11-xorg-conf">/etc/X11/xorg.conf</primary>
|
---|
| 448 | </indexterm>
|
---|
| 449 |
|
---|
| 450 | <para>Edit <filename>xorg.conf.new</filename> to suit your system. The
|
---|
| 451 | details of the file are located in the xorg.conf man page. Some things
|
---|
| 452 | you may want to do are:</para>
|
---|
| 453 |
|
---|
| 454 | <itemizedlist>
|
---|
| 455 | <listitem>
|
---|
| 456 | <para>Section "Files". Change the order of the font paths searched.
|
---|
| 457 | You may want to put 100dpi fonts ahead of 75dpi fonts if your system
|
---|
| 458 | normally comes up closer to 100 dots per inch. You may want to remove
|
---|
| 459 | some font directories completely.</para>
|
---|
| 460 | </listitem>
|
---|
| 461 | <listitem>
|
---|
| 462 | <para>Section "Module". If you are going to install NVidia
|
---|
| 463 | drivers, remove the "dri" line.</para>
|
---|
| 464 | </listitem>
|
---|
| 465 | <listitem>
|
---|
| 466 | <para>Sections "InputDevice". You may want to change the
|
---|
| 467 | keyboard autorepeat rate by adding
|
---|
| 468 | <option>Option "Autorepeat" "250 30"</option>.</para>
|
---|
| 469 | </listitem>
|
---|
| 470 | <listitem>
|
---|
| 471 | <para>Section "Monitor". Specify the <option>VertRefresh</option>
|
---|
| 472 | and <option>HorizSync</option> values if the system does not
|
---|
| 473 | automatically detect the monitor and its values.</para>
|
---|
| 474 | </listitem>
|
---|
| 475 | <listitem>
|
---|
| 476 | <para>Section "Device". You may want to set some of the options
|
---|
| 477 | available for your selected video driver. A description of the driver
|
---|
| 478 | parameters is in the man page for your driver.</para>
|
---|
| 479 | </listitem>
|
---|
| 480 | <listitem><para>Section "Screen". Add a DefaultDepth statement such as:
|
---|
| 481 | <option>DefaultDepth 24</option>. In the SubSection for your
|
---|
| 482 | default depth, add a modes line such as:
|
---|
| 483 | <option>Modes "1600x1200" "1280x1024" "1024x768"</option>. The first
|
---|
| 484 | mode listed will normally be the starting resolution.</para>
|
---|
| 485 | </listitem>
|
---|
| 486 | </itemizedlist>
|
---|
| 487 |
|
---|
| 488 | <para>Test the system with:</para>
|
---|
| 489 |
|
---|
| 490 | <screen><userinput>X -config ~/xorg.conf.new</userinput></screen>
|
---|
| 491 |
|
---|
| 492 | <para>You will only get a gray background with an X-shaped mouse cursor,
|
---|
| 493 | but it confirms the system is working. Exit with
|
---|
| 494 | <keycap>Control+Alt+Backspace</keycap>. If the system does not work, take
|
---|
| 495 | a look at <filename>/var/log/Xorg.0.log</filename> to see what went
|
---|
| 496 | wrong.</para>
|
---|
| 497 |
|
---|
| 498 | <para>Move the configuration file to its final location:</para>
|
---|
| 499 |
|
---|
| 500 | <screen role="root"><userinput>mv ~/xorg.conf.new /etc/X11/xorg.conf</userinput></screen>
|
---|
| 501 |
|
---|
| 502 | <para>Create <filename>.xinitrc</filename>:</para>
|
---|
| 503 |
|
---|
| 504 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
| 505 | <literal># Begin .xinitrc file
|
---|
[feeb99a] | 506 | xterm -g 80x40+0+0 &
|
---|
| 507 | xclock -g 100x100-0+0 &
|
---|
[36c3ba1] | 508 | twm</literal>
|
---|
| 509 | EOF</userinput></screen>
|
---|
| 510 |
|
---|
| 511 | <para>This provides an initial screen with an xterm and a clock that is
|
---|
| 512 | managed by a simple window manager, Tab Window Manager. For details of
|
---|
| 513 | <command>twm</command>, see the man page.</para>
|
---|
| 514 |
|
---|
| 515 | <indexterm zone="xorg xorg-config">
|
---|
| 516 | <primary sortas="e-AA.xinitrc">~/.xinitrc</primary>
|
---|
| 517 | </indexterm>
|
---|
| 518 |
|
---|
| 519 | <note>
|
---|
| 520 | <para>When needed, <application>Xorg</application> creates the directory
|
---|
| 521 | <filename>/tmp/.ICE-unix</filename> if it does not exist. If this
|
---|
| 522 | directory is not owned by <systemitem class="username">root</systemitem>,
|
---|
| 523 | <application>Xorg</application> delays startup by a few seconds and also
|
---|
| 524 | appends a warning to the logfile. This also affects startup of other
|
---|
| 525 | applications. To improve performance, it is advisable to manually create
|
---|
| 526 | the directory before <application>Xorg</application> uses it. Add the
|
---|
| 527 | file creation to <filename>/etc/sysconfig/createfiles</filename> that is
|
---|
| 528 | sourced by the <filename>/etc/rc.d/init.d/cleanfs</filename> startup
|
---|
| 529 | script.</para>
|
---|
| 530 |
|
---|
| 531 | <screen role="root"><userinput>cat >> /etc/sysconfig/createfiles << "EOF"
|
---|
| 532 | <literal>/tmp/.ICE-unix dir 1777 root root</literal>
|
---|
| 533 | EOF</userinput></screen>
|
---|
| 534 |
|
---|
| 535 | </note>
|
---|
| 536 |
|
---|
| 537 | <indexterm zone="xorg xorg-config">
|
---|
| 538 | <primary
|
---|
| 539 | sortas="e-etc-sysconfig-createfiles">/etc/sysconfig/createfiles</primary>
|
---|
| 540 | </indexterm>
|
---|
| 541 |
|
---|
| 542 | <para>Start <application>X</application> with:</para>
|
---|
| 543 |
|
---|
| 544 | <screen><userinput>startx</userinput></screen>
|
---|
| 545 |
|
---|
| 546 | <para>to get a basic functional <application>X Window
|
---|
| 547 | System</application>.</para>
|
---|
| 548 |
|
---|
| 549 | <para>At this point, you should check out <xref linkend='x-setup'/> for
|
---|
| 550 | the necessary configuration to make <application>X</application> fully
|
---|
| 551 | functional. Additionally, you can have a look at <xref linkend='x-config'/>
|
---|
| 552 | for information on fine tuning your <application>X</application>
|
---|
| 553 | configuration.</para>
|
---|
| 554 |
|
---|
| 555 | <para>For a list of the package contents and a description of the commands,
|
---|
| 556 | see the sections in the <xref linkend='xfree86-contents'/>.</para>
|
---|
| 557 |
|
---|
| 558 | </sect2>
|
---|
[d5d9ceb] | 559 |
|
---|
[feeb99a] | 560 | </sect1>
|
---|