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