source: x/installing/xfree86/xfree86-config.xml@ fe88f584

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk v5_1 v5_1-pre1 xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since fe88f584 was fe88f584, checked in by Tushar Teredesai <tushar@…>, 18 years ago

Completed lfs-bootscripts changes

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

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