[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 |
|
---|
| 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 |
|
---|
[f45b1953] | 59 | </itemizedlist>
|
---|
| 60 |
|
---|
[19e9cee] | 61 | <para>Test the system with
|
---|
| 62 | <screen><userinput>XFree86 -xf86config ~/XF86Config.new</userinput></screen>
|
---|
[5628618e] | 63 | You will only get a gray background with an X-shaped mouse cursor, but it
|
---|
[f45b1953] | 64 | confirms the system is working. Exit with Control-Alt-Backspace. If the
|
---|
[19e9cee] | 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 |
|
---|
[5628618e] | 69 | <para>Move the configuration file to its final location
|
---|
[19e9cee] | 70 | <screen><userinput>mv ~/XF86Config.new /etc/X11/XF86Config-4</userinput></screen></para>
|
---|
| 71 |
|
---|
| 72 | <para>Create <filename>.xinitrc</filename>
|
---|
[f45b1953] | 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
|
---|
[5628618e] | 80 | simple window manager, Tab Window Manager. For details of twm, see the
|
---|
[19e9cee] | 81 | man page.</para>
|
---|
| 82 |
|
---|
| 83 | <para>Start X with
|
---|
| 84 | <screen><userinput>startx</userinput></screen>
|
---|
[5628618e] | 85 | to get basic functional X Windows System.</para>
|
---|
[19e9cee] | 86 |
|
---|
[f45b1953] | 87 | </sect2>
|
---|
| 88 |
|
---|