[f45b1953] | 1 | <sect2>
|
---|
| 2 | <title>Installation of XFree86</title>
|
---|
| 3 |
|
---|
| 4 | <sect3>
|
---|
| 5 | <title>Kernel Compilation Settings</title>
|
---|
[19e9cee] | 6 | <para>If you have an Intel P6 (Pentium Pro, Pentium II and later) it is recommneded
|
---|
[f45b1953] | 7 | that you compile MTRR (Memory Type Range Registers) support into the kernel.
|
---|
| 8 | The kernel can map Cyrix and AMD CPUs to the MTRR interface so selecting this
|
---|
| 9 | option is useful for those processors also.
|
---|
| 10 | This option is found in the
|
---|
| 11 | "Processor type and features" menu. It can increase performance of
|
---|
[19e9cee] | 12 | image write operations 2.5 times or more on PCI or AGP video cards.</para>
|
---|
[f45b1953] | 13 |
|
---|
[19e9cee] | 14 | <para>In the "Character Devices" section, enable AGP Support and select the chipset
|
---|
[f45b1953] | 15 | support on your motherboard. If you do not know the chipset, you may select
|
---|
| 16 | all the chip types at the expense of extra kernel size. You can usually
|
---|
| 17 | determine your motherboard's chipset by doing:
|
---|
[19e9cee] | 18 | <screen><userinput>cat /proc/pci</userinput></screen></para>
|
---|
[f45b1953] | 19 |
|
---|
[19e9cee] | 20 | <para>In the "Character Devices" section, <emphasis>disable</emphasis> Direct
|
---|
[f45b1953] | 21 | Rendering Manager unless you have a Direct Rendering Infrastructure (DRI)
|
---|
| 22 | supported video card. See the DRI section below for a list. If you do
|
---|
| 23 | enable DRI here, make sure you select the video card(s) you want to support
|
---|
[19e9cee] | 24 | as a <emphasis>module</emphasis>.</para>
|
---|
[f45b1953] | 25 |
|
---|
| 26 | <para>If you made any changes to the kernel configuration, recompile with
|
---|
[19e9cee] | 27 | <screen><userinput>make dep &&
|
---|
[f45b1953] | 28 | make bzImage &&
|
---|
| 29 | make modules &&
|
---|
[19e9cee] | 30 | make modules_install</userinput></screen>
|
---|
[f45b1953] | 31 | </para>
|
---|
| 32 |
|
---|
[19e9cee] | 33 | <para>Copy <filename>/usr/src/linux/arch/i386/boot/bzImage</filename> and
|
---|
[f45b1953] | 34 | <filename>/usr/src/linux/System.map</filename> to
|
---|
| 35 | <filename>/boot</filename>, edit <filename>/etc/lilo.conf</filename>
|
---|
[19e9cee] | 36 | appropriately and run <userinput>lilo</userinput>.</para>
|
---|
[f45b1953] | 37 |
|
---|
[19e9cee] | 38 | <note><para>If you build XFree86 in a chroot environment, make sure the kernel
|
---|
| 39 | version of the base system and the target system are the same. This is
|
---|
| 40 | especially important if you enabled DRI support as a module as
|
---|
| 41 | instructed above.</para></note>
|
---|
[7db5869] | 42 |
|
---|
[f45b1953] | 43 | </sect3>
|
---|
[19e9cee] | 44 |
|
---|
[f45b1953] | 45 | <sect3><title>Creating <filename>host.def</filename></title>
|
---|
| 46 |
|
---|
| 47 | <para>Although XFree86 will compile without a host.def file, the following file
|
---|
| 48 | is recommended for customizing the installation. Start from
|
---|
| 49 | the <filename>xc</filename> directory.</para>
|
---|
| 50 |
|
---|
| 51 | <para><screen><userinput>cat > config/cf/host.def << "EOF"
|
---|
[c78533e] | 52 | /* Begin XFree86 host.def file */
|
---|
[f45b1953] | 53 |
|
---|
| 54 | /* System Related Information. If you read and configure only one
|
---|
| 55 | * section then it should be this one. The Intel architecture defaults are
|
---|
[1c78953e] | 56 | * set for a i686 and higher. Axp is for the Alpha architecture and Ppc is
|
---|
| 57 | * for the Power PC. Note that there have been reports that the Ppc
|
---|
| 58 | * optimization line causes segmentation faults during build. If that
|
---|
| 59 | * happens, try building without the DefaultGcc2PpcOpt line. **************/
|
---|
[f45b1953] | 60 |
|
---|
| 61 | #define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686
|
---|
| 62 | #define DefaultGcc2AxpOpt -O2 -mcpu=ev6
|
---|
| 63 | #define DefaultGcc2PpcOpt -O2 -mcpu=750
|
---|
| 64 |
|
---|
| 65 | /* The following definitions are normally set properly by XFree86's scripts.
|
---|
| 66 | * You can uncomment them if you want to make sure. ************************/
|
---|
| 67 |
|
---|
| 68 | /* #define HasMTRRSupport YES */ /* Enabled in kernel see kernel docs */
|
---|
[19e9cee] | 69 | /* #define HasMMXSupport NO */ /* Any i586 or above */
|
---|
[f45b1953] | 70 | /* #define HasKatmaiSupport NO */ /* PIII SSE instuctions */
|
---|
| 71 | /* #define Has3DNowSupport NO */ /* AMD instructions */
|
---|
| 72 |
|
---|
| 73 |
|
---|
| 74 | /* This setting reduces compile time a little by omitting rarely used input
|
---|
| 75 | * devices. You can find the complete list in config/cf/xfree86.cf ********/
|
---|
| 76 |
|
---|
| 77 | #define XInputDrivers mouse void
|
---|
| 78 |
|
---|
| 79 | /* VIDEO DRIVERS ***********************************************************/
|
---|
| 80 |
|
---|
| 81 | /* If you are sure you only want the drivers for one or a few video cards,
|
---|
| 82 | * you can delete the drivers you do not want. *****************************/
|
---|
| 83 |
|
---|
| 84 | #define XF86CardDrivers mga glint nv tga s3virge rendition \
|
---|
| 85 | cirrus vmware tseng chips apm \
|
---|
| 86 | fbdev i128 \
|
---|
| 87 | ati AgpGartDrivers DevelDrivers ark cyrix \
|
---|
| 88 | vesa vga XF86OSCardDrivers
|
---|
| 89 |
|
---|
| 90 | /* FONT SERVER AND LIBRARY SETTINGS ****************************************/
|
---|
| 91 |
|
---|
| 92 | /* These setting should be set by default, but we are making sure. *********/
|
---|
| 93 |
|
---|
[19e9cee] | 94 | #define BuildFontServer YES /* Need for GhostScript Print Server */
|
---|
| 95 | #define SharedLibFont YES
|
---|
| 96 | #define CompressAllFonts YES
|
---|
| 97 | #define GzipFontCompression YES
|
---|
| 98 |
|
---|
| 99 | /* These setting ensure we use the proper version of freetype **************/
|
---|
| 100 | #define HasFreetype2 YES
|
---|
| 101 | #define BuildFreetype2Library NO
|
---|
| 102 | #define Freetype2Dir /usr
|
---|
[f45b1953] | 103 |
|
---|
| 104 | /* The font path can be redefined in the XF86Config file *******************/
|
---|
| 105 |
|
---|
| 106 | #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
|
---|
| 107 | $(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
|
---|
| 108 | $(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo
|
---|
| 109 |
|
---|
| 110 | /* INTERNATIONAL FONTS. Change to YES if you need any of them. These are
|
---|
| 111 | * the defaults. ***********************************************************/
|
---|
| 112 |
|
---|
| 113 | #define BuildCyrillicFonts NO
|
---|
| 114 | #define BuildArabicFonts NO
|
---|
| 115 | #define BuildISO8859_6Fonts NO
|
---|
| 116 | #define BuildGreekFonts NO
|
---|
| 117 | #define BuildISO8859_7Fonts NO
|
---|
| 118 | #define BuildHebrewFonts NO
|
---|
| 119 | #define BuildISO8859_8Fonts NO
|
---|
| 120 | #define BuildKOI8_RFonts NO
|
---|
| 121 | #define BuildJapaneseFonts NO
|
---|
| 122 | #define BuildJISX0201Fonts NO
|
---|
| 123 | #define BuildKoreanFonts NO
|
---|
| 124 | #define BuildChineseFonts NO
|
---|
| 125 |
|
---|
| 126 | /* DOCUMENTATION SETTINGS **************************************************/
|
---|
| 127 |
|
---|
| 128 | /* These setting are the defaults. *****************************************/
|
---|
| 129 |
|
---|
| 130 | #define BuildLinuxDocHtml NO /* X Docs in Html format */
|
---|
| 131 | #define BuildLinuxDocPS NO /* X Docs in PostScript format */
|
---|
| 132 | #define BuildAllSpecsDocs NO /* Various docs */
|
---|
| 133 | #define BuildHtmlManPages NO
|
---|
| 134 |
|
---|
| 135 | /* Linux Distribution Information - Not essential that it is totally right.*/
|
---|
| 136 |
|
---|
| 137 | #define LinuxDistribution LFS
|
---|
| 138 |
|
---|
| 139 | /* GENERAL SETTINGS: You generally want to leave these alone when
|
---|
| 140 | * building X on an LFS system *********************************************/
|
---|
| 141 |
|
---|
| 142 | #define GccWarningOptions -pipe
|
---|
| 143 | #define TermcapLibrary -lncurses
|
---|
| 144 | #define XprtServer YES /* Needed by realplayer */
|
---|
| 145 | #define XnestServer YES
|
---|
| 146 | #define XAppLoadDir EtcX11Directory/app-defaults
|
---|
| 147 | #define VarLibDir /var/lib
|
---|
| 148 | #define XFree86Devel NO
|
---|
| 149 | #define FSUseSyslog YES
|
---|
| 150 | #define ThreadedX YES
|
---|
| 151 | #define HasZlib YES
|
---|
| 152 | #define HasNCurses YES
|
---|
| 153 | #define HasPam NO
|
---|
| 154 | #define SystemManDirectory /usr/share/man
|
---|
| 155 | #define HasLibCrypt YES
|
---|
| 156 | #define InstallXinitConfig YES
|
---|
| 157 | #define InstallXdmConfig YES
|
---|
| 158 | #define ForceNormalLib YES
|
---|
| 159 | #define BuildSpecsDocs NO
|
---|
| 160 |
|
---|
[c78533e] | 161 | /* End XFree86 host.def file */
|
---|
[f45b1953] | 162 | EOF</userinput></screen></para>
|
---|
| 163 |
|
---|
| 164 | <para>Edit the file for your hardware and desires.</para>
|
---|
[19e9cee] | 165 |
|
---|
[f45b1953] | 166 | </sect3>
|
---|
| 167 |
|
---|
| 168 | <sect3>
|
---|
| 169 | <title>Build Commands</title>
|
---|
| 170 | <para>Install XFree86 by running the following commands:</para>
|
---|
| 171 |
|
---|
[7db5869] | 172 |
|
---|
[19e9cee] | 173 | <para><screen><userinput>patch -Np1 -i ../4.2.0-4.2.1.diff &&
|
---|
| 174 | make World 2>&1 | tee xfree-compile.log &&
|
---|
| 175 | make install &&
|
---|
| 176 | make install.man &&
|
---|
| 177 | ln -sf /usr/X11R6/bin /usr/bin/X11 &&
|
---|
| 178 | ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &&
|
---|
| 179 | ln -sf /usr/X11R6/include/X11 /usr/include/X11</userinput></screen></para>
|
---|
[f45b1953] | 180 |
|
---|
| 181 | </sect3>
|
---|
| 182 | </sect2>
|
---|
| 183 |
|
---|