1XSERVER(1) General Commands Manual XSERVER(1)
2
3
4
6 Xserver - X Window System display server
7
9 X [option ...]
10
12 X is the generic name for the X Window System display server. It is
13 frequently a link or a copy of the appropriate server binary for driv‐
14 ing the most frequently used server on a given machine.
15
17 The X server is usually started from the X Display Manager program
18 xdm(1) or a similar display manager program. This utility is run from
19 the system boot files and takes care of keeping the server running,
20 prompting for usernames and passwords, and starting up the user ses‐
21 sions.
22
23 Installations that run more than one window system may need to use the
24 xinit(1) utility instead of a display manager. However, xinit is to be
25 considered a tool for building startup scripts and is not intended for
26 use by end users. Site administrators are strongly urged to use a dis‐
27 play manager, or build other interfaces for novice users.
28
29 The X server may also be started directly by the user, though this
30 method is usually reserved for testing and is not recommended for nor‐
31 mal operation. On some platforms, the user must have special permis‐
32 sion to start the X server, often because access to certain devices
33 (e.g. /dev/mouse) is restricted.
34
35 When the X server starts up, it typically takes over the display. If
36 you are running on a workstation whose console is the display, you may
37 not be able to log into the console while the server is running.
38
40 Many X servers have device-specific command line options. See the man‐
41 ual pages for the individual servers for more details; a list of
42 server-specific manual pages is provided in the SEE ALSO section below.
43
44 All of the X servers accept the command line options described below.
45 Some X servers may have alternative ways of providing the parameters
46 described here, but the values provided via the command line options
47 should override values specified via other mechanisms.
48
49 :displaynumber
50 The X server runs as the given displaynumber, which by default
51 is 0. If multiple X servers are to run simultaneously on a
52 host, each must have a unique display number. See the DISPLAY
53 NAMES section of the X(7) manual page to learn how to specify
54 which display number clients should try to use.
55
56 -a number
57 sets pointer acceleration (i.e. the ratio of how much is
58 reported to how much the user actually moved the pointer).
59
60 -ac disables host-based access control mechanisms. Enables access
61 by any host, and permits any host to modify the access control
62 list. Use with extreme caution. This option exists primarily
63 for running test suites remotely.
64
65 -audit level
66 sets the audit trail level. The default level is 1, meaning
67 only connection rejections are reported. Level 2 additionally
68 reports all successful connections and disconnects. Level 4
69 enables messages from the SECURITY extension, if present,
70 including generation and revocation of authorizations and vio‐
71 lations of the security policy. Level 0 turns off the audit
72 trail. Audit lines are sent as standard error output.
73
74 -auth authorization-file
75 specifies a file which contains a collection of authorization
76 records used to authenticate access. See also the xdm(1) and
77 Xsecurity(7) manual pages.
78
79 -background none
80 Asks the driver not to clear the background on startup, if the
81 driver supports that. May be useful for smooth transition with
82 eg. fbdev driver. For security reasons this is not the default
83 as the screen contents might show a previous user session.
84
85 -br sets the default root window to solid black instead of the
86 standard root weave pattern. This is the default unless
87 -retro or -wr is specified.
88
89 -bs disables backing store support on all screens.
90
91 -c turns off key-click.
92
93 c volume
94 sets key-click volume (allowable range: 0-100).
95
96 -cc class
97 sets the visual class for the root window of color screens.
98 The class numbers are as specified in the X protocol. Not
99 obeyed by all servers.
100
101 -core causes the server to generate a core dump on fatal errors.
102
103 -displayfd fd
104 specifies a file descriptor in the launching process. Rather
105 than specify a display number, the X server will attempt to
106 listen on successively higher display numbers, and upon finding
107 a free one, will write the display number back on this file
108 descriptor as a newline-terminated string. The -pn option is
109 ignored when using -displayfd.
110
111 -deferglyphs whichfonts
112 specifies the types of fonts for which the server should
113 attempt to use deferred glyph loading. whichfonts can be all
114 (all fonts), none (no fonts), or 16 (16 bit fonts only).
115
116 -dpi resolution
117 sets the resolution for all screens, in dots per inch. To be
118 used when the server cannot determine the screen size(s) from
119 the hardware.
120
121 dpms enables DPMS (display power management services), where sup‐
122 ported. The default state is platform and configuration spe‐
123 cific.
124
125 -dpms disables DPMS (display power management services). The default
126 state is platform and configuration specific.
127
128 -extensionextensionName
129 disables named extension. If an unknown extension name is
130 specified, a list of accepted extension names is printed.
131
132 +extensionextensionName
133 enables named extension. If an unknown extension name is
134 specified, a list of accepted extension names is printed.
135
136 -f volume
137 sets beep (bell) volume (allowable range: 0-100).
138
139 -fc cursorFont
140 sets default cursor font.
141
142 -fn font
143 sets the default font.
144
145 -fp fontPath
146 sets the search path for fonts. This path is a comma separated
147 list of directories which the X server searches for font data‐
148 bases. See the FONTS section of this manual page for more
149 information and the default list.
150
151 -help prints a usage message.
152
153 -I causes all remaining command line arguments to be ignored.
154
155 -iglx Prohibit creating indirect GLX contexts. Indirect GLX is of
156 limited use, since it lacks support for many modern OpenGL fea‐
157 tures and extensions; it's slower than direct contexts; and it
158 opens a large attack surface for protocol parsing errors. This
159 is the default unless +iglx is specified.
160
161 +iglx Allow creating indirect GLX contexts.
162
163 -maxbigreqsize size
164 sets the maximum big request to size MB.
165
166 -nocursor
167 disable the display of the pointer cursor.
168
169 -nolisten trans-type
170 disables a transport type. For example, TCP/IP connections can
171 be disabled with -nolisten tcp. This option may be issued mul‐
172 tiple times to disable listening to different transport types.
173
174 -listen trans-type
175 enables a transport type. For example, TCP/IP connections can
176 be enabled with -listen tcp. This option may be issued multi‐
177 ple times to enable listening to different transport types.
178
179 -noreset
180 prevents a server reset when the last client connection is
181 closed. This overrides a previous -terminate command line
182 option.
183
184 -p minutes
185 sets screen-saver pattern cycle time in minutes.
186
187 -pn permits the server to continue running if it fails to establish
188 all of its well-known sockets (connection points for clients),
189 but establishes at least one. This option is set by default.
190
191 -nopn causes the server to exit if it fails to establish all of its
192 well-known sockets (connection points for clients).
193
194 -r turns off auto-repeat.
195
196 r turns on auto-repeat.
197
198 -retro starts the server with the classic stipple and cursor visible.
199 The default is to start with a black root window, and to sup‐
200 press display of the cursor until the first time an application
201 calls XDefineCursor(). For kdrive servers, this implies -zap.
202
203 -s minutes
204 sets screen-saver timeout time in minutes.
205
206 -su disables save under support on all screens.
207
208 -seat seat
209 seat to run on. Takes a string identifying a seat in a platform
210 specific syntax. On platforms which support this feature this
211 may be used to limit the server to expose only a specific sub‐
212 set of devices connected to the system.
213
214 -t number
215 sets pointer acceleration threshold in pixels (i.e. after how
216 many pixels pointer acceleration should take effect).
217
218 -terminate
219 causes the server to terminate at server reset, instead of con‐
220 tinuing to run. This overrides a previous -noreset command
221 line option.
222
223 -to seconds
224 sets default connection timeout in seconds.
225
226 -tst disables all testing extensions (e.g., XTEST, XTrap, XTestEx‐
227 tension1, RECORD).
228
229 ttyxx ignored, for servers started the ancient way (from init).
230
231 v sets video-off screen-saver preference.
232
233 -v sets video-on screen-saver preference.
234
235 -wm forces the default backing-store of all windows to be When‐
236 Mapped. This is a backdoor way of getting backing-store to
237 apply to all windows. Although all mapped windows will have
238 backing store, the backing store attribute value reported by
239 the server for a window will be the last value established by a
240 client. If it has never been set by a client, the server will
241 report the default value, NotUseful. This behavior is required
242 by the X protocol, which allows the server to exceed the
243 client's backing store expectations but does not provide a way
244 to tell the client that it is doing so.
245
246 -wr sets the default root window to solid white instead of the
247 standard root weave pattern.
248
249 -x extension
250 loads the specified extension at init. This is a no-op for
251 most implementations.
252
253 [+-]xinerama
254 enables(+) or disables(-) the XINERAMA extension. The default
255 state is platform and configuration specific.
256
258 Some X servers accept the following options:
259
260 -ld kilobytes
261 sets the data space limit of the server to the specified number
262 of kilobytes. A value of zero makes the data size as large as
263 possible. The default value of -1 leaves the data space limit
264 unchanged.
265
266 -lf files
267 sets the number-of-open-files limit of the server to the speci‐
268 fied number. A value of zero makes the limit as large as pos‐
269 sible. The default value of -1 leaves the limit unchanged.
270
271 -ls kilobytes
272 sets the stack space limit of the server to the specified num‐
273 ber of kilobytes. A value of zero makes the stack size as
274 large as possible. The default value of -1 leaves the stack
275 space limit unchanged.
276
277 -maxclients
278 64|128|256|512 Set the maximum number of clients allowed to
279 connect to the X server. Acceptable values are 64, 128, 256 or
280 512.
281
282 -render default|mono|gray|color sets the color allocation policy that
283 will be used by the render extension.
284
285 default selects the default policy defined for the display
286 depth of the X server.
287
288 mono don't use any color cell.
289
290 gray use a gray map of 13 color cells for the X render
291 extension.
292
293 color use a color cube of at most 4*4*4 colors (that is 64
294 color cells).
295
296 -dumbSched
297 disables smart scheduling on platforms that support the smart
298 scheduler.
299
300 -schedInterval interval
301 sets the smart scheduler's scheduling interval to interval mil‐
302 liseconds.
303
305 X servers that support XDMCP have the following options. See the X
306 Display Manager Control Protocol specification for more information.
307
308 -query hostname
309 enables XDMCP and sends Query packets to the specified host‐
310 name.
311
312 -broadcast
313 enable XDMCP and broadcasts BroadcastQuery packets to the net‐
314 work. The first responding display manager will be chosen for
315 the session.
316
317 -multicast [address [hop count]]
318 Enable XDMCP and multicast BroadcastQuery packets to the net‐
319 work. The first responding display manager is chosen for the
320 session. If an address is specified, the multicast is sent to
321 that address. If no address is specified, the multicast is
322 sent to the default XDMCP IPv6 multicast group. If a hop count
323 is specified, it is used as the maximum hop count for the mul‐
324 ticast. If no hop count is specified, the multicast is set to
325 a maximum of 1 hop, to prevent the multicast from being routed
326 beyond the local network.
327
328 -indirect hostname
329 enables XDMCP and send IndirectQuery packets to the specified
330 hostname.
331
332 -port port-number
333 uses the specified port-number for XDMCP packets, instead of
334 the default. This option must be specified before any -query,
335 -broadcast, -multicast, or -indirect options.
336
337 -from local-address
338 specifies the local address to connect from (useful if the con‐
339 necting host has multiple network interfaces). The local-
340 address may be expressed in any form acceptable to the host
341 platform's gethostbyname(3) implementation.
342
343 -once causes the server to terminate (rather than reset) when the
344 XDMCP session ends.
345
346 -class display-class
347 XDMCP has an additional display qualifier used in resource
348 lookup for display-specific options. This option sets that
349 value, by default it is "MIT-unspecified" (not a very useful
350 value).
351
352 -cookie xdm-auth-bits
353 When testing XDM-AUTHENTICATION-1, a private key is shared
354 between the server and the manager. This option sets the value
355 of that private data (not that it is very private, being on the
356 command line!).
357
358 -displayID display-id
359 Yet another XDMCP specific value, this one allows the display
360 manager to identify each display so that it can locate the
361 shared key.
362
364 X servers that support the XKEYBOARD (a.k.a. "XKB") extension accept
365 the following options. All layout files specified on the command line
366 must be located in the XKB base directory or a subdirectory, and speci‐
367 fied as the relative path from the XKB base directory. The default XKB
368 base directory is /usr/lib/X11/xkb.
369
370 [+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask ] ] ] ]
371 enables(+) or disables(-) AccessX key sequences.
372
373 -xkbdir directory
374 base directory for keyboard layout files. This option is not
375 available for setuid X servers (i.e., when the X server's real
376 and effective uids are different).
377
378 -ardelay milliseconds
379 sets the autorepeat delay (length of time in milliseconds that
380 a key must be depressed before autorepeat starts).
381
382 -arinterval milliseconds
383 sets the autorepeat interval (length of time in milliseconds
384 that should elapse between autorepeat-generated keystrokes).
385
386 -xkbmap filename
387 loads keyboard description in filename on server startup.
388
390 The X server supports client connections via a platform-dependent sub‐
391 set of the following transport types: TCP/IP, Unix Domain sockets, and
392 several varieties of SVR4 local connections. See the DISPLAY NAMES
393 section of the X(7) manual page to learn how to specify which transport
394 type clients should try to use.
395
397 The X server implements a platform-dependent subset of the following
398 authorization protocols: MIT-MAGIC-COOKIE-1, XDM-AUTHORIZATION-1, XDM-
399 AUTHORIZATION-2, SUN-DES-1, and MIT-KERBEROS-5. See the Xsecurity(7)
400 manual page for information on the operation of these protocols.
401
402 Authorization data required by the above protocols is passed to the
403 server in a private file named with the -auth command line option.
404 Each time the server is about to accept the first connection after a
405 reset (or when the server is starting), it reads this file. If this
406 file contains any authorization records, the local host is not automat‐
407 ically allowed access to the server, and only clients which send one of
408 the authorization records contained in the file in the connection setup
409 information will be allowed access. See the Xau manual page for a
410 description of the binary format of this file. See xauth(1) for main‐
411 tenance of this file, and distribution of its contents to remote hosts.
412
413 The X server also uses a host-based access control list for deciding
414 whether or not to accept connections from clients on a particular
415 machine. If no other authorization mechanism is being used, this list
416 initially consists of the host on which the server is running as well
417 as any machines listed in the file /etc/Xn.hosts, where n is the dis‐
418 play number of the server. Each line of the file should contain either
419 an Internet hostname (e.g. expo.lcs.mit.edu) or a complete name in the
420 format family:name as described in the xhost(1) manual page. There
421 should be no leading or trailing spaces on any lines. For example:
422
423 joesworkstation
424 corporate.company.com
425 inet:bigcpu
426 local:
427
428 Users can add or remove hosts from this list and enable or disable
429 access control using the xhost command from the same machine as the
430 server.
431
432 If the X FireWall Proxy (xfwp) is being used without a sitepolicy,
433 host-based authorization must be turned on for clients to be able to
434 connect to the X server via the xfwp. If xfwp is run without a config‐
435 uration file and thus no sitepolicy is defined, if xfwp is using an X
436 server where xhost + has been run to turn off host-based authorization
437 checks, when a client tries to connect to this X server via xfwp, the X
438 server will deny the connection. See xfwp(1) for more information
439 about this proxy.
440
441 The X protocol intrinsically does not have any notion of window opera‐
442 tion permissions or place any restrictions on what a client can do; if
443 a program can connect to a display, it has full run of the screen. X
444 servers that support the SECURITY extension fare better because clients
445 can be designated untrusted via the authorization they use to connect;
446 see the xauth(1) manual page for details. Restrictions are imposed on
447 untrusted clients that curtail the mischief they can do. See the SECU‐
448 RITY extension specification for a complete list of these restrictions.
449
450 Sites that have better authentication and authorization systems might
451 wish to make use of the hooks in the libraries and the server to pro‐
452 vide additional security models.
453
455 The X server attaches special meaning to the following signals:
456
457 SIGHUP This signal causes the server to close all existing connec‐
458 tions, free all resources, and restore all defaults. It is
459 sent by the display manager whenever the main user's main
460 application (usually an xterm or window manager) exits to force
461 the server to clean up and prepare for the next user.
462
463 SIGTERM This signal causes the server to exit cleanly.
464
465 SIGUSR1 This signal is used quite differently from either of the above.
466 When the server starts, it checks to see if it has inherited
467 SIGUSR1 as SIG_IGN instead of the usual SIG_DFL. In this case,
468 the server sends a SIGUSR1 to its parent process after it has
469 set up the various connection schemes. Xdm uses this feature
470 to recognize when connecting to the server is possible.
471
473 The X server can obtain fonts from directories and/or from font
474 servers. The list of directories and font servers the X server uses
475 when trying to open a font is controlled by the font path.
476
477 The default font path is catalogue:/etc/X11/fontpath.d,built-ins .
478
479 A special kind of directory can be specified using the catalogue: pre‐
480 fix. Directories specified this way can contain symlinks pointing to
481 the real font directories. See the FONTPATH.D section for details.
482
483 The font path can be set with the -fp option or by xset(1) after the
484 server has started.
485
487 You can specify a special kind of font path in the form cata‐
488 logue:<dir>. The directory specified after the catalogue: prefix will
489 be scanned for symlinks and each symlink destination will be added as a
490 local fontfile FPE.
491
492 The symlink can be suffixed by attributes such as 'unscaled', which
493 will be passed through to the underlying fontfile FPE. The only excep‐
494 tion is the newly introduced 'pri' attribute, which will be used for
495 ordering the font paths specified by the symlinks.
496
497 An example configuration:
498
499 75dpi:unscaled:pri=20 -> /usr/share/X11/fonts/75dpi
500 ghostscript:pri=60 -> /usr/share/fonts/default/ghostscript
501 misc:unscaled:pri=10 -> /usr/share/X11/fonts/misc
502 type1:pri=40 -> /usr/share/X11/fonts/Type1
503 type1:pri=50 -> /usr/share/fonts/default/Type1
504
505 This will add /usr/share/X11/fonts/misc as the first FPE with the
506 attribute 'unscaled', second FPE will be /usr/share/X11/fonts/75dpi,
507 also with the attribute 'unscaled' etc. This is functionally equivalent
508 to setting the following font path:
509
510 /usr/share/X11/fonts/misc:unscaled,
511 /usr/share/X11/fonts/75dpi:unscaled,
512 /usr/share/X11/fonts/Type1,
513 /usr/share/fonts/default/Type1,
514 /usr/share/fonts/default/ghostscript
515
516
518 /etc/Xn.hosts Initial access control list for display
519 number n
520
521 /usr/share/fonts/X11/misc,/usr/share/fonts/X11/75dpi,/usr/share/fonts/X11/100dpi
522 Bitmap font directories
523
524 /usr/share/fonts/X11/TTF,/usr/share/fonts/X11/Type1
525 Outline font directories
526
527 /tmp/.X11-unix/Xn Unix domain socket for display number n
528
529 /usr/adm/Xnmsgs Error log file for display number n if
530 run from init(8)
531
532 /usr/lib/X11/xdm/xdm-errors Default error log file if the server is
533 run from xdm(1)
534
536 General information: X(7)
537
538 Protocols: X Window System Protocol, The X Font Service Protocol, X
539 Display Manager Control Protocol
540
541 Fonts: bdftopcf(1), mkfontdir(1), mkfontscale(1), xfs(1), xlsfonts(1),
542 xfontsel(1), xfd(1), X Logical Font Description Conventions
543
544 Keyboards: xkeyboard-config(7)
545
546 Security: Xsecurity(7), xauth(1), Xau(1), xdm(1), xhost(1), xfwp(1),
547 Security Extension Specification
548
549 Starting the server: startx(1), xdm(1), xinit(1)
550
551 Controlling the server once started: xset(1), xsetroot(1), xhost(1),
552 xinput(1), xrandr(1)
553
554 Server-specific man pages: Xorg(1), Xdmx(1), Xephyr(1), Xnest(1),
555 Xvfb(1), Xquartz(1), XWin(1).
556
557 Server internal documentation: Definition of the Porting Layer for the
558 X v11 Sample Server
559
561 The sample server was originally written by Susan Angebranndt, Raymond
562 Drewry, Philip Karlton, and Todd Newman, from Digital Equipment Corpo‐
563 ration, with support from a large cast. It has since been extensively
564 rewritten by Keith Packard and Bob Scheifler, from MIT. Dave Wiggins
565 took over post-R5 and made substantial improvements.
566
567
568
569X Version 11 xorg-server 1.17.4 XSERVER(1)