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</para> <screen><userinput><command>ldconfig</command></userinput></screen>
|
---|
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>Expand the <envar>PKG_CONFIG_PATH</envar> so that other packages
|
---|
16 | can find <application>XFree86</application> libraries. Add the following line to
|
---|
17 | <filename>.bash_profile</filename> for root user:</para>
|
---|
18 | <screen><userinput><command>export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig</command></userinput></screen>
|
---|
19 |
|
---|
20 | <para>Run</para>
|
---|
21 | <screen><userinput><command>source ~/.bash_profile</command></userinput></screen>
|
---|
22 |
|
---|
23 | <para>Set up your mouse:
|
---|
24 | <screen><userinput><command>ln -s psaux /dev/mouse</command></userinput></screen>
|
---|
25 |
|
---|
26 | Adjust the symbolic link as necessary for other types of mice. For instance,
|
---|
27 | a serial mouse on the first serial port would be linked to ttyS1.</para>
|
---|
28 |
|
---|
29 | <para>Create the <filename>XF86Config</filename> file with
|
---|
30 | <screen><userinput><command>cd ~
|
---|
31 | XFree86 -configure</command></userinput></screen>
|
---|
32 | The screen will go black and you may hear some clicking of the monitor. This
|
---|
33 | command will create a file, <filename>XF86Config.new</filename> in your home
|
---|
34 | directory.</para>
|
---|
35 |
|
---|
36 | <para>Edit <filename>XF86Config.new</filename> to suit your system. The
|
---|
37 | details of the file are located in the man
|
---|
38 | page <command>man XF86Config</command>. Some things you may want to
|
---|
39 | do are:</para>
|
---|
40 |
|
---|
41 | <itemizedlist>
|
---|
42 |
|
---|
43 | <listitem><para>Section "Files". Change the order of the font paths searched.
|
---|
44 | You may want to put 100dpi fonts ahead of 75dpi fonts if your system normally
|
---|
45 | comes up closer to 100 dots per inch. You may want to remove some font
|
---|
46 | directories completely.</para></listitem>
|
---|
47 |
|
---|
48 | <listitem><para>Section "Monitor". Specify the <parameter>VertRefresh</parameter>
|
---|
49 | and <parameter>HorizSync</parameter> values if the system does not automatically
|
---|
50 | detect the monitor and its values.</para></listitem>
|
---|
51 |
|
---|
52 | <listitem><para>Section "InputDevice". You may want to change the keyboard
|
---|
53 | autorepeat rate by
|
---|
54 | adding <parameter>Option "Autorepeat" "250 30"</parameter>.</para></listitem>
|
---|
55 |
|
---|
56 | <listitem><para>Section "Device". You may want to set some of the options
|
---|
57 | available for your selected video driver. A description of the driver
|
---|
58 | parameters is in the man page for your driver.</para></listitem>
|
---|
59 |
|
---|
60 | <listitem><para>Section "Screen". Add a DefaultDepth statement such
|
---|
61 | as: <parameter>DefaultDepth 16</parameter>. In the SubSection for your
|
---|
62 | default depth, add a modes line such
|
---|
63 | as: <parameter> Modes "1280x1024" "1024x768"</parameter>.
|
---|
64 | The first mode listed will normally be the starting
|
---|
65 | resolution.</para></listitem>
|
---|
66 |
|
---|
67 | </itemizedlist>
|
---|
68 |
|
---|
69 | <para>Test the system with
|
---|
70 | <screen><userinput><command>XFree86 -xf86config ~/XF86Config.new</command></userinput></screen>
|
---|
71 | You will only get a gray background with an X-shaped mouse cursor, but it
|
---|
72 | confirms the system is working. Exit with Control-Alt-Backspace. If the
|
---|
73 | system does not work, take a look
|
---|
74 | at <filename>/var/log/XFree86.0.log</filename> to see what went
|
---|
75 | wrong.</para>
|
---|
76 |
|
---|
77 | <para>Move the configuration file to its final location</para>
|
---|
78 | <screen><userinput><command>mv ~/XF86Config.new /etc/X11/XF86Config</command></userinput></screen>
|
---|
79 |
|
---|
80 | <para>Create <filename>.xinitrc</filename>
|
---|
81 | <screen><userinput><command>cat > ~/.xinitrc << "EOF"</command>
|
---|
82 | # Begin .xinitrc file
|
---|
83 | xterm -g 80x40+0+0 &
|
---|
84 | xclock -g 100x100-0+0 &
|
---|
85 | twm
|
---|
86 | <command>EOF</command></userinput></screen>
|
---|
87 | This provides an initial screen with an xterm and a clock that is managed by a
|
---|
88 | simple window manager, Tab Window Manager. For details of twm, see the
|
---|
89 | man page.</para>
|
---|
90 |
|
---|
91 | <note>
|
---|
92 |
|
---|
93 | <para>When needed, <application>XFree86</application> creates the directory
|
---|
94 | <filename>/tmp/.ICE-unix</filename> if it does not exist. If this directory is
|
---|
95 | not owned by root, <application>XFree86</application> delays startup by a few seconds
|
---|
96 | and also appends a warning to the logfile. This also affects startup of other
|
---|
97 | applications. To improve performance, it is advisable to manually create the directory
|
---|
98 | before XFree86 uses it. Add the file creation to <filename>/etc/sysconfig/createfiles</filename>
|
---|
99 | that is sourced by the
|
---|
100 | <filename>/etc/rc.d/init.d/cleanfs</filename> startup script.</para>
|
---|
101 |
|
---|
102 | <screen><userinput><command>cat >> /etc/sysconfig/createfiles << "EOF"</command>
|
---|
103 | /tmp/.ICE-unix dir 1777 root root
|
---|
104 | <command>EOF</command></userinput></screen>
|
---|
105 |
|
---|
106 | </note>
|
---|
107 |
|
---|
108 | <para>Start <application>X</application> with
|
---|
109 | <screen><userinput><command>startx</command></userinput></screen>
|
---|
110 | to get basic functional <application>X</application> Window System.</para>
|
---|
111 |
|
---|
112 | </sect2>
|
---|
113 |
|
---|