[feeb99a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY xfree86-download-http "http://gnu.kookel.org/ftp/XFree86/4.4.0/source/">
|
---|
| 8 | <!ENTITY xfree86-download-ftp "ftp://ftp.xfree86.org/pub/XFree86/4.4.0/source/">
|
---|
| 9 | <!ENTITY xfree86-size "52 MB">
|
---|
[df3a050] | 10 | <!ENTITY xfree86-buildsize "775 MB">
|
---|
| 11 | <!ENTITY xfree86-time "11.6 SBU">
|
---|
[feeb99a] | 12 | ]>
|
---|
| 13 |
|
---|
[b9ad2f9a] | 14 | <sect1 id="xfree86" xreflabel="XFree86-&xfree86-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[19aa75a] | 19 | <?dbhtml filename="xfree86.html" ?>
|
---|
[f45b1953] | 20 | <title>XFree86-&xfree86-version;</title>
|
---|
| 21 |
|
---|
[feeb99a] | 22 | <sect2>
|
---|
| 23 | <title>Introduction to <application>XFree86</application></title>
|
---|
| 24 |
|
---|
| 25 | <para><application>XFree86</application> is a freely redistributable
|
---|
| 26 | open-source implementation of the <application>X</application> Window System.
|
---|
| 27 | <application>XFree86</application> provides a client/server interface between
|
---|
| 28 | display hardware (the mouse, keyboard, and video displays) and the desktop
|
---|
| 29 | environment, while also providing both the windowing infrastructure and a
|
---|
| 30 | standardized application interface (<acronym>API</acronym>).</para>
|
---|
| 31 |
|
---|
| 32 | <sect3><title>Package information</title>
|
---|
| 33 | <itemizedlist spacing='compact'>
|
---|
| 34 | <listitem><para>Download (HTTP): <ulink url="&xfree86-download-http;"/></para></listitem>
|
---|
| 35 | <listitem><para>Download (FTP): <ulink url="&xfree86-download-ftp;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download size: &xfree86-size;</para></listitem>
|
---|
| 37 | <listitem><para>Estimated Disk space required: &xfree86-buildsize;</para></listitem>
|
---|
| 38 | <listitem><para>Estimated build time: &xfree86-time;</para></listitem></itemizedlist>
|
---|
| 39 | </sect3>
|
---|
| 40 |
|
---|
| 41 | <sect3><title><application>XFree86</application> dependencies</title>
|
---|
| 42 |
|
---|
| 43 | <sect4><title>Required</title>
|
---|
| 44 | <para><xref linkend="libpng"/></para>
|
---|
| 45 | </sect4>
|
---|
| 46 |
|
---|
| 47 | <sect4><title>Optional</title>
|
---|
[da4aff6] | 48 | <para><xref linkend="Linux_PAM"/>; the
|
---|
[df4e00d] | 49 | following packages are included in the <application>XFree86</application>
|
---|
| 50 | package, however they are updated more often than the
|
---|
| 51 | <application>XFree86</application> package and are highly recommended:
|
---|
[20f1da7] | 52 | <xref linkend="expat"/>, <xref linkend="freetype2"/>,
|
---|
| 53 | <xref linkend="fontconfig"/>.</para>
|
---|
[feeb99a] | 54 |
|
---|
| 55 | <note><para>If you choose not to install <application>expat</application>,
|
---|
[20f1da7] | 56 | <application>freetype2</application>, and <application>fontconfig</application>,
|
---|
| 57 | the <filename>host.def</filename> file below will have to be modified to
|
---|
[feeb99a] | 58 | instruct <application>XFree86</application> to build them.</para></note>
|
---|
| 59 | </sect4>
|
---|
| 60 |
|
---|
| 61 | </sect3>
|
---|
| 62 |
|
---|
| 63 | <sect3><title>Download Instructions</title>
|
---|
| 64 |
|
---|
[20f1da7] | 65 | <para>There are several files that need to be fetched from the download
|
---|
| 66 | location:</para>
|
---|
[feeb99a] | 67 | <itemizedlist spacing='compact'>
|
---|
| 68 | <listitem><para><filename>XFree86-4.4.0-src-1.tgz</filename></para></listitem>
|
---|
| 69 | <listitem><para><filename>XFree86-4.4.0-src-2.tgz</filename></para></listitem>
|
---|
| 70 | <listitem><para><filename>XFree86-4.4.0-src-3.tgz</filename></para></listitem>
|
---|
| 71 | <listitem><para><filename>XFree86-4.4.0-src-4.tgz</filename></para></listitem>
|
---|
| 72 | <listitem><para><filename>XFree86-4.4.0-src-5.tgz</filename></para></listitem>
|
---|
| 73 | <listitem><para><filename>XFree86-4.4.0-src-6.tgz</filename></para></listitem>
|
---|
| 74 | <listitem><para><filename>XFree86-4.4.0-src-7.tgz</filename></para></listitem>
|
---|
| 75 | </itemizedlist>
|
---|
| 76 |
|
---|
| 77 | <!--
|
---|
| 78 | <para>You should also download the patch files:</para>
|
---|
| 79 | <itemizedlist spacing='compact'>
|
---|
| 80 | <listitem><para>
|
---|
| 81 | <ulink url="ftp://ftp.xfree86.org/pub/XFree86/4.3.0/fixes/4.3.0-4.3.0.1.diff.gz" />
|
---|
| 82 | </para></listitem>
|
---|
| 83 | <listitem><para>
|
---|
| 84 | <ulink url="ftp://ftp.xfree86.org/pub/XFree86/4.3.0/fixes/fontfile.diff" />
|
---|
| 85 | </para></listitem>
|
---|
| 86 | </itemizedlist>
|
---|
| 87 | -->
|
---|
| 88 |
|
---|
[20f1da7] | 89 | <para>The first three packages are the <application>XFree86</application>
|
---|
| 90 | programs, the fourth and fifth are fonts, the sixth is normal documentation,
|
---|
| 91 | and the seventh is hardcopy documentation. There are also two packages
|
---|
| 92 | <filename>doctools-1.3.1.tgz</filename>, which contain programs to regenerate
|
---|
| 93 | hardcopy documentation, and <filename>utils-1.1.0.tgz</filename>, which contain
|
---|
[feeb99a] | 94 | <application><acronym>GNU</acronym> <acronym>TAR</acronym></application>
|
---|
| 95 | and <application>zlib</application> which are already installed on an
|
---|
| 96 | <acronym>LFS</acronym> system.</para>
|
---|
| 97 |
|
---|
[20f1da7] | 98 | <para>To check your downloads for integrity, download the
|
---|
| 99 | <filename>SUMS.md5sum</filename> file. Then:</para>
|
---|
[feeb99a] | 100 |
|
---|
| 101 | <screen><userinput><command>md5sum -c SUMS.md5sum</command></userinput></screen>
|
---|
| 102 |
|
---|
| 103 | <para>The only errors you should see are for <filename>README</filename>,
|
---|
| 104 | <filename>doctools-1.3.1.tgz</filename>, and
|
---|
| 105 | <filename>utils-1.1.0.tgz</filename> files if you did not download them.</para>
|
---|
| 106 |
|
---|
| 107 | <!--
|
---|
| 108 | <para>The fixes subdirectory also has a <filename>SUMS.md5sum</filename>. Note that
|
---|
| 109 | this is the same filename as the sums for the main sources, so you need to rename the
|
---|
| 110 | file if you download it. Otherwise, you can just look at it and use it to
|
---|
| 111 | check against the patch files:</para>
|
---|
| 112 | <screen><userinput><command>md5sum 4.3.0-4.3.0.1.diff.gz</command></userinput>
|
---|
| 113 | <userinput><command>md5sum fontfile.diff</command></userinput></screen>
|
---|
| 114 |
|
---|
| 115 | <para>After unpacking the <filename>X430src-?.tgz</filename> files and uncompressing the
|
---|
| 116 | diff file, change to the <filename class="directory">xc</filename> directory and run:</para>
|
---|
| 117 |
|
---|
| 118 | <screen><userinput><command>patch -Np1 -i ../4.3.0-4.3.0.1.diff</command></userinput>
|
---|
| 119 | <userinput><command>pushd lib/font/fontfile/</command></userinput>
|
---|
| 120 | <userinput><command>patch -N -i ../../../../fontfile.diff</command></userinput>
|
---|
| 121 | <userinput><command>popd</command></userinput></screen>
|
---|
| 122 | -->
|
---|
| 123 |
|
---|
| 124 | </sect3>
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2>
|
---|
| 128 | <title>Installation of <application>XFree86</application></title>
|
---|
| 129 |
|
---|
| 130 | <sect3>
|
---|
| 131 | <title>Kernel Compilation Settings</title>
|
---|
| 132 |
|
---|
| 133 | <para>If you have an Intel P6 (Pentium Pro, Pentium II and later), it is
|
---|
| 134 | recommended that you compile <acronym>MTRR</acronym> (Memory Type Range
|
---|
| 135 | Registers) support into the kernel. The kernel can map Cyrix and AMD
|
---|
| 136 | <acronym>CPU</acronym>s to the <acronym>MTRR</acronym> interface, so selecting
|
---|
| 137 | this option is useful for those processors also. This option is found in the
|
---|
| 138 | "Processor type and features" menu. It can increase performance of image write
|
---|
| 139 | operations 2.5 times or more on <acronym>PCI</acronym> or
|
---|
| 140 | <acronym>AGP</acronym> video cards.</para>
|
---|
| 141 |
|
---|
[20f1da7] | 142 | <para>In the "Character Devices" section, enable <acronym>AGP</acronym> Support
|
---|
| 143 | and select the chipset support on your motherboard. If you do not know the
|
---|
| 144 | chipset, you may select all the chip types at the expense of extra kernel size.
|
---|
| 145 | You can usually determine your motherboard's chipset by running the command
|
---|
| 146 | <command>lspci</command>, a program from the <xref linkend="pciutils"/> package.
|
---|
| 147 | </para>
|
---|
[feeb99a] | 148 |
|
---|
| 149 | <para>In the "Character Devices" section, <emphasis>disable</emphasis> Direct
|
---|
| 150 | Rendering Manager unless you have a Direct Rendering Infrastructure
|
---|
[20f1da7] | 151 | (<acronym>DRI</acronym>) supported video card. A complete list of
|
---|
| 152 | <acronym>DRI</acronym> supported video cards can be found at
|
---|
| 153 | <ulink url="http://dri.sourceforge.net" /> in the Status section. Currently,
|
---|
[feeb99a] | 154 | supported cards include those from 3dfx (Voodoo, Banshee), 3Dlabs,
|
---|
[20f1da7] | 155 | ATI (Rage Pro, Rage 128, Radeon 7X00, Radeon 2), Intel (i810, i815), and
|
---|
| 156 | Matrox (G200, G400, G450). If you do enable <acronym>DRI</acronym> here, make
|
---|
| 157 | sure you select the video card(s) you want to support as a
|
---|
| 158 | <emphasis>module</emphasis>.</para>
|
---|
[feeb99a] | 159 |
|
---|
| 160 | <para>Additionally NVidia provides their own closed source binary drivers,
|
---|
[20f1da7] | 161 | which do not make use of <acronym>DRI</acronym>. If you intend to use these
|
---|
| 162 | drivers, do not enable <acronym>DRI</acronym>.</para>
|
---|
[feeb99a] | 163 |
|
---|
[20f1da7] | 164 | <para>If you made any changes to the kernel configuration, recompile the
|
---|
| 165 | kernel.</para>
|
---|
[feeb99a] | 166 |
|
---|
| 167 | <para>Copy <filename>/usr/src/linux/arch/i386/boot/bzImage</filename> and
|
---|
| 168 | <filename>/usr/src/linux/System.map</filename> to
|
---|
| 169 | <filename>/boot</filename>, edit <filename>/etc/lilo.conf</filename>
|
---|
| 170 | appropriately and run <filename>lilo</filename>. If you use
|
---|
[20f1da7] | 171 | <filename>grub</filename>, edit <filename>/boot/grub/menu.lst</filename>
|
---|
[feeb99a] | 172 | and add the new kernel to the boot menu.
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
[20f1da7] | 175 | <note><para>If you build <application>XFree86</application> in a
|
---|
| 176 | <command>chroot</command> environment, make sure the kernel version of the base
|
---|
| 177 | system and the target system are the same. This is especially important if you
|
---|
| 178 | enabled <acronym>DRI</acronym> support as a module as instructed above.</para>
|
---|
| 179 | </note>
|
---|
[feeb99a] | 180 |
|
---|
| 181 | </sect3>
|
---|
| 182 |
|
---|
| 183 | <sect3><title>Creating <filename>host.def</filename></title>
|
---|
| 184 |
|
---|
| 185 | <para>Although <application>XFree86</application> will compile without a
|
---|
[20f1da7] | 186 | <filename>host.def</filename> file, the following file is recommended for
|
---|
| 187 | customizing the installation. Start from the
|
---|
| 188 | <filename class="directory">xc</filename> directory.</para>
|
---|
[feeb99a] | 189 |
|
---|
| 190 | <note><para>The <filename>host.def</filename> file is a
|
---|
[20f1da7] | 191 | <application>C</application> file, not the usual configuration file. If you
|
---|
| 192 | make any changes, be sure the comment characters (<userinput>/*</userinput>
|
---|
| 193 | and <userinput>*/</userinput>) are balanced. Most of the entries in the file
|
---|
| 194 | below are commented out with the default settings shown.</para></note>
|
---|
[feeb99a] | 195 |
|
---|
| 196 | <screen><userinput><command>cat > config/cf/host.def << "EOF"</command>
|
---|
| 197 | /* Begin XFree86 host.def file */
|
---|
| 198 |
|
---|
| 199 | /* System Related Information. If you read and configure only one
|
---|
| 200 | * section then it should be this one. The Intel architecture defaults are
|
---|
| 201 | * set for a i686 and higher. Axp is for the Alpha architecture and Ppc is
|
---|
| 202 | * for the Power PC. Note that there have been reports that the Ppc
|
---|
| 203 | * optimization line causes segmentation faults during build. If that
|
---|
| 204 | * happens, try building without the DefaultGcc2PpcOpt line. **************/
|
---|
| 205 |
|
---|
| 206 | /* #define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686 */
|
---|
| 207 | /* #define DefaultGcc2AxpOpt -O2 -mcpu=ev6 */
|
---|
| 208 | /* #define DefaultGcc2PpcOpt -O2 -mcpu=750 */
|
---|
| 209 |
|
---|
| 210 | /* The following definitions are normally set properly by XFree86's scripts.
|
---|
| 211 | * You can uncomment them if you want to make sure. ************************/
|
---|
| 212 |
|
---|
| 213 | /* #define HasMTRRSupport YES */ /* Enabled in kernel see kernel docs*/
|
---|
| 214 | /* #define HasMMXSupport NO */ /* Any i586 or above */
|
---|
| 215 | /* #define HasKatmaiSupport NO */ /* PIII SSE instructions */
|
---|
| 216 | /* #define Has3DNowSupport NO */ /* AMD instructions */
|
---|
| 217 |
|
---|
| 218 |
|
---|
| 219 | /* This setting reduces compile time a little by omitting rarely used input
|
---|
| 220 | * devices. You can find the complete list in config/cf/xfree86.cf ********/
|
---|
| 221 |
|
---|
| 222 | #define XInputDrivers mouse void
|
---|
| 223 |
|
---|
| 224 | /* VIDEO DRIVERS ***********************************************************/
|
---|
| 225 |
|
---|
| 226 | /* If you are sure you only want the drivers for one or a few video cards,
|
---|
| 227 | * you can delete the drivers you do not want. *****************************/
|
---|
| 228 |
|
---|
| 229 |
|
---|
| 230 | #define XF86CardDrivers mga glint nv tga s3 s3virge sis rendition \
|
---|
| 231 | neomagic i740 tdfx savage \
|
---|
| 232 | cirrus vmware tseng trident chips apm \
|
---|
| 233 | GlideDriver fbdev i128 nsc \
|
---|
| 234 | ati i810 AgpGartDrivers DevelDrivers ark \
|
---|
| 235 | cyrix siliconmotion \
|
---|
| 236 | vesa vga \
|
---|
| 237 | dummy XF86OSCardDrivers XF86ExtraCardDrivers
|
---|
| 238 |
|
---|
| 239 |
|
---|
| 240 | /* USER AND SYSTEM DEFAULT PATHS *******************************************/
|
---|
| 241 |
|
---|
| 242 | /* These settings set the PATH variables used by xdm. See README for *******/
|
---|
| 243 | /* detailed description and modify the following as per your need. *********/
|
---|
| 244 |
|
---|
| 245 | /* #define DefaultSystemPath /usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin */
|
---|
| 246 | /* #define DefaultUserPath /usr/bin:/bin:/usr/X11R6/bin */
|
---|
| 247 |
|
---|
| 248 | /* FONT SERVER AND LIBRARY SETTINGS ****************************************/
|
---|
| 249 |
|
---|
| 250 | /* These settings are the defaults ***************************************/
|
---|
| 251 |
|
---|
| 252 | /* #define BuildFontServer YES */ /* For Ghostscript Print Server*/
|
---|
| 253 | /* #define SharedLibFont YES */
|
---|
| 254 | /* #define CompressAllFonts YES */
|
---|
| 255 | /* #define GzipFontCompression YES */
|
---|
| 256 |
|
---|
| 257 | /* These settings ensure we use our libraries ******************************/
|
---|
| 258 | #define HasFreetype2 YES
|
---|
| 259 | #define HasFontconfig YES
|
---|
| 260 | #define HasExpat YES
|
---|
| 261 | #define HasLibpng YES
|
---|
| 262 | #define HasZlib YES
|
---|
| 263 |
|
---|
| 264 | /* The font path can be redefined in the XF86Config file *******************/
|
---|
| 265 |
|
---|
| 266 | /*
|
---|
| 267 | #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
|
---|
| 268 | $(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
|
---|
| 269 | $(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo
|
---|
| 270 | */
|
---|
| 271 |
|
---|
| 272 |
|
---|
| 273 | /* INTERNATIONAL FONTS. Change to YES if you need any of them. These are
|
---|
| 274 | * the defaults. ***********************************************************/
|
---|
| 275 |
|
---|
| 276 | /* #define BuildCyrillicFonts NO */
|
---|
| 277 | /* #define BuildArabicFonts NO */
|
---|
| 278 | /* #define BuildISO8859_6Fonts NO */
|
---|
| 279 | /* #define BuildGreekFonts NO */
|
---|
| 280 | /* #define BuildISO8859_7Fonts NO */
|
---|
| 281 | /* #define BuildHebrewFonts NO */
|
---|
| 282 | /* #define BuildISO8859_8Fonts NO */
|
---|
| 283 | /* #define BuildKOI8_RFonts NO */
|
---|
| 284 | /* #define BuildJapaneseFonts NO */
|
---|
| 285 | /* #define BuildJISX0201Fonts NO */
|
---|
| 286 | /* #define BuildKoreanFonts NO */
|
---|
| 287 | /* #define BuildChineseFonts NO */
|
---|
| 288 |
|
---|
| 289 | /* DOCUMENTATION SETTINGS **************************************************/
|
---|
| 290 |
|
---|
| 291 | /* These setting are the defaults. *****************************************/
|
---|
| 292 |
|
---|
| 293 | /* #define BuildLinuxDocHtml NO */ /* X Docs in Html format */
|
---|
| 294 | /* #define BuildLinuxDocPS NO */ /* PostScript format */
|
---|
| 295 | /* #define BuildAllSpecsDocs NO */ /* Various docs */
|
---|
| 296 | /* #define BuildHtmlManPages NO */
|
---|
| 297 |
|
---|
| 298 | /* GENERAL SETTINGS: You generally want to leave these alone when
|
---|
| 299 | * building X on an LFS system *********************************************/
|
---|
| 300 |
|
---|
| 301 | #define GccWarningOptions -pipe /* Speed up compiles */
|
---|
| 302 | #define TermcapLibrary -lncurses
|
---|
| 303 | #define XprtServer YES /* Needed by realplayer */
|
---|
| 304 | #define XnestServer YES
|
---|
| 305 | #define XAppLoadDir EtcX11Directory/app-defaults
|
---|
| 306 | #define VarLibDir /var/lib
|
---|
| 307 | #define XFree86Devel NO
|
---|
| 308 | #define FSUseSyslog YES
|
---|
| 309 | #define ThreadedX YES
|
---|
| 310 | #define HasPam NO
|
---|
| 311 | #define SystemManDirectory /usr/share/man /* Instead of /usr/man */
|
---|
| 312 | #define HasLibCrypt YES
|
---|
| 313 | #define InstallXinitConfig YES
|
---|
| 314 | #define InstallXdmConfig YES
|
---|
| 315 | #define ForceNormalLib YES
|
---|
| 316 | #define BuildSpecsDocs NO
|
---|
| 317 |
|
---|
| 318 | /* End XFree86 host.def file */
|
---|
| 319 | <command>EOF</command></userinput></screen>
|
---|
| 320 |
|
---|
| 321 | <para>Edit the file for your hardware and desires.</para>
|
---|
| 322 |
|
---|
| 323 | </sect3>
|
---|
| 324 |
|
---|
| 325 | <sect3>
|
---|
| 326 | <title>Build Commands</title>
|
---|
[20f1da7] | 327 | <para>Install <application>XFree86</application> by running the following
|
---|
| 328 | commands:</para>
|
---|
[feeb99a] | 329 |
|
---|
[df3a050] | 330 | <screen><userinput><command>sed -i -e "s@#include <linux/config.h>@/* & */@" \
|
---|
| 331 | `grep -lr linux/config.h *` &&
|
---|
[20f1da7] | 332 | ( make WORLDOPTS="" World 2>&1 | tee xfree-compile.log && exit $PIPESTATUS ) &&
|
---|
[feeb99a] | 333 | make install &&
|
---|
| 334 | make install.man &&
|
---|
| 335 | ln -sf ../X11R6/bin /usr/bin/X11 &&
|
---|
| 336 | ln -sf ../X11R6/lib/{X11,libGL.so{,.1}} /usr/lib &&
|
---|
| 337 | ln -sf ../X11R6/include/{X11,GL} /usr/include</command></userinput></screen>
|
---|
| 338 |
|
---|
| 339 | </sect3>
|
---|
| 340 |
|
---|
| 341 | <sect3>
|
---|
| 342 | <title>Updating Direct Rendering Infrastructure (<acronym>DRI</acronym>)</title>
|
---|
| 343 | <para>If you have one of the supported <acronym>DRI</acronym> cards and
|
---|
| 344 | have enabled <acronym>DRI</acronym> kernel modules as explained
|
---|
[20f1da7] | 345 | above, you now need to update the kernel modules to ensure they are compatible
|
---|
| 346 | with the current version of <application>XFree86</application>. To do this,
|
---|
| 347 | perform the following:</para>
|
---|
[feeb99a] | 348 |
|
---|
| 349 | <screen><userinput><command>cd programs/Xserver/hw/xfree86/os-support/linux/drm/kernel &&
|
---|
[20f1da7] | 350 | make -f Makefile.linux &&
|
---|
[feeb99a] | 351 | mkdir -p /lib/modules/`uname -r`/kernel/drivers/char/drm/ &&
|
---|
| 352 | cp gamma.o radeon.o sis.o r128.o i810.o i830.o mga.o tdfx.o \
|
---|
| 353 | /lib/modules/`uname -r`/kernel/drivers/char/drm/ &&
|
---|
| 354 | depmod -a</command></userinput></screen>
|
---|
| 355 |
|
---|
[20f1da7] | 356 | <warning><para>If you recompile or upgrade your kernel, you will need to
|
---|
| 357 | re-copy the appropriate driver module(s) to the kernel module library and rerun
|
---|
| 358 | <command>depmod -a</command>.</para></warning>
|
---|
[feeb99a] | 359 |
|
---|
[20f1da7] | 360 | <note><para>If you created <acronym>AGP</acronym> support as a module when
|
---|
| 361 | compiling the kernel, you may have to add a line to
|
---|
| 362 | <filename>/etc/modules.conf</filename> to ensure the agpgart module is loaded.
|
---|
| 363 | For instance, the <acronym>AGP</acronym> version of the Radeon video card will
|
---|
| 364 | use the <filename>radeon.o</filename> driver. It will need to have the line
|
---|
| 365 | <screen>below radeon agpgart</screen> in <filename>/etc/modules.conf</filename>
|
---|
| 366 | to enable <acronym>DRI</acronym> support.</para></note>
|
---|
[feeb99a] | 367 |
|
---|
| 368 | </sect3>
|
---|
| 369 | </sect2>
|
---|
| 370 |
|
---|
| 371 | <sect2>
|
---|
| 372 | <title>Command explanations</title>
|
---|
| 373 |
|
---|
[20f1da7] | 374 | <para><command>sed -i -e "s@#include <linux/config.h>@...</command>: The
|
---|
| 375 | <application>Linux-Libc-Headers</application> package installed in
|
---|
| 376 | <acronym>LFS</acronym> installs a
|
---|
| 377 | <filename>/usr/include/linux/config.h</filename> file which is not compatible
|
---|
| 378 | with userspace applications. The recommended fix for applications including
|
---|
| 379 | this file is to remove it (see <ulink
|
---|
| 380 | url="http://ep09.pld-linux.org/~mmazur/linux-libc-headers/doc/FAQ">
|
---|
| 381 | linux-libc-headers FAQ</ulink>). The <command>sed</command> uses
|
---|
| 382 | <command>grep -lr</command> to replace all occurences. If you desire, just
|
---|
| 383 | remove (comment) the line in the appropriate video driver file if you
|
---|
| 384 | customized <filename>host.def</filename>.
|
---|
| 385 | </para>
|
---|
| 386 |
|
---|
[feeb99a] | 387 | <para><command>( make WORLDOPTS="" World 2>&1 | tee xfree-compile.log
|
---|
| 388 | && exit $PIPESTATUS )</command>:
|
---|
[20f1da7] | 389 | This command runs multiple <filename>Makefile</filename>s to completely rebuild
|
---|
| 390 | the system. <envar>WORLDOPTS</envar>="" disables the default setting to
|
---|
| 391 | continue after encountering an error. <parameter>2>&1</parameter>
|
---|
| 392 | redirects error messages to the same location as standard output. The
|
---|
| 393 | <command>tee</command> command allows viewing of the output while logging the
|
---|
| 394 | results to a file. The parentheses around the command runs the entire comand in
|
---|
| 395 | a subshell and finally the <command>exit $PIPESTATUS</command> ensures the
|
---|
| 396 | result of the <command>make</command> is returned as the result and not the
|
---|
| 397 | result of the <command>tee</command> command.</para>
|
---|
| 398 |
|
---|
| 399 | <note><para>When rebuilding <application>XFree86</application>, a separate
|
---|
| 400 | command that may be used if only minor changes are made to the sources is
|
---|
| 401 | <command>make Everything</command>. This does not automatically remove
|
---|
| 402 | generated files and only rebuilds those files or programs that are out
|
---|
[feeb99a] | 403 | of date.</para></note>
|
---|
| 404 |
|
---|
| 405 | <para><screen><command>ln -sf ../X11R6/bin /usr/bin/X11
|
---|
| 406 | ln -sf ../X11R6/lib/{X11,libGL.so{,.1}} /usr/lib
|
---|
| 407 | ln -sf ../X11R6/include/{X11,GL} /usr/include</command></screen>
|
---|
| 408 | These commands are present to enable other (broken) packages to build
|
---|
[20f1da7] | 409 | against <application>XFree86</application>, even though the Filesystem
|
---|
| 410 | Hierarchy Standard says: "In general, software must not be installed or
|
---|
| 411 | managed via the above symbolic links. They are intended for utilization by
|
---|
| 412 | users only."</para>
|
---|
[feeb99a] | 413 |
|
---|
[20f1da7] | 414 | <!-- <para><command>make -f Makefile.linux</command>: This builds the
|
---|
| 415 | <application>XFree86</application> compatible kernel modules using the same
|
---|
| 416 | compiler used to compile the kernel.</para> -->
|
---|
[feeb99a] | 417 |
|
---|
| 418 | <para><command>cp gamma.o radeon.o sis.o r128.o i810.o i830.o mga.o tdfx.o
|
---|
| 419 | /lib/modules/`uname -r`/kernel/drivers/char/drm/</command>: Put the kernel
|
---|
| 420 | module(s) where the kernel can find them. You only need to copy the driver you
|
---|
| 421 | need to support your video card.</para>
|
---|
| 422 |
|
---|
| 423 | <para><command>depmod -a</command>: Update the modules.dep file for module
|
---|
| 424 | management.</para>
|
---|
| 425 |
|
---|
| 426 | </sect2>
|
---|
| 427 |
|
---|
| 428 | <sect2>
|
---|
| 429 | <title>Configuring <application>XFree86</application></title>
|
---|
| 430 |
|
---|
| 431 | <para>Edit <filename>/etc/ld.so.conf</filename> and add
|
---|
| 432 | <filename class="directory">/usr/X11R6/lib</filename>.
|
---|
[20f1da7] | 433 | Run: </para>
|
---|
| 434 | <screen><userinput><command>ldconfig</command></userinput></screen>
|
---|
[feeb99a] | 435 |
|
---|
[20f1da7] | 436 | <para>Ensure <filename class='directory'>/usr/X11R6/bin</filename> is added to
|
---|
| 437 | your <envar>PATH</envar> environment variable. Instructions for doing this are
|
---|
| 438 | described in the section "<xref linkend='postlfs-config-profile'/>."</para>
|
---|
[feeb99a] | 439 |
|
---|
| 440 | <para>Expand the <envar>PKG_CONFIG_PATH</envar> so that other packages
|
---|
| 441 | can find <application>X</application> libraries. Procedures for this are also
|
---|
| 442 | described in the section "<xref linkend='postlfs-config-profile'/>."</para>
|
---|
| 443 |
|
---|
| 444 | <para>Run:</para>
|
---|
| 445 | <screen><userinput><command>source ~/.bash_profile</command></userinput></screen>
|
---|
| 446 |
|
---|
| 447 | <para>Set up your mouse:
|
---|
| 448 | <screen><userinput><command>ln -s psaux /dev/mouse</command></userinput></screen>
|
---|
| 449 |
|
---|
| 450 | Adjust the symbolic link as necessary for other types of mice. For instance,
|
---|
[20f1da7] | 451 | a serial mouse on the first serial port would be linked to ttyS0.</para>
|
---|
[feeb99a] | 452 |
|
---|
| 453 | <para>Create the <filename>XF86Config</filename> file with:
|
---|
| 454 | <screen><userinput><command>cd ~
|
---|
| 455 | XFree86 -configure</command></userinput></screen>
|
---|
| 456 | The screen will go black and you may hear some clicking of the monitor. This
|
---|
| 457 | command will create a file, <filename>XF86Config.new</filename> in your home
|
---|
| 458 | directory.</para>
|
---|
| 459 |
|
---|
| 460 | <para>Edit <filename>XF86Config.new</filename> to suit your system. The
|
---|
[20f1da7] | 461 | details of the file are located in the man page
|
---|
| 462 | <command>man XF86Config</command>. Some things you may want to do are:</para>
|
---|
[feeb99a] | 463 |
|
---|
| 464 | <itemizedlist>
|
---|
| 465 |
|
---|
| 466 | <listitem><para>Section "Files". Change the order of the font paths searched.
|
---|
| 467 | You may want to put 100dpi fonts ahead of 75dpi fonts if your system normally
|
---|
| 468 | comes up closer to 100 dots per inch. You may want to remove some font
|
---|
| 469 | directories completely.</para></listitem>
|
---|
| 470 |
|
---|
[20f1da7] | 471 | <listitem><para>Section "Monitor". Specify the
|
---|
| 472 | <parameter>VertRefresh</parameter> and <parameter>HorizSync</parameter> values
|
---|
| 473 | if the system does not automatically detect the monitor and its values.</para>
|
---|
| 474 | </listitem>
|
---|
[feeb99a] | 475 |
|
---|
| 476 | <listitem><para>Section "InputDevice". You may want to change the keyboard
|
---|
[20f1da7] | 477 | autorepeat rate by adding <parameter>Option "Autorepeat" "250 30"</parameter>.
|
---|
| 478 | </para></listitem>
|
---|
[feeb99a] | 479 |
|
---|
| 480 | <listitem><para>Section "Device". You may want to set some of the options
|
---|
| 481 | available for your selected video driver. A description of the driver
|
---|
| 482 | parameters is in the man page for your driver.</para></listitem>
|
---|
| 483 |
|
---|
| 484 | <listitem><para>Section "Screen". Add a DefaultDepth statement such
|
---|
| 485 | as: <parameter>DefaultDepth 16</parameter>. In the SubSection for your
|
---|
[20f1da7] | 486 | default depth, add a modes line such as:
|
---|
| 487 | <parameter> Modes "1280x1024" "1024x768"</parameter>. The first mode listed
|
---|
| 488 | will normally be the starting resolution.</para></listitem>
|
---|
[feeb99a] | 489 |
|
---|
| 490 | </itemizedlist>
|
---|
| 491 |
|
---|
| 492 | <para>Test the system with:
|
---|
| 493 | <screen><userinput><command>XFree86 -xf86config ~/XF86Config.new</command></userinput></screen>
|
---|
| 494 | You will only get a gray background with an X-shaped mouse cursor, but it
|
---|
| 495 | confirms the system is working. Exit with Control-Alt-Backspace. If the
|
---|
[20f1da7] | 496 | system does not work, examine <filename>/var/log/XFree86.0.log</filename> to
|
---|
| 497 | see what went wrong.</para>
|
---|
[feeb99a] | 498 |
|
---|
| 499 | <para>Move the configuration file to its final location:</para>
|
---|
| 500 | <screen><userinput><command>mv ~/XF86Config.new /etc/X11/XF86Config</command></userinput></screen>
|
---|
| 501 |
|
---|
| 502 | <para>Create <filename>.xinitrc</filename>:
|
---|
| 503 | <screen><userinput><command>cat > ~/.xinitrc << "EOF"</command>
|
---|
| 504 | # Begin .xinitrc file
|
---|
| 505 | xterm -g 80x40+0+0 &
|
---|
| 506 | xclock -g 100x100-0+0 &
|
---|
| 507 | twm
|
---|
| 508 | <command>EOF</command></userinput></screen>
|
---|
| 509 | This provides an initial screen with an xterm and a clock that is managed by a
|
---|
[20f1da7] | 510 | simple window manager, Tab Window Manager. For details of
|
---|
| 511 | <command>twm</command>, see the man page.</para>
|
---|
[feeb99a] | 512 |
|
---|
| 513 | <note>
|
---|
| 514 |
|
---|
| 515 | <para>When needed, <application>XFree86</application> creates the directory
|
---|
| 516 | <filename>/tmp/.ICE-unix</filename> if it does not exist. If this directory is
|
---|
[20f1da7] | 517 | not owned by root, <application>XFree86</application> delays startup by a few
|
---|
| 518 | seconds and also appends a warning to the logfile. This also affects startup of
|
---|
| 519 | other applications. To improve performance, it is advisable to manually create
|
---|
| 520 | the directory before <application>XFree86</application> uses it. Add the file
|
---|
| 521 | creation to <filename>/etc/sysconfig/createfiles</filename> that is sourced by
|
---|
| 522 | the <filename>/etc/rc.d/init.d/cleanfs</filename> startup script.</para>
|
---|
[feeb99a] | 523 |
|
---|
| 524 | <screen><userinput><command>cat >> /etc/sysconfig/createfiles << "EOF"</command>
|
---|
| 525 | /tmp/.ICE-unix dir 1777 root root
|
---|
| 526 | <command>EOF</command></userinput></screen>
|
---|
| 527 |
|
---|
| 528 | </note>
|
---|
| 529 |
|
---|
| 530 | <para>Start <application>X</application> with:
|
---|
| 531 | <screen><userinput><command>startx</command></userinput></screen>
|
---|
| 532 | to get a basic functional <application>X</application> Window System.</para>
|
---|
| 533 |
|
---|
[d5d9ceb] | 534 | <para>At this point, you should check out <xref linkend='x-setup'/>.</para>
|
---|
| 535 |
|
---|
[feeb99a] | 536 | </sect2>
|
---|
| 537 |
|
---|
| 538 | <sect2>
|
---|
| 539 | <title>Contents</title>
|
---|
| 540 |
|
---|
| 541 | <para>The <application>XFree86</application> package contains the
|
---|
[20f1da7] | 542 | <application>X</application> Window System for Linux (and other operating
|
---|
| 543 | systems). It includes the <application>X</application> server, fonts,
|
---|
| 544 | <command>xterm</command>, a simple window manager (<command>twm</command>),
|
---|
| 545 | various utilities, video output drivers, and various input drivers including
|
---|
| 546 | the mouse and keyboard.</para>
|
---|
[feeb99a] | 547 |
|
---|
[20f1da7] | 548 | <para><application>XFree86</application> also contains libraries and header
|
---|
| 549 | files for development of the <application>X</application> Window System
|
---|
| 550 | programs.</para>
|
---|
[feeb99a] | 551 |
|
---|
| 552 | </sect2>
|
---|
| 553 |
|
---|
| 554 | <sect2><title>Description</title>
|
---|
| 555 |
|
---|
| 556 | <note><para>The following list of programs is not comprehensive. The
|
---|
[20f1da7] | 557 | full list is in <filename class="directory">/usr/X11R6/bin</filename>. For
|
---|
| 558 | additional information about these programs, see the respective man
|
---|
| 559 | page.</para></note>
|
---|
[feeb99a] | 560 |
|
---|
| 561 | <sect3>
|
---|
| 562 | <title>XFree86</title>
|
---|
| 563 | <para><application>XFree86</application> is the X11R6 implementation of
|
---|
| 564 | the <application>X</application> Window System server.
|
---|
| 565 | </para></sect3>
|
---|
| 566 |
|
---|
| 567 | <sect3><title>xf86config</title>
|
---|
| 568 | <para><command>xf86config</command> is an interactive program for
|
---|
| 569 | generating an <filename>XF86Config</filename> file for use with
|
---|
[20f1da7] | 570 | <application>XFree86</application> <application>X</application>
|
---|
| 571 | servers.</para></sect3>
|
---|
[feeb99a] | 572 |
|
---|
| 573 | <sect3><title>xf86cfg</title>
|
---|
| 574 | <para><command>xf86cfg</command> is a tool to configure
|
---|
| 575 | <application>XFree86</application> that can be used to either write the
|
---|
| 576 | initial configuration file or make customizations to the current
|
---|
| 577 | configuration.</para></sect3>
|
---|
| 578 |
|
---|
| 579 | <sect3><title>startx</title>
|
---|
| 580 | <para><command>startx</command> is a script to initialize the
|
---|
[20f1da7] | 581 | <application>X</application> session. It runs <command>xinit</command>.</para>
|
---|
| 582 | </sect3>
|
---|
[feeb99a] | 583 |
|
---|
| 584 | <sect3><title>xinit</title>
|
---|
| 585 | <para><command>xinit</command> is used to start the
|
---|
| 586 | <application>X</application> Window System server.</para></sect3>
|
---|
| 587 |
|
---|
| 588 | <sect3><title>twm</title>
|
---|
[20f1da7] | 589 | <para><command>twm</command> (Tab Window Manager) is a window manager included
|
---|
| 590 | with the <application>X</application> Window System.</para></sect3>
|
---|
[feeb99a] | 591 |
|
---|
| 592 | <sect3><title>xterm</title>
|
---|
| 593 | <para><command>xterm</command> is a terminal emulator for
|
---|
| 594 | <application>X</application>.</para></sect3>
|
---|
| 595 |
|
---|
| 596 | <sect3><title>xwininfo</title>
|
---|
| 597 | <para><command>xwininfo</command> is a window information utility for
|
---|
| 598 | <application>X</application>.</para></sect3>
|
---|
| 599 |
|
---|
| 600 | <sect3><title>x11perf</title>
|
---|
[20f1da7] | 601 | <para><command>x11perf</command> is an <application>X</application>11 server
|
---|
| 602 | performance test program.</para></sect3>
|
---|
[feeb99a] | 603 |
|
---|
| 604 | <sect3><title>xlsfonts</title>
|
---|
| 605 | <para><command>xlsfonts</command> is a program to list fonts available
|
---|
| 606 | to the <application>X</application> server.</para></sect3>
|
---|
| 607 |
|
---|
| 608 | <sect3><title>xvidtune</title>
|
---|
| 609 | <para><command>xvidtune</command> is a video mode tuner for
|
---|
| 610 | <application>XFree86</application>.</para></sect3>
|
---|
| 611 |
|
---|
| 612 | <sect3><title>xload</title>
|
---|
| 613 | <para><command>xload</command> is a system load average display for
|
---|
| 614 | <application>X</application>.</para></sect3>
|
---|
| 615 |
|
---|
| 616 | <sect3><title>xcalc</title>
|
---|
| 617 | <para><command>xcalc</command> is a scientific calculator for
|
---|
| 618 | <application>X</application>.</para></sect3>
|
---|
| 619 |
|
---|
| 620 | <sect3><title>xclock and oclock</title>
|
---|
| 621 | <para>Clock programs for <application>X</application>.</para></sect3>
|
---|
| 622 |
|
---|
| 623 | <sect3><title>xmodmap</title>
|
---|
[20f1da7] | 624 | <para><command>xmodmap</command> is a utility for modifying keymaps and pointer
|
---|
| 625 | button mappings in <application>X</application>.</para></sect3>
|
---|
[feeb99a] | 626 |
|
---|
| 627 | </sect2>
|
---|
[20f1da7] | 628 |
|
---|
[f45b1953] | 629 | </sect1>
|
---|