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