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