1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title>X Configuration</title>
<meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" />
<link rel="HOME" title="Slackware Linux Essentials" href="index.html" />
<link rel="PREVIOUS" title="Network File Systems"
href="network-configuration-nfs.html" />
<link rel="NEXT" title="xorgsetup" href="x-window-system-xorgsetup.html" />
<link rel="STYLESHEET" type="text/css" href="docbook.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body class="CHAPTER" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"
alink="#0000FF">
<div class="NAVHEADER">
<table summary="Header navigation table" width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<th colspan="3" align="center">Slackware Linux Essentials</th>
</tr>
<tr>
<td width="10%" align="left" valign="bottom"><a href="network-configuration-nfs.html"
accesskey="P">Prev</a></td>
<td width="80%" align="center" valign="bottom"></td>
<td width="10%" align="right" valign="bottom"><a href="x-window-system-xorgsetup.html"
accesskey="N">Next</a></td>
</tr>
</table>
<hr align="LEFT" width="100%" />
</div>
<div class="CHAPTER">
<h1><a id="X-WINDOW-SYSTEM" name="X-WINDOW-SYSTEM"></a>Chapter 6 X Configuration</h1>
<div class="TOC">
<dl>
<dt><b>Table of Contents</b></dt>
<dt>6.1 <a href="x-window-system.html#X-WINDOW-SYSTEM-XORGCONFIG"><tt
class="COMMAND">xorgconfig</tt></a></dt>
<dt>6.2 <a href="x-window-system-xorgsetup.html"><tt
class="COMMAND">xorgsetup</tt></a></dt>
<dt>6.3 <a href="x-window-system-xinitrc.html">xinitrc</a></dt>
<dt>6.4 <a href="x-window-system-xwmconfig.html"><tt
class="COMMAND">xwmconfig</tt></a></dt>
<dt>6.5 <a href="x-window-system-xdm.html"><tt class="COMMAND">xdm</tt></a></dt>
</dl>
</div>
<p>Starting with Slackware-10.0, the X Window environment in Slackware is provided by
Xorg. X is responsible for providing a graphical user interface. It is independent from
the operating system, unlike Windows or the MacOS.</p>
<p>The X Window System is implemented through many programs that run in userland. The two
main components are the server and the window manager. The server provides the lowlevel
functions for interacting with your video hardware, thus it is system specific. The
window manager sits on top of the server and provides the user interface. The advantage
to this is you can have many different graphical interfaces by simply changing the window
manager you use.</p>
<p>Configuring X can be a complex task. The reason for this is the vast numbers of video
cards available for the PC architecture, most of which use different programming
interfaces. Luckily, most cards today support basic video standards known as VESA, and if
your card is among them you'll be able to start X using the <tt
class="COMMAND">startx</tt> command right out of the box.</p>
<p>If this doesn't work with your card, or if you'd like to take advantage of the
high-performance features of your video card such as hardware acceleration or 3-D
hardware rendering, then you'll need to reconfigure X.</p>
<p>To configure X, you'll need to make an <tt class="FILENAME">/etc/X11/xorg.conf</tt>
file. This file contains lots of details about your video hardware, mouse, and monitor.
It's a very complex configuration file, but fortunately there are several programs to
help create one for you. We'll mention a few of them here.</p>
<div class="SECT1">
<h1 class="SECT1"><a id="X-WINDOW-SYSTEM-XORGCONFIG"
name="X-WINDOW-SYSTEM-XORGCONFIG">6.1 <tt class="COMMAND">xorgconfig</tt></a></h1>
<p>This is a simple menu driven frontend that's similar in feel to the Slackware
installer. It simply tells the X server to take a look at the card, and then set up the
best initial configuration file it can make based on the information it gathers. The
generated <tt class="FILENAME">/etc/X11/xorg.conf</tt> file should be a good starting
point for most systems (and should work without modification).</p>
<p>This is a text-based X configuration program that's designed for the advanced system
administrator. Here's a sample walkthrough using <tt class="COMMAND">xorgconfig</tt>.
First, start the program:</p>
<table border="0" bgcolor="#E0E0E0" width="100%">
<tr>
<td>
<pre class="SCREEN">
<samp class="PROMPT">#</samp> <kbd class="USERINPUT">xorgconfig</kbd>
</pre>
</td>
</tr>
</table>
<p>This will present a screenful of information about <tt
class="COMMAND">xorgconfig</tt>. To continue, press <kbd class="USERINPUT">ENTER</kbd>.
<tt class="COMMAND">xorgconfig</tt> will ask you to verify you have set your <tt
class="ENVAR">PATH</tt> correctly. It should be fine, so go ahead and hit <kbd
class="USERINPUT">ENTER</kbd>.</p>
<div class="FIGURE"><a id="X-WINDOW-SYSTEM-1" name="X-WINDOW-SYSTEM-1"></a>
<p><b>Figure 6-1. <tt class="COMMAND">xorgconfig</tt> Mouse Configuration</b></p>
<p><img src="x-window-system/xorgconfig1-w.png" /></p>
</div>
<p>Select your mouse from the menu presented. If you don't see your serial mouse listed,
pick the Microsoft protocol -- it's the most common and will probably work. Next <tt
class="COMMAND">xorgconfig</tt> will ask you about using <var
class="OPTION">ChordMiddle</var> and <var class="OPTION">Emulate3Buttons</var>. You'll
see these options described in detail on the screen. Use them if the middle button on
your mouse doesn't work under X, or if your mouse only has two buttons (<var
class="OPTION">Emulate3Buttons</var> lets you simulate the middle button by pressing both
buttons simultaneously). Then, enter the name of your mouse device. The default choice,
<tt class="FILENAME">/dev/mouse</tt>, should work since the link was configured during
Slackware setup. If you're running GPM (the Linux mouse server) in repeater mode, you can
set your mouse type to <tt class="FILENAME">/dev/gpmdata</tt> to have X get information
about the mouse through <tt class="COMMAND">gpm</tt>. In some cases (with busmice
especially) this can work better, but most users shouldn't do this.</p>
<p><tt class="COMMAND">xorgconfig</tt> will ask you about enabling special key bindings.
If you need this say “<kbd class="USERINPUT">y</kbd>”. Most users can say
“<kbd class="USERINPUT">n</kbd>” -- enter this if you're not sure.</p>
<div class="FIGURE"><a id="X-WINDOW-SYSTEM-2" name="X-WINDOW-SYSTEM-2"></a>
<p><b>Figure 6-2. <tt class="COMMAND">xorgconfig</tt> Horizontal Sync</b></p>
<p><img src="x-window-system/xorgconfig2-w.png" /></p>
</div>
<p>In the next section you enter the sync range for your monitor. To start configuring
your monitor, press <kbd class="USERINPUT">ENTER</kbd>. You will see a list of monitor
types -- choose one of them. Be careful not to exceed the specifications of your monitor.
Doing so could damage your hardware.</p>
<div class="FIGURE"><a id="X-WINDOW-SYSTEM-3" name="X-WINDOW-SYSTEM-3"></a>
<p><b>Figure 6-3. <tt class="COMMAND">xorgconfig</tt> Vertical Sync</b></p>
<p><img src="x-window-system/xorgconfig3-w.png" /></p>
</div>
<p>Specify the vertical sync range for your monitor (you should find this in the manual
for the monitor). xorgconfig will ask you to enter strings to identify the monitor type
in the <tt class="FILENAME">xorg.conf</tt> file. Enter anything you like on these 3 lines
(including nothing at all).</p>
<div class="FIGURE"><a id="X-WINDOW-SYSTEM-4" name="X-WINDOW-SYSTEM-4"></a>
<p><b>Figure 6-4. <tt class="COMMAND">xorgconfig</tt> Video Card</b></p>
<p><img src="x-window-system/xorgconfig4-w.png" /></p>
</div>
<p>Now you have the opportunity to look at the database of video card types. You'll want
to do this, so say “<kbd class="USERINPUT">y</kbd>”, and select a card from
the list shown. If you don't see your exact card, try selecting one that uses the same
chipset and it will probably work fine.</p>
<p>Next, tell <tt class="COMMAND">xorgconfig</tt> how much RAM you have on your video
card. <tt class="COMMAND">xorgconfig</tt> will want you to enter some more descriptive
text about your video card. If you like, you can enter descriptions on these three
lines.</p>
<p>You'll then be asked which display resolutions you want to use. Again, going with the
provided defaults should be fine to start with. Later on, you can edit the <tt
class="FILENAME">/etc/X11/xorg.conf</tt> file and rearrange the modes so 1024x768 (or
whatever mode you like) is the default.</p>
<p>At this point, the <tt class="COMMAND">xorgconfig</tt> program will ask if you'd like
to save the current configuration file. Answer yes, and the X configuration file is
saved, completing the setup process. You can start X now with the <tt
class="COMMAND">startx</tt> command.</p>
</div>
</div>
<div class="NAVFOOTER">
<hr align="LEFT" width="100%" />
<table summary="Footer navigation table" width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td width="33%" align="left" valign="top"><a href="network-configuration-nfs.html"
accesskey="P">Prev</a></td>
<td width="34%" align="center" valign="top"><a href="index.html"
accesskey="H">Home</a></td>
<td width="33%" align="right" valign="top"><a href="x-window-system-xorgsetup.html"
accesskey="N">Next</a></td>
</tr>
<tr>
<td width="33%" align="left" valign="top">Network File Systems</td>
<td width="34%" align="center" valign="top"> </td>
<td width="33%" align="right" valign="top"><tt class="COMMAND">xorgsetup</tt></td>
</tr>
</table>
</div>
</body>
</html>
|