1 | <sect2>
|
---|
2 | <title>Configuring XFree86</title>
|
---|
3 |
|
---|
4 | <para>Edit <filename>/etc/ld.so.conf</filename> and add
|
---|
5 | <filename>/usr/X11R6/lib</filename>.
|
---|
6 | Run <screen><userinput>ldconfig</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 <userinput>PATH=$PATH:/usr/X11R6/bin</userinput>
|
---|
12 | and be placed before the <userinput>export PATH</userinput>
|
---|
13 | statement.</para>
|
---|
14 |
|
---|
15 | <para>Run
|
---|
16 | <screen><userinput>source ~/.bash_profile</userinput></screen></para>
|
---|
17 |
|
---|
18 | <para>Set up your mouse:
|
---|
19 | <screen><userinput>cd /dev
|
---|
20 | ln -s psaux mouse</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 XF86Config file with
|
---|
26 | <screen><userinput>cd ~
|
---|
27 | XFree86 -configure</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 <userinput>man XF86Config</userinput>. 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 "Module". Remove or comment out some of the modules.
|
---|
45 | The "glx" and "dri" sections are not operational until we install DRI
|
---|
46 | below. Leaving modules in does not hurt anything.</para></listitem>
|
---|
47 |
|
---|
48 | <listitem><para>Section "InputDevice". You may want to change the keyboard
|
---|
49 | autorepeat rate by
|
---|
50 | adding <userinput>Option "Autorepeat" "250 30"</userinput>.</para></listitem>
|
---|
51 |
|
---|
52 | <listitem><para>Section "Screen". Add a DefaultDepth statement such
|
---|
53 | as: <userinput>DefaultDepth 16</userinput>. In the SubSection for your
|
---|
54 | default depth, add a modes line such
|
---|
55 | as: <userinput> Modes "1280x1024" "1024x768"</userinput>.
|
---|
56 | The first mode listed will normally be the starting
|
---|
57 | resolution.</para></listitem>
|
---|
58 |
|
---|
59 | </itemizedlist>
|
---|
60 |
|
---|
61 | <para>Test the system with
|
---|
62 | <screen><userinput>XFree86 -xf86config ~/XF86Config.new</userinput></screen>
|
---|
63 | You will only get a gray background with an X-shaped mouse cursor, but it
|
---|
64 | confirms the system is working. Exit with Control-Alt-Backspace. If the
|
---|
65 | system does not work, take a look
|
---|
66 | at <filename>/var/log/XFree86.0.log</filename> to see what went
|
---|
67 | wrong.</para>
|
---|
68 |
|
---|
69 | <para>Move the configuration file to its final location
|
---|
70 | <screen><userinput>mv ~/XF86Config.new /etc/X11/XF86Config-4</userinput></screen></para>
|
---|
71 |
|
---|
72 | <para>Create <filename>.xinitrc</filename>
|
---|
73 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
74 | # Begin .xinitrc file
|
---|
75 | xterm -g 80x40+0+0 &
|
---|
76 | xclock -g 100x100-0+0 &
|
---|
77 | twm
|
---|
78 | EOF</userinput></screen>
|
---|
79 | This provides an initial screen with an xterm and a clock that is managed by a
|
---|
80 | simple window manager, Tab Window Manager. For details of twm, see the
|
---|
81 | man page.</para>
|
---|
82 |
|
---|
83 | <para>Start X with
|
---|
84 | <screen><userinput>startx</userinput></screen>
|
---|
85 | to get basic functional X Windows System.</para>
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 |
|
---|