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