[f45b1953] | 1 | <sect2>
|
---|
[0d2f891] | 2 | <title>Configuring <application>XFree86</application></title>
|
---|
[f45b1953] | 3 |
|
---|
| 4 | <para>Edit <filename>/etc/ld.so.conf</filename> and add
|
---|
[0d2f891] | 5 | <filename class="directory">/usr/X11R6/lib</filename>.
|
---|
[5836d75] | 6 | Run</para> <screen><userinput><command>ldconfig</command></userinput></screen>
|
---|
[f45b1953] | 7 |
|
---|
[c9bc781d] | 8 | <para>Ensure <filename class='directory'>/usr/X11R6/bin</filename> is added to your
|
---|
| 9 | <envar>PATH</envar> environment variable. Instructions for doing this are described
|
---|
| 10 | in the section "<xref linkend='postlfs-config-profile'/>."</para>
|
---|
| 11 |
|
---|
[8d94e41] | 12 | <para>Expand the <envar>PKG_CONFIG_PATH</envar> so that other packages
|
---|
[c9bc781d] | 13 | can find <application>X</application> libraries. Procedures for this are also
|
---|
| 14 | described in the section "<xref linkend='postlfs-config-profile'/>."</para>
|
---|
[8d94e41] | 15 |
|
---|
[c9bc781d] | 16 | <para>Run:</para>
|
---|
[5836d75] | 17 | <screen><userinput><command>source ~/.bash_profile</command></userinput></screen>
|
---|
[f45b1953] | 18 |
|
---|
[19e9cee] | 19 | <para>Set up your mouse:
|
---|
[6aac02e] | 20 | <screen><userinput><command>ln -s psaux /dev/mouse</command></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 |
|
---|
[c9bc781d] | 25 | <para>Create the <filename>XF86Config</filename> file with:
|
---|
[0d2f891] | 26 | <screen><userinput><command>cd ~
|
---|
| 27 | XFree86 -configure</command></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
|
---|
[0d2f891] | 34 | page <command>man XF86Config</command>. Some things you may want to
|
---|
[19e9cee] | 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 |
|
---|
[0d2f891] | 44 | <listitem><para>Section "Monitor". Specify the <parameter>VertRefresh</parameter>
|
---|
| 45 | and <parameter>HorizSync</parameter> values if the system does not automatically
|
---|
[c49d8f0] | 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
|
---|
[0d2f891] | 50 | adding <parameter>Option "Autorepeat" "250 30"</parameter>.</para></listitem>
|
---|
[19e9cee] | 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
|
---|
[0d2f891] | 57 | as: <parameter>DefaultDepth 16</parameter>. In the SubSection for your
|
---|
[19e9cee] | 58 | default depth, add a modes line such
|
---|
[0d2f891] | 59 | as: <parameter> Modes "1280x1024" "1024x768"</parameter>.
|
---|
[19e9cee] | 60 | The first mode listed will normally be the starting
|
---|
| 61 | resolution.</para></listitem>
|
---|
| 62 |
|
---|
[f45b1953] | 63 | </itemizedlist>
|
---|
| 64 |
|
---|
[c9bc781d] | 65 | <para>Test the system with:
|
---|
[0d2f891] | 66 | <screen><userinput><command>XFree86 -xf86config ~/XF86Config.new</command></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 |
|
---|
[c9bc781d] | 73 | <para>Move the configuration file to its final location:</para>
|
---|
[5836d75] | 74 | <screen><userinput><command>mv ~/XF86Config.new /etc/X11/XF86Config</command></userinput></screen>
|
---|
[19e9cee] | 75 |
|
---|
[c9bc781d] | 76 | <para>Create <filename>.xinitrc</filename>:
|
---|
[0d2f891] | 77 | <screen><userinput><command>cat > ~/.xinitrc << "EOF"</command>
|
---|
[f45b1953] | 78 | # Begin .xinitrc file
|
---|
| 79 | xterm -g 80x40+0+0 &
|
---|
| 80 | xclock -g 100x100-0+0 &
|
---|
| 81 | twm
|
---|
[0d2f891] | 82 | <command>EOF</command></userinput></screen>
|
---|
[f45b1953] | 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 |
|
---|
[a0481ec9] | 87 | <note>
|
---|
| 88 |
|
---|
[fe88f584] | 89 | <para>When needed, <application>XFree86</application> creates the directory
|
---|
[a0481ec9] | 90 | <filename>/tmp/.ICE-unix</filename> if it does not exist. If this directory is
|
---|
[dac7717] | 91 | not owned by root, <application>XFree86</application> delays startup by a few seconds
|
---|
[a0481ec9] | 92 | and also appends a warning to the logfile. This also affects startup of other
|
---|
[fe88f584] | 93 | applications. To improve performance, it is advisable to manually create the directory
|
---|
| 94 | before XFree86 uses it. Add the file creation to <filename>/etc/sysconfig/createfiles</filename>
|
---|
| 95 | that is sourced by the
|
---|
[a0481ec9] | 96 | <filename>/etc/rc.d/init.d/cleanfs</filename> startup script.</para>
|
---|
| 97 |
|
---|
[fe88f584] | 98 | <screen><userinput><command>cat >> /etc/sysconfig/createfiles << "EOF"</command>
|
---|
[561a987] | 99 | /tmp/.ICE-unix dir 1777 root root
|
---|
[fe88f584] | 100 | <command>EOF</command></userinput></screen>
|
---|
[a0481ec9] | 101 |
|
---|
| 102 | </note>
|
---|
| 103 |
|
---|
[c9bc781d] | 104 | <para>Start <application>X</application> with:
|
---|
[0d2f891] | 105 | <screen><userinput><command>startx</command></userinput></screen>
|
---|
[c9bc781d] | 106 | to get a basic functional <application>X</application> Window System.</para>
|
---|
[19e9cee] | 107 |
|
---|
[f45b1953] | 108 | </sect2>
|
---|
| 109 |
|
---|