glfs/x/installing/xfree86/xfree86-config.xml
Bruce Dubbs 071a9540c3 Update to XFree86 4.3
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@744 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-03-02 22:18:58 +00:00

88 lines
3.3 KiB
XML

<sect2>
<title>Configuring XFree86</title>
<para>Edit <filename>/etc/ld.so.conf</filename> and add
<filename>/usr/X11R6/lib</filename>.
Run <screen><userinput>ldconfig</userinput></screen></para>
<para>Add <filename>/usr/X11R6/bin</filename> to your PATH environment
variable in <filename>.bash_profile</filename>. The statement should
look something like <userinput>PATH=$PATH:/usr/X11R6/bin</userinput>
and be placed before the <userinput>export PATH</userinput>
statement.</para>
<para>Run
<screen><userinput>source ~/.bash_profile</userinput></screen></para>
<para>Set up your mouse:
<screen><userinput>cd /dev
ln -s psaux mouse</userinput></screen>
Adjust the symbolic link as necessary for other types of mice. For instance,
a serial mouse on the first serial port would be linked to ttyS1.</para>
<para>Create the XF86Config file with
<screen><userinput>cd ~
XFree86 -configure</userinput></screen>
The screen will go black and you may hear some clicking of the monitor. This
command will create a file, <filename>XF86Config.new</filename> in your home
directory.</para>
<para>Edit <filename>XF86Config.new</filename> to suit your system. The
details of the file are located in the man
page <userinput>man XF86Config</userinput>. Some things you may want to
do are:</para>
<itemizedlist>
<listitem><para>Section "Files". Change the order of the font paths searched.
You may want to put 100dpi fonts ahead of 75dpi fonts if your system normally
comes up closer to 100 dots per inch. You may want to remove some font
directories completely.</para></listitem>
<listitem><para>Section "Module". Remove or comment out some of the modules.
The "glx" and "dri" sections are not operational until we install DRI
below. Leaving modules in does not hurt anything.</para></listitem>
<listitem><para>Section "InputDevice". You may want to change the keyboard
autorepeat rate by
adding <userinput>Option "Autorepeat" "250 30"</userinput>.</para></listitem>
<listitem><para>Section "Screen". Add a DefaultDepth statement such
as: <userinput>DefaultDepth 16</userinput>. In the SubSection for your
default depth, add a modes line such
as: <userinput> Modes "1280x1024" "1024x768"</userinput>.
The first mode listed will normally be the starting
resolution.</para></listitem>
</itemizedlist>
<para>Test the system with
<screen><userinput>XFree86 -xf86config ~/XF86Config.new</userinput></screen>
You will only get a grey background with an X-shaped mouse cursor, but it
confirms the system is working. Exit with Control-Alt-Backspace. If the
system does not work, take a look
at <filename>/var/log/XFree86.0.log</filename> to see what went
wrong.</para>
<para>Move the confiuration file to its final location
<screen><userinput>mv ~/XF86Config.new /etc/X11/XF86Config-4</userinput></screen></para>
<para>Create <filename>.xinitrc</filename>
<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
# Begin .xinitrc file
xterm -g 80x40+0+0 &amp;
xclock -g 100x100-0+0 &amp;
twm
EOF</userinput></screen>
This provides an initial screen with an xterm and a clock that is managed by a
simple window manager, Tab Winow Manager. For details of twm, see the
man page.</para>
<para>Start X with
<screen><userinput>startx</userinput></screen>
to get basic funtional X Windows System.</para>
</sect2>