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