[feeb99a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[feeb99a] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[84e0b212] | 7 | <!ENTITY xfree86-download-http "http://gnu.kookel.org/ftp/XFree86/&xfree86-version;/source/">
|
---|
| 8 | <!ENTITY xfree86-download-ftp "ftp://ftp.xfree86.org/pub/XFree86/&xfree86-version;/source/">
|
---|
| 9 | <!ENTITY xfree86-md5sum "ftp://ftp.xfree86.org/pub/XFree86/&xfree86-version;/source/SUMS.md5sum">
|
---|
| 10 | <!ENTITY xfree86-size "51 MB">
|
---|
[fb69e2e] | 11 | <!ENTITY xfree86-buildsize "740 MB">
|
---|
[84e0b212] | 12 | <!ENTITY xfree86-time "12 SBU">
|
---|
[feeb99a] | 13 | ]>
|
---|
| 14 |
|
---|
[ea9f7caf] | 15 | <sect1 id="xfree86" xreflabel="XFree86">
|
---|
[06092fc] | 16 | <?dbhtml filename="xfree86.html" ?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>XFree86-&xfree86-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="xfree86">
|
---|
| 26 | <primary sortas="a-xfree86">XFree86</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to XFree86</title>
|
---|
| 31 |
|
---|
| 32 | <para><application>XFree86</application> is a freely redistributable
|
---|
| 33 | open-source implementation of the <application>X Window
|
---|
| 34 | System</application>. <application>XFree86</application> provides a
|
---|
| 35 | client/server interface between display hardware (the mouse, keyboard,
|
---|
| 36 | and video displays) and the desktop environment, while also providing
|
---|
| 37 | both the windowing infrastructure and a standardized application
|
---|
| 38 | interface (API).</para>
|
---|
| 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&xfree86-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&xfree86-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &xfree86-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &xfree86-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &xfree86-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &xfree86-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect3">XFree86 Dependencies</bridgehead>
|
---|
| 63 |
|
---|
| 64 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[76a39aa] | 65 | <para role="required"><xref linkend="libpng"/></para>
|
---|
[06092fc] | 66 |
|
---|
| 67 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[76a39aa] | 68 | <para role="optional"><xref linkend="linux-pam"/>; the
|
---|
[06092fc] | 69 | following packages are included in the <application>XFree86</application>
|
---|
| 70 | package, however they are updated more often than the
|
---|
[52535ba5] | 71 | <application>XFree86</application> package and are highly recommended:
|
---|
[06092fc] | 72 | <xref linkend="expat"/>, <xref linkend="freetype2"/>,
|
---|
| 73 | <xref linkend="fontconfig"/>.</para>
|
---|
| 74 |
|
---|
| 75 | <note>
|
---|
| 76 | <para>If you choose not to install <application>expat</application>,
|
---|
| 77 | <application>FreeType2</application>, and
|
---|
| 78 | <application>Fontconfig</application>, the
|
---|
| 79 | <filename>host.def</filename> file below will have to be modified to
|
---|
| 80 | instruct <application>XFree86</application> to build them.</para>
|
---|
| 81 | </note>
|
---|
| 82 |
|
---|
[1663c2b5] | 83 | <para condition="html" role="usernotes">User Notes:
|
---|
[ea9f7caf] | 84 | <ulink url='&blfs-wiki;/XFree86'/></para>
|
---|
[18bcaf6] | 85 |
|
---|
[06092fc] | 86 | <bridgehead renderas="sect3">Download Instructions</bridgehead>
|
---|
| 87 |
|
---|
| 88 | <para>There are several files that need to be fetched from the download
|
---|
| 89 | location:</para>
|
---|
| 90 |
|
---|
| 91 | <itemizedlist spacing='compact'>
|
---|
| 92 | <listitem>
|
---|
[84e0b212] | 93 | <para><filename>XFree86-&xfree86-version;-src-1.tgz</filename></para>
|
---|
[06092fc] | 94 | </listitem>
|
---|
| 95 | <listitem>
|
---|
[84e0b212] | 96 | <para><filename>XFree86-&xfree86-version;-src-2.tgz</filename></para>
|
---|
[06092fc] | 97 | </listitem>
|
---|
| 98 | <listitem>
|
---|
[84e0b212] | 99 | <para><filename>XFree86-&xfree86-version;-src-3.tgz</filename></para>
|
---|
[06092fc] | 100 | </listitem>
|
---|
| 101 | <listitem>
|
---|
[84e0b212] | 102 | <para><filename>XFree86-&xfree86-version;-src-4.tgz</filename></para>
|
---|
[06092fc] | 103 | </listitem>
|
---|
| 104 | <listitem>
|
---|
[84e0b212] | 105 | <para><filename>XFree86-&xfree86-version;-src-5.tgz</filename></para>
|
---|
[06092fc] | 106 | </listitem>
|
---|
| 107 | <listitem>
|
---|
[84e0b212] | 108 | <para><filename>XFree86-&xfree86-version;-src-6.tgz</filename></para>
|
---|
[06092fc] | 109 | </listitem>
|
---|
| 110 | <listitem>
|
---|
[84e0b212] | 111 | <para><filename>XFree86-&xfree86-version;-src-7.tgz</filename></para>
|
---|
[06092fc] | 112 | </listitem>
|
---|
| 113 | </itemizedlist>
|
---|
| 114 |
|
---|
| 115 | <para>The first three packages are the <application>XFree86</application>
|
---|
| 116 | programs, the fourth and fifth are fonts, the sixth is normal documentation,
|
---|
[fb69e2e] | 117 | and the seventh is hardcopy documentation.</para>
|
---|
[06092fc] | 118 |
|
---|
| 119 | <para>To check your downloads for integrity, download the
|
---|
| 120 | <filename>SUMS.md5sum</filename> file. Then:</para>
|
---|
| 121 |
|
---|
| 122 | <screen><userinput>md5sum -c SUMS.md5sum</userinput></screen>
|
---|
| 123 |
|
---|
| 124 | <para>The only errors you should see are for <filename>README</filename>,
|
---|
[78de21f] | 125 | <filename>doctools-1.3.x.tgz</filename>, <filename>utils-1.1.x.tgz</filename>
|
---|
[06092fc] | 126 | and <filename>XFree86-xtest-4.0.x.tar.bz2</filename> files if you did not
|
---|
| 127 | download them.</para>
|
---|
[feeb99a] | 128 |
|
---|
[06092fc] | 129 | </sect2>
|
---|
[feeb99a] | 130 |
|
---|
[06092fc] | 131 | <sect2 role="kernel" id='xfree86-kernel'>
|
---|
| 132 | <title>Kernel Configuration</title>
|
---|
[52535ba5] | 133 |
|
---|
[06092fc] | 134 | <para>If you have an Intel P6 (Pentium Pro, Pentium II and later), it is
|
---|
| 135 | recommended that you compile MTRR (Memory Type Range Registers) support
|
---|
| 136 | into the kernel. The kernel can map Cyrix and AMD CPUs to the MTRR
|
---|
| 137 | interface, so selecting this option is useful for those processors also.
|
---|
| 138 | This option is found in the "Processor type and features" menu. It can
|
---|
| 139 | increase performance of image write operations 2.5 times or more on PCI
|
---|
| 140 | or AGP video cards.</para>
|
---|
[52535ba5] | 141 |
|
---|
[06092fc] | 142 | <indexterm zone="xfree86 xfree86-kernel">
|
---|
| 143 | <primary sortas="d-xfree86">XFree86</primary>
|
---|
| 144 | </indexterm>
|
---|
[52535ba5] | 145 |
|
---|
[06092fc] | 146 | <para>In the "Character Devices" section, enable AGP Support and select
|
---|
| 147 | the chipset support on your motherboard. If you do not know the chipset,
|
---|
| 148 | you may select all the chip types at the expense of extra kernel size.
|
---|
| 149 | You can usually determine your motherboard's chipset by running the
|
---|
| 150 | command <command>lspci</command>, a program from the
|
---|
| 151 | <xref linkend="pciutils"/> package.</para>
|
---|
| 152 |
|
---|
| 153 | <para>In the "Character Devices" section, <emphasis>disable</emphasis>
|
---|
| 154 | Direct Rendering Manager unless you have a Direct Rendering Infrastructure
|
---|
| 155 | (DRI) supported video card. A complete list of DRI supported video cards
|
---|
| 156 | can be found at <ulink url="http://dri.sourceforge.net" /> in the Status
|
---|
| 157 | section. Currently, supported cards include those from 3dfx (Voodoo,
|
---|
| 158 | Banshee), 3Dlabs, ATI (Rage Pro, Rage 128, Radeon 7X00, Radeon 2), Intel
|
---|
| 159 | (i810, i815), and Matrox (G200, G400, G450).</para>
|
---|
| 160 |
|
---|
| 161 | <para>Additionally NVidia provides their own closed source binary drivers,
|
---|
| 162 | which do not make use of DRI. If you intend to use these drivers, do not
|
---|
| 163 | enable DRI.</para>
|
---|
| 164 |
|
---|
| 165 | <para>If you made any changes to the kernel configuration, recompile and
|
---|
| 166 | install the new kernel.</para>
|
---|
| 167 |
|
---|
| 168 | </sect2>
|
---|
[52535ba5] | 169 |
|
---|
[06092fc] | 170 | <sect2 role="installation">
|
---|
| 171 | <title>Installation of XFree86</title>
|
---|
| 172 |
|
---|
[84e0b212] | 173 | <sect3>
|
---|
[140a5c55] | 174 | <title>Glibc build fix</title>
|
---|
| 175 |
|
---|
| 176 | <!-- To be removed if/when proposed glibc patch is added to LFS SVN
|
---|
| 177 | Leave in in for a couple of weeks with 'you may need' and a testcase
|
---|
| 178 | around it to save the support list silly questions. Should remove in
|
---|
| 179 | a couple of weeks -->
|
---|
| 180 | <para>Xfree86 may have a problem with <filename>sys/kd.h</filename>
|
---|
| 181 | installed with some recent versions of <application>Glibc</application>.
|
---|
| 182 | This has recently been fixed in LFS SVN. Execute the
|
---|
| 183 | following commands to work around a broken <filename>kd.h</filename>
|
---|
| 184 | file. The <command>grep</command> command is to ensure the modification
|
---|
| 185 | is only made if it is needed. Run these commands from within the
|
---|
| 186 | <filename class="directory">xc</filename> folder:</para>
|
---|
| 187 |
|
---|
| 188 | <screen><userinput>grep "__undef_LINUX" \
|
---|
| 189 | /usr/include/sys/kd.h 2>&1 > /dev/null || \
|
---|
| 190 | sed -i.bak '/X.h/i #include <linux/types.h>' \
|
---|
| 191 | programs/Xserver/hw/xfree86/os-support/linux/lnx_agp.c</userinput></screen>
|
---|
| 192 | <!-- End remove -->
|
---|
| 193 |
|
---|
| 194 | </sect3>
|
---|
| 195 | <sect3>
|
---|
| 196 |
|
---|
[84e0b212] | 197 | <title>Setting Up a Shadow Directory</title>
|
---|
| 198 |
|
---|
| 199 | <para>When building <application>XFree86</application>, you should create
|
---|
| 200 | a shadow directory of symbolic links for the compiled code. To do that,
|
---|
| 201 | first make <command>lndir</command>. Starting from the
|
---|
| 202 | <filename class='directory'>xc</filename> directory:</para>
|
---|
| 203 |
|
---|
[fb69e2e] | 204 | <screen><userinput>make -C config/util -f Makefile.ini lndir</userinput></screen>
|
---|
[84e0b212] | 205 |
|
---|
| 206 | <para>Now create the shadow tree:</para>
|
---|
| 207 |
|
---|
| 208 | <screen><userinput>mkdir ../xcbuild &&
|
---|
| 209 | cd ../xcbuild &&
|
---|
[9a2fba9] | 210 | ../xc/config/util/lndir ../xc</userinput></screen>
|
---|
[84e0b212] | 211 |
|
---|
| 212 | </sect3>
|
---|
| 213 |
|
---|
[06092fc] | 214 | <sect3>
|
---|
| 215 | <title>Creating 'host.def'</title>
|
---|
| 216 |
|
---|
| 217 | <para>Although <application>XFree86</application> will compile without
|
---|
| 218 | a <filename>host.def</filename> file, the following file is recommended
|
---|
| 219 | for customizing the installation. Start from the
|
---|
[78de21f] | 220 | <filename class="directory">xcbuild</filename> directory.</para>
|
---|
[06092fc] | 221 |
|
---|
| 222 | <note>
|
---|
| 223 | <para>The <filename>host.def</filename> file is a
|
---|
| 224 | <application>C</application> file, not the usual configuration file.
|
---|
| 225 | If you make any changes, be sure the comment characters (/* and */)
|
---|
| 226 | are balanced. Most of the entries in the file below are commented
|
---|
| 227 | out with the default settings shown.</para>
|
---|
| 228 | </note>
|
---|
| 229 |
|
---|
| 230 | <screen><userinput>cat > config/cf/host.def << "EOF"
|
---|
| 231 | <literal>/* Begin XFree86 host.def file */
|
---|
[feeb99a] | 232 |
|
---|
[06092fc] | 233 | /* This setting reduces compile time a little by omitting rarely used
|
---|
| 234 | * input devices. You can find the complete list in
|
---|
[47603ac1] | 235 | * config/cf/xfree86.cf *********************************************/
|
---|
[06092fc] | 236 |
|
---|
[feeb99a] | 237 | #define XInputDrivers mouse void
|
---|
| 238 |
|
---|
[0f82fcc] | 239 | /* VIDEO DRIVERS ****************************************************
|
---|
| 240 | * If you are sure you only want the drivers for one or a few video
|
---|
[06092fc] | 241 | * cards, you can delete the drivers you do not want. ***************/
|
---|
[feeb99a] | 242 |
|
---|
| 243 | #define XF86CardDrivers mga glint nv tga s3 s3virge sis rendition \
|
---|
| 244 | neomagic i740 tdfx savage \
|
---|
| 245 | cirrus vmware tseng trident chips apm \
|
---|
| 246 | GlideDriver fbdev i128 nsc \
|
---|
[5c8344d] | 247 | ati i810 DevelDrivers ark \
|
---|
[feeb99a] | 248 | cyrix siliconmotion \
|
---|
[a13e403] | 249 | v4l vesa vga \
|
---|
[feeb99a] | 250 | dummy XF86OSCardDrivers XF86ExtraCardDrivers
|
---|
| 251 |
|
---|
[47603ac1] | 252 | /* These settings ensure we use our libraries ************************/
|
---|
[feeb99a] | 253 | #define HasFreetype2 YES
|
---|
| 254 | #define HasFontconfig YES
|
---|
| 255 | #define HasExpat YES
|
---|
| 256 | #define HasLibpng YES
|
---|
| 257 | #define HasZlib YES
|
---|
| 258 |
|
---|
[45b2f690] | 259 | /* Uncomment the following define if you'd like
|
---|
| 260 | * xdm to use Linux-PAM
|
---|
| 261 | #define HasPam YES
|
---|
| 262 | */
|
---|
| 263 |
|
---|
[0f82fcc] | 264 | /* GENERAL SETTINGS */
|
---|
| 265 |
|
---|
| 266 | #define SystemManDirectory /usr/share/man
|
---|
[ef040389] | 267 | #define DocDir /usr/share/doc/xfree86-4.6.0
|
---|
[fb69e2e] | 268 |
|
---|
| 269 | /* Installation prefix. The default is to install into /usr/X11R6. If you
|
---|
| 270 | * would like to install into /usr, uncomment these options. */
|
---|
| 271 |
|
---|
| 272 | /* #define ProjectRoot /usr */
|
---|
[0f82fcc] | 273 | /* #define LinkGLToUsrLib NO */
|
---|
| 274 | /* #define LinkGLToUsrInclude NO */
|
---|
[feeb99a] | 275 |
|
---|
[06092fc] | 276 | /* End XFree86 host.def file */</literal>
|
---|
| 277 | EOF</userinput></screen>
|
---|
[feeb99a] | 278 |
|
---|
[0f82fcc] | 279 | <para>Edit the file for your hardware and desires. You can find more
|
---|
| 280 | options by reading the other files in
|
---|
[7b7468c1] | 281 | <filename class="directory">xc/config/cf</filename> and on the wiki.
|
---|
| 282 | <ulink url='&blfs-wiki;/XFree86-&xfree86-version;'/></para>
|
---|
[feeb99a] | 283 |
|
---|
[06092fc] | 284 | </sect3>
|
---|
[feeb99a] | 285 |
|
---|
[06092fc] | 286 | <sect3>
|
---|
| 287 | <title>Build Commands</title>
|
---|
[89a0adcf] | 288 |
|
---|
[06092fc] | 289 | <para>Install <application>XFree86</application> by running the
|
---|
| 290 | following commands:</para>
|
---|
[feeb99a] | 291 |
|
---|
[fb69e2e] | 292 | <screen><userinput>sed -i 's:^.*asm.*$:# define PAGE_MASK (~(getpagesize() - 1)):' \
|
---|
| 293 | ../xc/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c &&
|
---|
[84e0b212] | 294 | sed -i -e "s@^#include <linux/config.h>@/* & */@" \
|
---|
[fb69e2e] | 295 | `grep -lr linux/config.h ../xc` &&
|
---|
| 296 | ( make World 2>&1 | tee xfree-compile.log && exit $PIPESTATUS )
|
---|
| 297 | </userinput></screen>
|
---|
| 298 |
|
---|
| 299 | <para>This package does not come with a test suite.</para>
|
---|
[06092fc] | 300 |
|
---|
| 301 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 302 | user:</para>
|
---|
[52535ba5] | 303 |
|
---|
[06092fc] | 304 | <screen role="root"><userinput>make install &&
|
---|
[7b7468c1] | 305 | make install.man</userinput></screen>
|
---|
| 306 |
|
---|
| 307 | <para>If you installed <application>XFree86</application> into the default
|
---|
| 308 | prefix, <filename class="directory">/usr/X11R6</filename>, make these
|
---|
| 309 | symlinks to work around some applications which look for things in the
|
---|
| 310 | wrong place. As <systemitem class="username">root</systemitem>:</para>
|
---|
| 311 |
|
---|
| 312 | <screen role="root"><userinput>ln -v -s ../X11R6/bin /usr/bin/X11 &&
|
---|
[fb69e2e] | 313 | ln -v -s ../X11R6/lib/X11 /usr/lib/X11 &&
|
---|
| 314 | ln -v -s ../X11R6/include/X11 /usr/include/X11</userinput></screen>
|
---|
[06092fc] | 315 |
|
---|
[18bcaf6] | 316 | <para>The <application>XFree86</application> fonts have been installed
|
---|
| 317 | outside of <application>Fontconfig</application>'s default search path
|
---|
[7b7468c1] | 318 | of <filename class="directory">/usr/share/fonts</filename>. In order
|
---|
[18bcaf6] | 319 | for <application>Fontconfig</application> to find the installed TrueType
|
---|
[7b7468c1] | 320 | fonts, you should make symlinks to their directories. If you installed
|
---|
| 321 | <application>XFree86</application> with the prefix
|
---|
| 322 | <filename class="directory">/usr</filename>, omit /X11R6 from the
|
---|
| 323 | following commands. As <systemitem class="username">root</systemitem>:
|
---|
| 324 | </para>
|
---|
[18bcaf6] | 325 |
|
---|
[aebc72fa] | 326 | <screen role="root"><userinput>install -d -m755 /usr/share/fonts &&
|
---|
| 327 | ln -svn /usr/X11R6/lib/X11/fonts/OTF /usr/share/fonts/X11-OTF &&
|
---|
[18bcaf6] | 328 | ln -svn /usr/X11R6/lib/X11/fonts/TTF /usr/share/fonts/X11-TTF</userinput></screen>
|
---|
| 329 |
|
---|
[6e34843] | 330 | <para><application>XFree86</application> installs the
|
---|
[29f1eea6] | 331 | <application>XRender</application> and
|
---|
| 332 | <application>XExtensions</application> extension libraries but does not
|
---|
| 333 | install the corresponding <application>pkg-config</application> files.
|
---|
[7b7468c1] | 334 | Create the files with these commands. If you installed
|
---|
| 335 | <application>XFree86</application> with the prefix
|
---|
| 336 | <filename class="directory">/usr</filename>, omit /X11R6 from the
|
---|
| 337 | paths. As <systemitem class="username">root</systemitem>:</para>
|
---|
[6e34843] | 338 |
|
---|
| 339 | <screen role="root"><userinput>cat > /usr/X11R6/lib/pkgconfig/xrender.pc << "EOF"
|
---|
| 340 | <literal>prefix=/usr/X11R6
|
---|
| 341 | exec_prefix=${prefix}
|
---|
| 342 | libdir=${exec_prefix}/lib
|
---|
| 343 | includedir=${prefix}/include
|
---|
| 344 |
|
---|
| 345 | Name: Xrender
|
---|
| 346 | Description: X Render Library
|
---|
| 347 | Version: 0.8.3
|
---|
| 348 | Cflags: -I${includedir} -I/usr/X11R6/include
|
---|
| 349 | Libs: -L${libdir} -lXrender -L/usr/X11R6/lib -lX11</literal>
|
---|
[29f1eea6] | 350 |
|
---|
| 351 | EOF
|
---|
| 352 |
|
---|
| 353 | cat > /usr/X11R6/lib/pkgconfig/xextensions.pc << "EOF"
|
---|
| 354 | <literal>prefix=/usr/X11R6
|
---|
| 355 | exec_prefix=${prefix}
|
---|
| 356 | libdir=${exec_prefix}/lib
|
---|
| 357 | includedir=${prefix}/include
|
---|
| 358 |
|
---|
| 359 | Name: XExtensions
|
---|
| 360 | Description: Sundry X extension headers
|
---|
| 361 | Version: 1.0.1
|
---|
| 362 | Cflags: -I${includedir}</literal>
|
---|
| 363 |
|
---|
[6e34843] | 364 | EOF</userinput></screen>
|
---|
| 365 |
|
---|
[3f72a148] | 366 | <para>You should now continue on to the <xref linkend="x-setup"/> section
|
---|
[9f12e36] | 367 | to complete the configuration of
|
---|
[3f72a148] | 368 | <application>XFree86</application>.</para>
|
---|
| 369 |
|
---|
[06092fc] | 370 | </sect3>
|
---|
| 371 |
|
---|
| 372 | </sect2>
|
---|
| 373 |
|
---|
| 374 | <sect2 role="commands">
|
---|
| 375 | <title>Command Explanations</title>
|
---|
| 376 |
|
---|
[fb69e2e] | 377 | <para><command>sed -i 's:^.*asm.* ... fbdevhw.c</command>: This sed fixes a
|
---|
[7b7468c1] | 378 | problem compiling against headers from kernels newer than linux-2.6.8.</para>
|
---|
[fb69e2e] | 379 |
|
---|
[06092fc] | 380 | <para><command>sed -i -e "s@^#include <linux/config.h>@...</command>:
|
---|
| 381 | The <application>Linux-Libc-Headers</application> package installed in
|
---|
| 382 | LFS installs a <filename>/usr/include/linux/config.h</filename> file which
|
---|
| 383 | is not compatible with userspace applications. The recommended fix for
|
---|
| 384 | applications including this file is to remove it (see <ulink
|
---|
| 385 | url="http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/FAQ">
|
---|
| 386 | linux-libc-headers FAQ</ulink>). The <command>sed</command> uses
|
---|
[bfb7882] | 387 | <command>grep -lr</command> to replace all occurrences. If you desire, just
|
---|
[06092fc] | 388 | remove (comment) the line in the appropriate video driver file if you
|
---|
| 389 | customized <filename>host.def</filename>.</para>
|
---|
| 390 |
|
---|
[fb69e2e] | 391 | <para><command>( make World 2>&1 | tee xfree-compile.log
|
---|
[06092fc] | 392 | && exit $PIPESTATUS )</command>:
|
---|
| 393 | This command runs multiple <filename>Makefile</filename>s to completely
|
---|
[fb69e2e] | 394 | rebuild the system. <option>2>&1</option>
|
---|
[06092fc] | 395 | redirects error messages to the same location as standard output. The
|
---|
| 396 | <command>tee</command> command allows viewing of the output while logging
|
---|
| 397 | the results to a file. The parentheses around the command runs the entire
|
---|
[bfb7882] | 398 | command in a subshell and finally the <command>exit $PIPESTATUS</command>
|
---|
[06092fc] | 399 | ensures the result of the <command>make</command> is returned as the result
|
---|
| 400 | and not the result of the <command>tee</command> command.</para>
|
---|
| 401 |
|
---|
| 402 | <note>
|
---|
| 403 | <para>When rebuilding <application>XFree86</application>, a separate
|
---|
| 404 | command that may be used if only minor changes are made to the sources
|
---|
| 405 | is <command>make Everything</command>. This does not automatically
|
---|
| 406 | remove generated files and only rebuilds those files or programs that
|
---|
| 407 | are out of date.</para>
|
---|
| 408 | </note>
|
---|
| 409 |
|
---|
[7b7468c1] | 410 | <para><command>ln -v -s ...</command>: These commands are present to
|
---|
[06092fc] | 411 | enable other (broken) packages to build against
|
---|
| 412 | <application>XFree86</application>, even though the Filesystem Hierarchy
|
---|
| 413 | Standard says: <quote>In general, software must not be installed or managed
|
---|
| 414 | via the above symbolic links. They are intended for utilization by
|
---|
| 415 | users only.</quote></para>
|
---|
| 416 |
|
---|
| 417 | </sect2>
|
---|
| 418 |
|
---|
| 419 | <sect2 id="xfree86-contents" role="content"
|
---|
| 420 | xreflabel="XFree86 Contents and Descriptions">
|
---|
| 421 | <title>Contents</title>
|
---|
| 422 |
|
---|
| 423 | <para>The <application>XFree86</application> package contains the
|
---|
| 424 | <application>X Window System</application> for Linux (and other operating
|
---|
| 425 | systems). It includes the <application>X</application> server, fonts,
|
---|
| 426 | <command>xterm</command>, a simple window manager (<command>twm</command>),
|
---|
| 427 | various utilities, video output drivers, and various input drivers
|
---|
| 428 | including the mouse and keyboard.</para>
|
---|
| 429 |
|
---|
| 430 | <para><application>XFree86</application> also contains libraries and header
|
---|
| 431 | files for development of the <application>X Window System</application>
|
---|
| 432 | programs.</para>
|
---|
| 433 |
|
---|
| 434 | <note>
|
---|
| 435 | <para>The following lists are not comprehensive. The full list of
|
---|
[fb69e2e] | 436 | programs is (if you install into
|
---|
| 437 | <filename class="directory">/usr/X11R6</filename>) in
|
---|
| 438 | <filename class="directory">/usr/X11R6/bin</filename>.
|
---|
[06092fc] | 439 | For additional information about these programs, see the respective
|
---|
| 440 | man page.</para>
|
---|
| 441 | </note>
|
---|
| 442 |
|
---|
| 443 | <segmentedlist>
|
---|
| 444 | <segtitle>Installed Programs</segtitle>
|
---|
| 445 | <segtitle>Installed Libraries</segtitle>
|
---|
| 446 | <segtitle>Installed Directories</segtitle>
|
---|
| 447 |
|
---|
| 448 | <seglistitem>
|
---|
| 449 | <seg>XFree86, xf86config, xf86cfg, startx, xinit, twm, xterm,
|
---|
| 450 | xwininfo, x11perf, xlsfonts, xvidtune, xload, xcalc, xclock,
|
---|
| 451 | oclock, and xmodmap</seg>
|
---|
| 452 | <seg>libGL.so, libGLU.so, libSM.so, libXi.so, libXrender.so,
|
---|
| 453 | libXt.so, and libXfont.so</seg>
|
---|
| 454 | <seg>/usr/X11R6/ and /etc/X11/</seg>
|
---|
| 455 | </seglistitem>
|
---|
| 456 | </segmentedlist>
|
---|
| 457 |
|
---|
| 458 | <variablelist>
|
---|
| 459 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 460 | <?dbfo list-presentation="list"?>
|
---|
| 461 | <?dbhtml list-presentation="table"?>
|
---|
| 462 |
|
---|
| 463 | <varlistentry id="XFree86">
|
---|
| 464 | <term><command>XFree86</command></term>
|
---|
| 465 | <listitem>
|
---|
| 466 | <para>is the X11R6 implementation of the <application>X Window
|
---|
| 467 | System</application> server.</para>
|
---|
| 468 | <indexterm zone="xfree86 XFree86">
|
---|
| 469 | <primary sortas="b-XFree86">XFree86</primary>
|
---|
| 470 | </indexterm>
|
---|
| 471 | </listitem>
|
---|
| 472 | </varlistentry>
|
---|
| 473 |
|
---|
| 474 | <varlistentry id="xf86config">
|
---|
| 475 | <term><command>xf86config</command></term>
|
---|
| 476 | <listitem>
|
---|
| 477 | <para>is an interactive program for generating an
|
---|
| 478 | <filename>XF86Config</filename> file for use with
|
---|
| 479 | <application>XFree86</application> <application>X</application>
|
---|
| 480 | servers.</para>
|
---|
| 481 | <indexterm zone="xfree86 xf86config">
|
---|
| 482 | <primary sortas="b-xf86config">xf86config</primary>
|
---|
| 483 | </indexterm>
|
---|
| 484 | </listitem>
|
---|
| 485 | </varlistentry>
|
---|
| 486 |
|
---|
| 487 | <varlistentry id="xf86cfg">
|
---|
| 488 | <term><command>xf86cfg</command></term>
|
---|
| 489 | <listitem>
|
---|
| 490 | <para>is a tool to configure <application>XFree86</application>
|
---|
| 491 | that can be used to either write the initial configuration file
|
---|
| 492 | or make customizations to the current configuration.</para>
|
---|
| 493 | <indexterm zone="xfree86 xf86cfg">
|
---|
| 494 | <primary sortas="b-xf86cfg">xf86cfg</primary>
|
---|
| 495 | </indexterm>
|
---|
| 496 | </listitem>
|
---|
| 497 | </varlistentry>
|
---|
| 498 |
|
---|
| 499 | <varlistentry id="startx">
|
---|
| 500 | <term><command>startx</command></term>
|
---|
| 501 | <listitem>
|
---|
| 502 | <para>is a script to initialize the <application>X</application>
|
---|
| 503 | session. It runs <command>xinit</command>.</para>
|
---|
| 504 | <indexterm zone="xfree86 startx">
|
---|
| 505 | <primary sortas="b-startx">startx</primary>
|
---|
| 506 | </indexterm>
|
---|
| 507 | </listitem>
|
---|
| 508 | </varlistentry>
|
---|
| 509 |
|
---|
| 510 | <varlistentry id="xinit">
|
---|
| 511 | <term><command>xinit</command></term>
|
---|
| 512 | <listitem>
|
---|
| 513 | <para>is used to start the <application>X Window
|
---|
| 514 | System</application> server.</para>
|
---|
| 515 | <indexterm zone="xfree86 xinit">
|
---|
| 516 | <primary sortas="b-xinit">xinit</primary>
|
---|
| 517 | </indexterm>
|
---|
| 518 | </listitem>
|
---|
| 519 | </varlistentry>
|
---|
| 520 |
|
---|
| 521 | <varlistentry id="twm">
|
---|
| 522 | <term><command>twm</command></term>
|
---|
| 523 | <listitem>
|
---|
| 524 | <para>(Tab Window Manager) is a window manager included with the
|
---|
| 525 | <application>X Window System</application>.</para>
|
---|
| 526 | <indexterm zone="xfree86 twm">
|
---|
| 527 | <primary sortas="b-twm">twm</primary>
|
---|
| 528 | </indexterm>
|
---|
| 529 | </listitem>
|
---|
| 530 | </varlistentry>
|
---|
| 531 |
|
---|
| 532 | <varlistentry id="xterm">
|
---|
| 533 | <term><command>xterm</command></term>
|
---|
| 534 | <listitem>
|
---|
| 535 | <para>is a terminal emulator for <application>X</application>.</para>
|
---|
| 536 | <indexterm zone="xfree86 xterm">
|
---|
| 537 | <primary sortas="b-xterm">xterm</primary>
|
---|
| 538 | </indexterm>
|
---|
| 539 | </listitem>
|
---|
| 540 | </varlistentry>
|
---|
| 541 |
|
---|
| 542 | <varlistentry id="xwininfo">
|
---|
| 543 | <term><command>xwininfo</command></term>
|
---|
| 544 | <listitem>
|
---|
| 545 | <para>is a window information utility for
|
---|
| 546 | <application>X</application>.</para>
|
---|
| 547 | <indexterm zone="xfree86 xwininfo">
|
---|
| 548 | <primary sortas="b-xwininfo">xwininfo</primary>
|
---|
| 549 | </indexterm>
|
---|
| 550 | </listitem>
|
---|
| 551 | </varlistentry>
|
---|
| 552 |
|
---|
| 553 | <varlistentry id="x11perf">
|
---|
| 554 | <term><command>x11perf</command></term>
|
---|
| 555 | <listitem>
|
---|
| 556 | <para>is an <application>X</application>11 server performance
|
---|
| 557 | test program.</para>
|
---|
| 558 | <indexterm zone="xfree86 x11perf">
|
---|
| 559 | <primary sortas="b-x11perf">x11perf</primary>
|
---|
| 560 | </indexterm>
|
---|
| 561 | </listitem>
|
---|
| 562 | </varlistentry>
|
---|
| 563 |
|
---|
| 564 | <varlistentry id="xlsfonts">
|
---|
| 565 | <term><command>xlsfonts</command></term>
|
---|
| 566 | <listitem>
|
---|
| 567 | <para>is a program to list fonts available to the
|
---|
| 568 | <application>X</application> server.</para>
|
---|
| 569 | <indexterm zone="xfree86 xlsfonts">
|
---|
| 570 | <primary sortas="b-xlsfonts">xlsfonts</primary>
|
---|
| 571 | </indexterm>
|
---|
| 572 | </listitem>
|
---|
| 573 | </varlistentry>
|
---|
| 574 |
|
---|
| 575 | <varlistentry id="xvidtune">
|
---|
| 576 | <term><command>xvidtune</command></term>
|
---|
| 577 | <listitem>
|
---|
| 578 | <para>is a video mode tuner for
|
---|
| 579 | <application>XFree86</application>.</para>
|
---|
| 580 | <indexterm zone="xfree86 xvidtune">
|
---|
| 581 | <primary sortas="b-xvidtune">xvidtune</primary>
|
---|
| 582 | </indexterm>
|
---|
| 583 | </listitem>
|
---|
| 584 | </varlistentry>
|
---|
| 585 |
|
---|
| 586 | <varlistentry id="xload">
|
---|
| 587 | <term><command>xload</command></term>
|
---|
| 588 | <listitem>
|
---|
| 589 | <para> is a system load average display for
|
---|
| 590 | <application>X</application>.</para>
|
---|
| 591 | <indexterm zone="xfree86 xload">
|
---|
| 592 | <primary sortas="b-xload">xload</primary>
|
---|
| 593 | </indexterm>
|
---|
| 594 | </listitem>
|
---|
| 595 | </varlistentry>
|
---|
| 596 |
|
---|
| 597 | <varlistentry id="xcalc">
|
---|
| 598 | <term><command>xcalc</command></term>
|
---|
| 599 | <listitem>
|
---|
| 600 | <para>is a scientific calculator for
|
---|
| 601 | <application>X</application>.</para>
|
---|
| 602 | <indexterm zone="xfree86 xcalc">
|
---|
| 603 | <primary sortas="b-xcalc">xcalc</primary>
|
---|
| 604 | </indexterm>
|
---|
| 605 | </listitem>
|
---|
| 606 | </varlistentry>
|
---|
| 607 |
|
---|
| 608 | <varlistentry id="xclock">
|
---|
| 609 | <term><command>xclock</command></term>
|
---|
| 610 | <listitem>
|
---|
| 611 | <para>is a clock programs for <application>X</application>.</para>
|
---|
| 612 | <indexterm zone="xfree86 xclock">
|
---|
| 613 | <primary sortas="b-xclock">xclock</primary>
|
---|
| 614 | </indexterm>
|
---|
| 615 | </listitem>
|
---|
| 616 | </varlistentry>
|
---|
| 617 |
|
---|
| 618 | <varlistentry id="oclock">
|
---|
| 619 | <term><command>oclock</command></term>
|
---|
| 620 | <listitem>
|
---|
| 621 | <para>is a clock programs for <application>X</application>.</para>
|
---|
| 622 | <indexterm zone="xfree86 oclock">
|
---|
| 623 | <primary sortas="b-oclock">oclock</primary>
|
---|
| 624 | </indexterm>
|
---|
| 625 | </listitem>
|
---|
| 626 | </varlistentry>
|
---|
| 627 |
|
---|
| 628 | <varlistentry id="xmodmap">
|
---|
| 629 | <term><command>xmodmap</command></term>
|
---|
| 630 | <listitem>
|
---|
| 631 | <para>is a utility for modifying keymaps and pointer button
|
---|
| 632 | mappings in <application>X</application>.</para>
|
---|
| 633 | <indexterm zone="xfree86 xmodmap">
|
---|
| 634 | <primary sortas="b-xmodmap">xmodmap</primary>
|
---|
| 635 | </indexterm>
|
---|
| 636 | </listitem>
|
---|
| 637 | </varlistentry>
|
---|
| 638 |
|
---|
| 639 | </variablelist>
|
---|
| 640 |
|
---|
| 641 | </sect2>
|
---|
| 642 |
|
---|
[f45b1953] | 643 | </sect1>
|
---|