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