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