Ticket #2521: xfree.diff
File xfree.diff, 7.6 KB (added by , 17 years ago) |
---|
-
TabularUnified x/installing/x-setup.xml
80 80 create a basic X Window System configuration file with the following 81 81 commands:</para> 82 82 83 <para>For <application>Xorg</application>:</para>84 83 <screen><userinput>cd ~ && 85 84 Xorg -configure</userinput></screen> 86 85 87 <para>For <application>XFree86</application>:</para>88 <screen><userinput>cd ~ &&89 XFree86 -configure</userinput></screen>90 91 86 <indexterm zone="x-setup xconfig"> 92 87 <primary sortas="e-etc-X11-xorg-conf">/etc/X11/xorg.conf</primary> 93 88 </indexterm> 94 89 95 <indexterm zone="x-setup xconfig">96 <primary sortas="e-etc-X11-XF86Config">/etc/X11/XF86Config</primary>97 </indexterm>98 99 90 <para>The screen will go black and you may hear some clicking of the 100 monitor. This command will create a file in your 101 home directory, <filename>xorg.conf.new</filename> for 102 <application>Xorg</application>, or <filename>XF86Config.new</filename> 103 for <application>XFree86</application>.</para> 91 monitor. This command will create the <filename>xorg.conf.new</filename> 92 file in your home directory</para> 104 93 105 94 <para>Edit the newly created configuration file to suit your system. The 106 95 details of the files are located in the <filename>xorg.conf.5x</filename> 107 and <filename>XF86Config.5x</filename> man 108 pages. Some things you may want to do are:</para> 96 man page. Some things you may want to do are:</para> 109 97 110 98 <itemizedlist> 111 99 <listitem> … … 141 129 </listitem> 142 130 </itemizedlist> 143 131 144 <para>Test the system with one of the following command s:</para>132 <para>Test the system with one of the following command:</para> 145 133 146 <para>For <application>Xorg</application>:</para>147 134 <screen><userinput>X -config ~/xorg.conf.new</userinput></screen> 148 135 149 <para>For <application>XFree86</application>:</para>150 <screen><userinput>XFree86 -xf86config ~/XF86Config.new</userinput></screen>151 152 136 <para>You will only get a gray background with an X-shaped mouse cursor, 153 137 but it confirms the system is working. Exit with 154 138 <keycap>Control+Alt+Backspace</keycap>. If the system does not work, take 155 a look at <filename>/var/log/Xorg.0.log</filename> or 156 <filename>/var/log/XFree86.0.log</filename> to see what went 139 a look at <filename>/var/log/Xorg.0.log</filename> to see what went 157 140 wrong.</para> 158 141 159 142 <para>As the <systemitem class="username">root</systemitem> user, create … … 163 146 <para>For <application>Xorg</application>:</para> 164 147 <screen role="root"><userinput>install -v -m644 -D ~/xorg.conf.new /etc/X11/xorg.conf</userinput></screen> 165 148 166 <para>For <application>XFree86</application>:</para>167 <screen role="root"><userinput>install -v -m644 -D ~/XF86Config.new /etc/X11/XF86Config</userinput></screen>168 169 149 <para>As a convenience, Xorg-&xorg7-version; users should populate the 170 150 <filename class="directory">/etc/X11</filename> directory with symlinks 171 151 to various configuration directories that were located in 172 152 <filename class="directory">/etc/X11</filename> with previous 173 versions of <application>Xorg</application>. This step is not needed 174 for <application>XFree86</application> users. Execute the following 175 commands as the <systemitem class="username">root</systemitem> 176 user:</para> 153 versions of <application>Xorg</application>. 154 Execute the following commands as the 155 <systemitem class="username">root</systemitem> user:</para> 177 156 178 157 <screen><userinput role="root">mkdir $XORG_PREFIX/share/X11/twm && 179 158 ln -svt /etc/X11 \ … … 200 179 </indexterm> 201 180 202 181 <note> 203 <para>Both the default, and the BLFS configuration for 204 <application>Xorg</application> include <application>xterm</application>. 205 <application>Xorg</application>'s modular distribution no longer includes 206 <application>xterm</application>, and 207 as a result, the <command>startx</command> command will fail if you have 208 not installed <xref linkend="xterm2"/> when using the modular X Window 209 System. You can remove the <application>xterm</application> line in the 210 above config file to test the xserver, or install one of the other 211 terminal emulators and make appropriate changes.</para> 182 <para><application>Xorg</application> modular distribution no longer 183 includes the <application>xterm</application> terminal emulator, and 184 as a result, the <command>startx</command> command will fail if you don't 185 have <xref linkend="xterm2"/> installed. You can remove the 186 <application>xterm</application> line in the above config file to test 187 the xserver, or install one of the other terminal emulators and make 188 appropriate changes.</para> 212 189 </note> 213 190 214 191 <para>When needed, the X Window System creates the directory … … 281 258 </note> 282 259 283 260 <para>To check if DRI is installed properly, check the log file 284 <filename>/var/log/XFree86.0.log</filename> or285 261 <filename>/var/log/Xorg.0.log</filename> for statements like:</para> 286 262 287 263 <screen><literal>(II) R128(0): Direct rendering enabled</literal></screen> … … 332 308 <primary sortas="e-etc-X11-xorg-conf">/etc/X11/xorg.conf</primary> 333 309 </indexterm> 334 310 335 <indexterm zone="x-setup fonts">336 <primary sortas="e-etc-X11-XF86Config">/etc/X11/XF86Config</primary>337 </indexterm>338 339 311 <sect3> 340 312 <title>Core X Font Protocol</title> 341 313 … … 344 316 </indexterm> 345 317 346 318 <para>The core X font protocol finds fonts from the server configuration 347 file (<filename>xorg.conf</filename> or <filename>XF86Config</filename>). 348 If no font paths exist in the configuration file, the server will fall 349 back to an internal hard-coded path. Assuming the prefix for your 350 <application>X</application> installation is 351 <filename class="directory">/usr/X11R6</filename>, the core fonts will 352 reside in subdirectories of <filename 353 class="directory">/usr/X11R6/lib/X11/fonts</filename>. For each 319 file (<filename>xorg.conf</filename>). If no font paths exist in the 320 configuration file, the server will fall back to an internal hard-coded 321 path. Assuming the prefix for your <application>X</application> 322 installation is <filename class="directory">/usr/X11R6</filename>, the 323 core fonts will reside in subdirectories of 324 <filename class="directory">/usr/X11R6/lib/X11/fonts</filename>. For each 354 325 directory in the path, the server reads three files:</para> 355 326 356 327 <itemizedlist> … … 379 350 <filename>fonts.scale</filename> files by the server. The core X font 380 351 system uses the "freetype" module for non-antialiased rendering of these 381 352 fonts. Ensure that the "freetype" module is loaded in the 382 <filename> XF86config</filename> or <filename>xorg.conf</filename>383 file by adding it to the "Module" section:</para>353 <filename>xorg.conf</filename> file by adding it to the "Module" section: 354 </para> 384 355 385 356 <screen><literal>Section "Module" 386 357 ... … … 556 527 keyboard layouts do not include Latin configurations as was previous 557 528 practice. To set up a keyboard for Latin and non-Latin input, change 558 529 the XkbLayout keyboard driver option in the InputDevice section 559 of the <filename>XF86Config</filename> or <filename>xorg.conf</filename> 560 file. For example:</para> 530 of the <filename>xorg.conf</filename> file. For example:</para> 561 531 562 532 <screen><literal>Section "InputDevice" 563 533 Identifier "Keyboard0"