source: x/installing/xfree86/xfree86-config.xml@ 07ba0069

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 v1_0 v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 07ba0069 was 7db5869, checked in by Bruce Dubbs <bdubbs@…>, 22 years ago

Fix typos in XFree86, add a warning about compiling in a chroot window, and changed XF86Config to XF86Config-4.

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

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