2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of XFree86</title>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Kernel Compilation Settings</title>
|
2002-09-15 05:47:22 +08:00
|
|
|
<para>If you have an Intel P6 (Pentium Pro, Pentium II and later) it is recommneded
|
2002-07-08 04:28:42 +08:00
|
|
|
that you compile MTRR (Memory Type Range Registers) support into the kernel.
|
|
|
|
The kernel can map Cyrix and AMD CPUs to the MTRR interface so selecting this
|
|
|
|
option is useful for those processors also.
|
|
|
|
This option is found in the
|
|
|
|
"Processor type and features" menu. It can increase performance of
|
2002-09-15 05:47:22 +08:00
|
|
|
image write operations 2.5 times or more on PCI or AGP video cards.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2002-09-15 05:47:22 +08:00
|
|
|
<para>In the "Character Devices" section, enable AGP Support and select the chipset
|
2002-07-08 04:28:42 +08:00
|
|
|
support on your motherboard. If you do not know the chipset, you may select
|
|
|
|
all the chip types at the expense of extra kernel size. You can usually
|
|
|
|
determine your motherboard's chipset by doing:
|
2002-09-15 05:47:22 +08:00
|
|
|
<screen><userinput>cat /proc/pci</userinput></screen></para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2002-09-15 05:47:22 +08:00
|
|
|
<para>In the "Character Devices" section, <emphasis>disable</emphasis> Direct
|
2002-07-08 04:28:42 +08:00
|
|
|
Rendering Manager unless you have a Direct Rendering Infrastructure (DRI)
|
2003-03-03 06:18:58 +08:00
|
|
|
supported video card. A complete list of DRI supported video cards can
|
|
|
|
be found at <ulink url="http://dri.sourceforge.net" /> in the Status section.
|
|
|
|
Currently,
|
|
|
|
supported cards include those from 3dfx (Voodoo, Banshee), 3Dlabs,
|
|
|
|
ATI (Rage Pro, Rage 128,
|
|
|
|
Radeon 7X00, Radeon 2), Intel (i810, i815), and Matrox (G200, G400, G450).
|
|
|
|
Additionally NVidia provides their own closed source binary drivers.
|
|
|
|
If you do enable DRI here, make sure you select the video card(s) you want
|
|
|
|
to support as a <emphasis>module</emphasis>.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
<para>If you made any changes to the kernel configuration, recompile with
|
2002-09-15 05:47:22 +08:00
|
|
|
<screen><userinput>make dep &&
|
2002-07-08 04:28:42 +08:00
|
|
|
make bzImage &&
|
|
|
|
make modules &&
|
2002-09-15 05:47:22 +08:00
|
|
|
make modules_install</userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
</para>
|
|
|
|
|
2002-09-15 05:47:22 +08:00
|
|
|
<para>Copy <filename>/usr/src/linux/arch/i386/boot/bzImage</filename> and
|
2002-07-08 04:28:42 +08:00
|
|
|
<filename>/usr/src/linux/System.map</filename> to
|
|
|
|
<filename>/boot</filename>, edit <filename>/etc/lilo.conf</filename>
|
2003-03-03 06:18:58 +08:00
|
|
|
appropriately and run <filename>lilo</filename>. If you use
|
|
|
|
<filename>grub</filename>, edit <filename>/boot/grub/grub.conf</filename>
|
|
|
|
and add the new kernel to the boot menu.
|
|
|
|
</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2002-09-15 05:47:22 +08:00
|
|
|
<note><para>If you build XFree86 in a chroot environment, make sure the kernel
|
|
|
|
version of the base system and the target system are the same. This is
|
|
|
|
especially important if you enabled DRI support as a module as
|
|
|
|
instructed above.</para></note>
|
2002-09-03 09:27:05 +08:00
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
</sect3>
|
2002-09-15 05:47:22 +08:00
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
<sect3><title>Creating <filename>host.def</filename></title>
|
|
|
|
|
|
|
|
<para>Although XFree86 will compile without a host.def file, the following file
|
|
|
|
is recommended for customizing the installation. Start from
|
|
|
|
the <filename>xc</filename> directory.</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>cat > config/cf/host.def << "EOF"
|
2003-01-02 02:00:44 +08:00
|
|
|
/* Begin XFree86 host.def file */
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
/* System Related Information. If you read and configure only one
|
|
|
|
* section then it should be this one. The Intel architecture defaults are
|
2002-08-24 09:22:44 +08:00
|
|
|
* set for a i686 and higher. Axp is for the Alpha architecture and Ppc is
|
|
|
|
* for the Power PC. Note that there have been reports that the Ppc
|
|
|
|
* optimization line causes segmentation faults during build. If that
|
|
|
|
* happens, try building without the DefaultGcc2PpcOpt line. **************/
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
#define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686
|
|
|
|
#define DefaultGcc2AxpOpt -O2 -mcpu=ev6
|
|
|
|
#define DefaultGcc2PpcOpt -O2 -mcpu=750
|
|
|
|
|
|
|
|
/* The following definitions are normally set properly by XFree86's scripts.
|
|
|
|
* You can uncomment them if you want to make sure. ************************/
|
|
|
|
|
2003-03-03 06:18:58 +08:00
|
|
|
/* #define HasMTRRSupport YES */ /* Enabled in kernel see kernel docs*/
|
2002-09-15 05:47:22 +08:00
|
|
|
/* #define HasMMXSupport NO */ /* Any i586 or above */
|
2002-07-08 04:28:42 +08:00
|
|
|
/* #define HasKatmaiSupport NO */ /* PIII SSE instuctions */
|
|
|
|
/* #define Has3DNowSupport NO */ /* AMD instructions */
|
|
|
|
|
|
|
|
|
|
|
|
/* This setting reduces compile time a little by omitting rarely used input
|
|
|
|
* devices. You can find the complete list in config/cf/xfree86.cf ********/
|
|
|
|
|
|
|
|
#define XInputDrivers mouse void
|
|
|
|
|
|
|
|
/* VIDEO DRIVERS ***********************************************************/
|
|
|
|
|
|
|
|
/* If you are sure you only want the drivers for one or a few video cards,
|
|
|
|
* you can delete the drivers you do not want. *****************************/
|
|
|
|
|
2003-03-03 06:18:58 +08:00
|
|
|
|
|
|
|
#define XF86CardDrivers mga glint nv tga s3 s3virge sis rendition \
|
|
|
|
neomagic i740 tdfx savage \
|
|
|
|
cirrus vmware tseng trident chips apm \
|
|
|
|
GlideDriver fbdev i128 nsc \
|
|
|
|
ati i810 AgpGartDrivers DevelDrivers ark \
|
|
|
|
cyrix siliconmotion \
|
|
|
|
vesa vga \
|
|
|
|
dummy XF86OSCardDrivers XF86ExtraCardDrivers
|
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
/* FONT SERVER AND LIBRARY SETTINGS ****************************************/
|
|
|
|
|
2003-03-03 06:18:58 +08:00
|
|
|
/* These settings are the defaults ***************************************/
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-03-03 06:18:58 +08:00
|
|
|
/* #define BuildFontServer YES */ /* For GhostScript Print Server*/
|
|
|
|
/* #define SharedLibFont YES */
|
|
|
|
/* #define CompressAllFonts YES */
|
|
|
|
/* #define GzipFontCompression YES */
|
2002-09-15 05:47:22 +08:00
|
|
|
|
2003-03-03 06:18:58 +08:00
|
|
|
/* These settings ensure we use our libraries ******************************/
|
2002-09-15 05:47:22 +08:00
|
|
|
#define HasFreetype2 YES
|
2003-03-03 06:18:58 +08:00
|
|
|
#define HasExpat YES
|
|
|
|
#define HasLibpng YES
|
|
|
|
#define HasZlib YES
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
/* The font path can be redefined in the XF86Config file *******************/
|
|
|
|
|
2003-03-03 06:18:58 +08:00
|
|
|
/*
|
2002-07-08 04:28:42 +08:00
|
|
|
#define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
|
|
|
|
$(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
|
|
|
|
$(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo
|
2003-03-03 06:18:58 +08:00
|
|
|
*/
|
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
/* INTERNATIONAL FONTS. Change to YES if you need any of them. These are
|
|
|
|
* the defaults. ***********************************************************/
|
|
|
|
|
2003-03-03 06:18:58 +08:00
|
|
|
/* #define BuildCyrillicFonts NO */
|
|
|
|
/* #define BuildArabicFonts NO */
|
|
|
|
/* #define BuildISO8859_6Fonts NO */
|
|
|
|
/* #define BuildGreekFonts NO */
|
|
|
|
/* #define BuildISO8859_7Fonts NO */
|
|
|
|
/* #define BuildHebrewFonts NO */
|
|
|
|
/* #define BuildISO8859_8Fonts NO */
|
|
|
|
/* #define BuildKOI8_RFonts NO */
|
|
|
|
/* #define BuildJapaneseFonts NO */
|
|
|
|
/* #define BuildJISX0201Fonts NO */
|
|
|
|
/* #define BuildKoreanFonts NO */
|
|
|
|
/* #define BuildChineseFonts NO */
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
/* DOCUMENTATION SETTINGS **************************************************/
|
|
|
|
|
|
|
|
/* These setting are the defaults. *****************************************/
|
|
|
|
|
2003-03-03 06:18:58 +08:00
|
|
|
/* #define BuildLinuxDocHtml NO */ /* X Docs in Html format */
|
|
|
|
/* #define BuildLinuxDocPS NO */ /* PostScript format */
|
|
|
|
/* #define BuildAllSpecsDocs NO */ /* Various docs */
|
|
|
|
/* #define BuildHtmlManPages NO */
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
/* GENERAL SETTINGS: You generally want to leave these alone when
|
|
|
|
* building X on an LFS system *********************************************/
|
|
|
|
|
2003-03-03 06:18:58 +08:00
|
|
|
#define GccWarningOptions -pipe /* Speed up compiles */
|
2002-07-08 04:28:42 +08:00
|
|
|
#define TermcapLibrary -lncurses
|
|
|
|
#define XprtServer YES /* Needed by realplayer */
|
|
|
|
#define XnestServer YES
|
|
|
|
#define XAppLoadDir EtcX11Directory/app-defaults
|
|
|
|
#define VarLibDir /var/lib
|
|
|
|
#define XFree86Devel NO
|
|
|
|
#define FSUseSyslog YES
|
|
|
|
#define ThreadedX YES
|
|
|
|
#define HasPam NO
|
2003-03-03 06:18:58 +08:00
|
|
|
#define SystemManDirectory /usr/share/man /* Instead of /usr/man */
|
2002-07-08 04:28:42 +08:00
|
|
|
#define HasLibCrypt YES
|
|
|
|
#define InstallXinitConfig YES
|
|
|
|
#define InstallXdmConfig YES
|
|
|
|
#define ForceNormalLib YES
|
|
|
|
#define BuildSpecsDocs NO
|
|
|
|
|
2003-01-02 02:00:44 +08:00
|
|
|
/* End XFree86 host.def file */
|
2002-07-08 04:28:42 +08:00
|
|
|
EOF</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Edit the file for your hardware and desires.</para>
|
2002-09-15 05:47:22 +08:00
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Build Commands</title>
|
|
|
|
<para>Install XFree86 by running the following commands:</para>
|
|
|
|
|
2002-09-03 09:27:05 +08:00
|
|
|
|
2003-03-03 06:18:58 +08:00
|
|
|
<para><screen><userinput>WORLDOPTS="" make World 2>&1 | tee xfree-compile.log &&
|
2002-09-15 05:47:22 +08:00
|
|
|
make install &&
|
|
|
|
make install.man &&
|
|
|
|
ln -sf /usr/X11R6/bin /usr/bin/X11 &&
|
|
|
|
ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &&
|
|
|
|
ln -sf /usr/X11R6/include/X11 /usr/include/X11</userinput></screen></para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
|