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