[f45b1953] | 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>.
|
---|
[071a954] | 6 | Run <screen><userinput>ldconfig</userinput></screen></para>
|
---|
[f45b1953] | 7 |
|
---|
[e68cc1c] | 8 | <para>Add <filename class='directory'>/usr/X11R6/bin</filename> to your
|
---|
| 9 | <envar>PATH</envar> environment
|
---|
[f45b1953] | 10 | variable in <filename>.bash_profile</filename>. The statement should
|
---|
| 11 | look something like <userinput>PATH=$PATH:/usr/X11R6/bin</userinput>
|
---|
[19e9cee] | 12 | and be placed before the <userinput>export PATH</userinput>
|
---|
| 13 | statement.</para>
|
---|
[f45b1953] | 14 |
|
---|
[19e9cee] | 15 | <para>Run
|
---|
[071a954] | 16 | <screen><userinput>source ~/.bash_profile</userinput></screen></para>
|
---|
[f45b1953] | 17 |
|
---|
[19e9cee] | 18 | <para>Set up your mouse:
|
---|
| 19 | <screen><userinput>cd /dev
|
---|
| 20 | ln -s psaux mouse</userinput></screen>
|
---|
[f45b1953] | 21 |
|
---|
| 22 | Adjust the symbolic link as necessary for other types of mice. For instance,
|
---|
[19e9cee] | 23 | a serial mouse on the first serial port would be linked to ttyS1.</para>
|
---|
[f45b1953] | 24 |
|
---|
| 25 | <para>Create the XF86Config file with
|
---|
[19e9cee] | 26 | <screen><userinput>cd ~
|
---|
| 27 | XFree86 -configure</userinput></screen>
|
---|
[f45b1953] | 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
|
---|
[19e9cee] | 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>
|
---|
[f45b1953] | 36 |
|
---|
| 37 | <itemizedlist>
|
---|
[19e9cee] | 38 |
|
---|
[f45b1953] | 39 | <listitem><para>Section "Files". Change the order of the font paths searched.
|
---|
[19e9cee] | 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 |
|
---|
[c49d8f0] | 44 | <listitem><para>Section "Monitor". Specify the <userinput>VertRefresh</userinput>
|
---|
| 45 | and <userinput>HorizSync</userinput> values if the system does not automatically
|
---|
| 46 | detect the monitor and its values.</para></listitem>
|
---|
[19e9cee] | 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 |
|
---|
[c49d8f0] | 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 |
|
---|
[19e9cee] | 56 | <listitem><para>Section "Screen". Add a DefaultDepth statement such
|
---|
| 57 | as: <userinput>DefaultDepth 16</userinput>. In the SubSection for your
|
---|
| 58 | default depth, add a modes line such
|
---|
| 59 | as: <userinput> Modes "1280x1024" "1024x768"</userinput>.
|
---|
| 60 | The first mode listed will normally be the starting
|
---|
| 61 | resolution.</para></listitem>
|
---|
| 62 |
|
---|
[f45b1953] | 63 | </itemizedlist>
|
---|
| 64 |
|
---|
[19e9cee] | 65 | <para>Test the system with
|
---|
| 66 | <screen><userinput>XFree86 -xf86config ~/XF86Config.new</userinput></screen>
|
---|
[5628618e] | 67 | You will only get a gray background with an X-shaped mouse cursor, but it
|
---|
[f45b1953] | 68 | confirms the system is working. Exit with Control-Alt-Backspace. If the
|
---|
[19e9cee] | 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 |
|
---|
[5628618e] | 73 | <para>Move the configuration file to its final location
|
---|
[c49d8f0] | 74 | <screen><userinput>mv ~/XF86Config.new /etc/X11/XF86Config</userinput></screen></para>
|
---|
[19e9cee] | 75 |
|
---|
| 76 | <para>Create <filename>.xinitrc</filename>
|
---|
[f45b1953] | 77 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
| 78 | # Begin .xinitrc file
|
---|
| 79 | xterm -g 80x40+0+0 &
|
---|
| 80 | xclock -g 100x100-0+0 &
|
---|
| 81 | twm
|
---|
| 82 | EOF</userinput></screen>
|
---|
| 83 | This provides an initial screen with an xterm and a clock that is managed by a
|
---|
[5628618e] | 84 | simple window manager, Tab Window Manager. For details of twm, see the
|
---|
[19e9cee] | 85 | man page.</para>
|
---|
| 86 |
|
---|
| 87 | <para>Start X with
|
---|
| 88 | <screen><userinput>startx</userinput></screen>
|
---|
[2bdf04b] | 89 | to get basic functional X Window System.</para>
|
---|
[19e9cee] | 90 |
|
---|
[f45b1953] | 91 | </sect2>
|
---|
| 92 |
|
---|