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