source: x/installing/xfree86/xfree86-config.xml@ 6aac02e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6aac02e was 6aac02e, checked in by Igor Živković <igor@…>, 20 years ago

fixed xfree86 symlinks

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2005 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.8 KB
RevLine 
[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]6Run</para> <screen><userinput><command>ldconfig</command></userinput></screen>
[f45b1953]7
[e68cc1c]8<para>Add <filename class='directory'>/usr/X11R6/bin</filename> to your
9<envar>PATH</envar> environment
[f45b1953]10variable in <filename>.bash_profile</filename>. The statement should
[0d2f891]11look something like <parameter>PATH=$PATH:/usr/X11R6/bin</parameter>
12and be placed before the <command>export PATH</command>
[19e9cee]13statement.</para>
[f45b1953]14
[8d94e41]15<para>Expand the <envar>PKG_CONFIG_PATH</envar> so that other packages
16can 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
[5836d75]20<para>Run</para>
21<screen><userinput><command>source ~/.bash_profile</command></userinput></screen>
[f45b1953]22
[19e9cee]23<para>Set up your mouse:
[6aac02e]24<screen><userinput><command>ln -s psaux /dev/mouse</command></userinput></screen>
[f45b1953]25
26Adjust the symbolic link as necessary for other types of mice. For instance,
[19e9cee]27a serial mouse on the first serial port would be linked to ttyS1.</para>
[f45b1953]28
[0d2f891]29<para>Create the <filename>XF86Config</filename> file with
30<screen><userinput><command>cd ~
31XFree86 -configure</command></userinput></screen>
[f45b1953]32The screen will go black and you may hear some clicking of the monitor. This
33command will create a file, <filename>XF86Config.new</filename> in your home
[19e9cee]34directory.</para>
35
36<para>Edit <filename>XF86Config.new</filename> to suit your system. The
37details of the file are located in the man
[0d2f891]38page <command>man XF86Config</command>. Some things you may want to
[19e9cee]39do are:</para>
[f45b1953]40
41<itemizedlist>
[19e9cee]42
[f45b1953]43<listitem><para>Section "Files". Change the order of the font paths searched.
[19e9cee]44You may want to put 100dpi fonts ahead of 75dpi fonts if your system normally
45comes up closer to 100 dots per inch. You may want to remove some font
46directories completely.</para></listitem>
47
[0d2f891]48<listitem><para>Section "Monitor". Specify the <parameter>VertRefresh</parameter>
49and <parameter>HorizSync</parameter> values if the system does not automatically
[c49d8f0]50detect the monitor and its values.</para></listitem>
[19e9cee]51
52<listitem><para>Section "InputDevice". You may want to change the keyboard
53autorepeat rate by
[0d2f891]54adding <parameter>Option "Autorepeat" "250 30"</parameter>.</para></listitem>
[19e9cee]55
[c49d8f0]56<listitem><para>Section "Device". You may want to set some of the options
57available for your selected video driver. A description of the driver
58parameters is in the man page for your driver.</para></listitem>
59
[19e9cee]60<listitem><para>Section "Screen". Add a DefaultDepth statement such
[0d2f891]61as: <parameter>DefaultDepth 16</parameter>. In the SubSection for your
[19e9cee]62default depth, add a modes line such
[0d2f891]63as: <parameter> Modes "1280x1024" "1024x768"</parameter>.
[19e9cee]64The first mode listed will normally be the starting
65resolution.</para></listitem>
66
[f45b1953]67</itemizedlist>
68
[19e9cee]69<para>Test the system with
[0d2f891]70<screen><userinput><command>XFree86 -xf86config ~/XF86Config.new</command></userinput></screen>
[5628618e]71You will only get a gray background with an X-shaped mouse cursor, but it
[f45b1953]72confirms the system is working. Exit with Control-Alt-Backspace. If the
[19e9cee]73system does not work, take a look
74at <filename>/var/log/XFree86.0.log</filename> to see what went
75wrong.</para>
76
[5836d75]77<para>Move the configuration file to its final location</para>
78<screen><userinput><command>mv ~/XF86Config.new /etc/X11/XF86Config</command></userinput></screen>
[19e9cee]79
80<para>Create <filename>.xinitrc</filename>
[0d2f891]81<screen><userinput><command>cat &gt; ~/.xinitrc &lt;&lt; "EOF"</command>
[f45b1953]82# Begin .xinitrc file
83xterm -g 80x40+0+0 &amp;
84xclock -g 100x100-0+0 &amp;
85twm
[0d2f891]86<command>EOF</command></userinput></screen>
[f45b1953]87This provides an initial screen with an xterm and a clock that is managed by a
[5628618e]88simple window manager, Tab Window Manager. For details of twm, see the
[19e9cee]89man page.</para>
90
[a0481ec9]91<note>
92
[fe88f584]93<para>When needed, <application>XFree86</application> creates the directory
[a0481ec9]94<filename>/tmp/.ICE-unix</filename> if it does not exist. If this directory is
[dac7717]95not owned by root, <application>XFree86</application> delays startup by a few seconds
[a0481ec9]96and also appends a warning to the logfile. This also affects startup of other
[fe88f584]97applications. To improve performance, it is advisable to manually create the directory
98before XFree86 uses it. Add the file creation to <filename>/etc/sysconfig/createfiles</filename>
99that is sourced by the
[a0481ec9]100<filename>/etc/rc.d/init.d/cleanfs</filename> startup script.</para>
101
[fe88f584]102<screen><userinput><command>cat &gt;&gt; /etc/sysconfig/createfiles &lt;&lt; "EOF"</command>
[561a987]103/tmp/.ICE-unix dir 1777 root root
[fe88f584]104<command>EOF</command></userinput></screen>
[a0481ec9]105
106</note>
107
[0d2f891]108<para>Start <application>X</application> with
109<screen><userinput><command>startx</command></userinput></screen>
110to get basic functional <application>X</application> Window System.</para>
[19e9cee]111
[f45b1953]112</sect2>
113
Note: See TracBrowser for help on using the repository browser.