2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Configuring XFree86</title>
|
|
|
|
|
|
|
|
<para>Edit <filename>/etc/ld.so.conf</filename> and add
|
|
|
|
<filename>/usr/X11R6/lib</filename>.
|
2003-03-03 06:18:58 +08:00
|
|
|
Run <screen><userinput>ldconfig</userinput></screen></para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-04-22 04:24:40 +08:00
|
|
|
<para>Add <filename class='directory'>/usr/X11R6/bin</filename> to your
|
|
|
|
<envar>PATH</envar> environment
|
2002-07-08 04:28:42 +08:00
|
|
|
variable in <filename>.bash_profile</filename>. The statement should
|
|
|
|
look something like <userinput>PATH=$PATH:/usr/X11R6/bin</userinput>
|
2002-09-15 05:47:22 +08:00
|
|
|
and be placed before the <userinput>export PATH</userinput>
|
|
|
|
statement.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2002-09-15 05:47:22 +08:00
|
|
|
<para>Run
|
2003-03-03 06:18:58 +08:00
|
|
|
<screen><userinput>source ~/.bash_profile</userinput></screen></para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2002-09-15 05:47:22 +08:00
|
|
|
<para>Set up your mouse:
|
|
|
|
<screen><userinput>cd /dev
|
|
|
|
ln -s psaux mouse</userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
Adjust the symbolic link as necessary for other types of mice. For instance,
|
2002-09-15 05:47:22 +08:00
|
|
|
a serial mouse on the first serial port would be linked to ttyS1.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
<para>Create the XF86Config file with
|
2002-09-15 05:47:22 +08:00
|
|
|
<screen><userinput>cd ~
|
|
|
|
XFree86 -configure</userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
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
|
2002-09-15 05:47:22 +08:00
|
|
|
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>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
<itemizedlist>
|
2002-09-15 05:47:22 +08:00
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
<listitem><para>Section "Files". Change the order of the font paths searched.
|
2002-09-15 05:47:22 +08:00
|
|
|
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>
|
|
|
|
|
2003-10-02 13:21:41 +08:00
|
|
|
<listitem><para>Section "Monitor". Specify the <userinput>VertRefresh</userinput>
|
|
|
|
and <userinput>HorizSync</userinput> values if the system does not automatically
|
|
|
|
detect the monitor and its values.</para></listitem>
|
2002-09-15 05:47:22 +08:00
|
|
|
|
|
|
|
<listitem><para>Section "InputDevice". You may want to change the keyboard
|
|
|
|
autorepeat rate by
|
|
|
|
adding <userinput>Option "Autorepeat" "250 30"</userinput>.</para></listitem>
|
|
|
|
|
2003-10-02 13:21:41 +08:00
|
|
|
<listitem><para>Section "Device". You may want to set some of the options
|
|
|
|
available for your selected video driver. A description of the driver
|
|
|
|
parameters is in the man page for your driver.</para></listitem>
|
|
|
|
|
2002-09-15 05:47:22 +08:00
|
|
|
<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>
|
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
</itemizedlist>
|
|
|
|
|
2002-09-15 05:47:22 +08:00
|
|
|
<para>Test the system with
|
|
|
|
<screen><userinput>XFree86 -xf86config ~/XF86Config.new</userinput></screen>
|
2003-04-08 05:14:53 +08:00
|
|
|
You will only get a gray background with an X-shaped mouse cursor, but it
|
2002-07-08 04:28:42 +08:00
|
|
|
confirms the system is working. Exit with Control-Alt-Backspace. If the
|
2002-09-15 05:47:22 +08:00
|
|
|
system does not work, take a look
|
|
|
|
at <filename>/var/log/XFree86.0.log</filename> to see what went
|
|
|
|
wrong.</para>
|
|
|
|
|
2003-04-08 05:14:53 +08:00
|
|
|
<para>Move the configuration file to its final location
|
2003-10-02 13:21:41 +08:00
|
|
|
<screen><userinput>mv ~/XF86Config.new /etc/X11/XF86Config</userinput></screen></para>
|
2002-09-15 05:47:22 +08:00
|
|
|
|
|
|
|
<para>Create <filename>.xinitrc</filename>
|
2002-07-08 04:28:42 +08:00
|
|
|
<screen><userinput>cat > ~/.xinitrc << "EOF"
|
|
|
|
# Begin .xinitrc file
|
|
|
|
xterm -g 80x40+0+0 &
|
|
|
|
xclock -g 100x100-0+0 &
|
|
|
|
twm
|
|
|
|
EOF</userinput></screen>
|
|
|
|
This provides an initial screen with an xterm and a clock that is managed by a
|
2003-04-08 05:14:53 +08:00
|
|
|
simple window manager, Tab Window Manager. For details of twm, see the
|
2002-09-15 05:47:22 +08:00
|
|
|
man page.</para>
|
|
|
|
|
|
|
|
<para>Start X with
|
|
|
|
<screen><userinput>startx</userinput></screen>
|
2003-09-26 12:00:46 +08:00
|
|
|
to get basic functional X Window System.</para>
|
2002-09-15 05:47:22 +08:00
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
</sect2>
|
|
|
|
|