1 | <sect2>
|
---|
2 | <title>Configuring <application>XFree86</application></title>
|
---|
3 |
|
---|
4 | <para>Edit <filename>/etc/ld.so.conf</filename> and add
|
---|
5 | <filename class="directory">/usr/X11R6/lib</filename>.
|
---|
6 | Run <screen><userinput><command>ldconfig</command></userinput></screen></para>
|
---|
7 |
|
---|
8 | <para>Add <filename class='directory'>/usr/X11R6/bin</filename> to your
|
---|
9 | <envar>PATH</envar> environment
|
---|
10 | variable in <filename>.bash_profile</filename>. The statement should
|
---|
11 | look something like <parameter>PATH=$PATH:/usr/X11R6/bin</parameter>
|
---|
12 | and be placed before the <command>export PATH</command>
|
---|
13 | statement.</para>
|
---|
14 |
|
---|
15 | <para>Run
|
---|
16 | <screen><userinput><command>source ~/.bash_profile</command></userinput></screen></para>
|
---|
17 |
|
---|
18 | <para>Set up your mouse:
|
---|
19 | <screen><userinput><command>cd /dev
|
---|
20 | ln -s psaux mouse</command></userinput></screen>
|
---|
21 |
|
---|
22 | Adjust the symbolic link as necessary for other types of mice. For instance,
|
---|
23 | a serial mouse on the first serial port would be linked to ttyS1.</para>
|
---|
24 |
|
---|
25 | <para>Create the <filename>XF86Config</filename> file with
|
---|
26 | <screen><userinput><command>cd ~
|
---|
27 | XFree86 -configure</command></userinput></screen>
|
---|
28 | The screen will go black and you may hear some clicking of the monitor. This
|
---|
29 | command will create a file, <filename>XF86Config.new</filename> in your home
|
---|
30 | directory.</para>
|
---|
31 |
|
---|
32 | <para>Edit <filename>XF86Config.new</filename> to suit your system. The
|
---|
33 | details of the file are located in the man
|
---|
34 | page <command>man XF86Config</command>. Some things you may want to
|
---|
35 | do are:</para>
|
---|
36 |
|
---|
37 | <itemizedlist>
|
---|
38 |
|
---|
39 | <listitem><para>Section "Files". Change the order of the font paths searched.
|
---|
40 | You may want to put 100dpi fonts ahead of 75dpi fonts if your system normally
|
---|
41 | comes up closer to 100 dots per inch. You may want to remove some font
|
---|
42 | directories completely.</para></listitem>
|
---|
43 |
|
---|
44 | <listitem><para>Section "Monitor". Specify the <parameter>VertRefresh</parameter>
|
---|
45 | and <parameter>HorizSync</parameter> values if the system does not automatically
|
---|
46 | detect the monitor and its values.</para></listitem>
|
---|
47 |
|
---|
48 | <listitem><para>Section "InputDevice". You may want to change the keyboard
|
---|
49 | autorepeat rate by
|
---|
50 | adding <parameter>Option "Autorepeat" "250 30"</parameter>.</para></listitem>
|
---|
51 |
|
---|
52 | <listitem><para>Section "Device". You may want to set some of the options
|
---|
53 | available for your selected video driver. A description of the driver
|
---|
54 | parameters is in the man page for your driver.</para></listitem>
|
---|
55 |
|
---|
56 | <listitem><para>Section "Screen". Add a DefaultDepth statement such
|
---|
57 | as: <parameter>DefaultDepth 16</parameter>. In the SubSection for your
|
---|
58 | default depth, add a modes line such
|
---|
59 | as: <parameter> Modes "1280x1024" "1024x768"</parameter>.
|
---|
60 | The first mode listed will normally be the starting
|
---|
61 | resolution.</para></listitem>
|
---|
62 |
|
---|
63 | </itemizedlist>
|
---|
64 |
|
---|
65 | <para>Test the system with
|
---|
66 | <screen><userinput><command>XFree86 -xf86config ~/XF86Config.new</command></userinput></screen>
|
---|
67 | You will only get a gray background with an X-shaped mouse cursor, but it
|
---|
68 | confirms the system is working. Exit with Control-Alt-Backspace. If the
|
---|
69 | system does not work, take a look
|
---|
70 | at <filename>/var/log/XFree86.0.log</filename> to see what went
|
---|
71 | wrong.</para>
|
---|
72 |
|
---|
73 | <para>Move the configuration file to its final location
|
---|
74 | <screen><userinput><command>mv ~/XF86Config.new /etc/X11/XF86Config</command></userinput></screen></para>
|
---|
75 |
|
---|
76 | <para>Create <filename>.xinitrc</filename>
|
---|
77 | <screen><userinput><command>cat > ~/.xinitrc << "EOF"</command>
|
---|
78 | # Begin .xinitrc file
|
---|
79 | xterm -g 80x40+0+0 &
|
---|
80 | xclock -g 100x100-0+0 &
|
---|
81 | twm
|
---|
82 | <command>EOF</command></userinput></screen>
|
---|
83 | This provides an initial screen with an xterm and a clock that is managed by a
|
---|
84 | simple window manager, Tab Window Manager. For details of twm, see the
|
---|
85 | man page.</para>
|
---|
86 |
|
---|
87 | <para>Start <application>X</application> with
|
---|
88 | <screen><userinput><command>startx</command></userinput></screen>
|
---|
89 | to get basic functional <application>X</application> Window System.</para>
|
---|
90 |
|
---|
91 | </sect2>
|
---|
92 |
|
---|