XSERVER(1)
XSERVER(1) ๐ the display server glow-up
okay bestie, pull up a chair because we're talking about the X Window System display server โ the actual main character of your graphical session. this is the General Commands Manual entry, and we're doing it in three parts, so buckle up ๐
โจ NAME โจ
Xserver โ the X Window System display server. yes that's the whole name. iconic, brief, no notes ๐
โจ SYNOPSIS โจ
X [option ...]
โจ DESCRIPTION โจ
X is the generic name for the X Window System display server, bestie. it's frequently a link or a copy of the appropriate server binary for driving the most frequently used server on a given machine. so like, X is the vibe, and under the hood it's whatever binary actually matches your machine ๐ธ
๐ STARTING THE SERVER ๐
so how does this whole thing wake up? usually the X server gets started from the X Display Manager program xdm(1) or some similar display manager program. that utility runs from the system boot files and handles the whole everything: keeping the server running, prompting for usernames and passwords, and starting up the user sessions. it's the responsible older sibling fr fr ๐ซถ
installations that run more than one window system may need to use the xinit(1) utility instead of a display manager. but โ and this is important โ xinit is to be considered a tool for building startup scripts and is not intended for use by end users. site administrators are strongly urged to use a display manager, or build other interfaces for novice users. like, don't hand a newbie xinit, that's not the move ๐ญ
the X server may also be started directly by the user, though this method is usually reserved for testing and is not recommended for normal operation. on some platforms, the user must have special permission to start the X server, often because access to certain devices (e.g. /dev/mouse) is restricted. where applicable, the X server notifies systemd when it is ready to process requests ๐ฆ
heads up!! when the X server starts up, it typically takes over the display. if you are running on a workstation whose console is the display, you may not be able to log into the console while the server is running. the server said "this screen is MINE now" and meant it ๐
โจ OPTIONS โจ
many X servers have device-specific command line options. see the manual pages for the individual servers for more details; a list of server-specific manual pages is provided in the SEE ALSO section below ๐
all of the X servers accept the command line options described below. some X servers may have alternative ways of providing the parameters described here, but the values provided via the command line options should override values specified via other mechanisms. command line stays winning ๐
:displaynumberโ the X server runs as the given displaynumber, which by default is0. if multiple X servers are to run simultaneously on a host, each must have a unique display number. see the DISPLAY NAMES section of theX(7)manual page to learn how to specify which display number clients should try to use.-anumber โ sets pointer acceleration (i.e. the ratio of how much is reported to how much the user actually moved the pointer).-acโ disables host-based access control mechanisms. enables access by any host, and permits any host to modify the access control list.
use with EXTREME caution!! this option exists primarily for running test suites remotely. do not make this your everyday look, bestie ๐
-auditlevel โ sets the audit trail level. the default level is1, meaning only connection rejections are reported. level2additionally reports all successful connections and disconnects. level4enables messages from theSECURITYextension, if present, including generation and revocation of authorizations and violations of the security policy. level0turns off the audit trail. audit lines are sent as standard error output.-authauthorization-file โ specifies a file which contains a collection of authorization records used to authenticate access. see also thexdm(1)andXsecurity(7)manual pages.-background noneโ asks the driver not to clear the background on startup, if the driver supports that. may be useful for smooth transition with eg. fbdev driver. for security reasons this is not the default as the screen contents might show a previous user session. yeah, that's a yikes ๐ซฃ-brโ sets the default root window to solid black instead of the standard root weave pattern. this is the default unless-retroor-wris specified.-bsโ disables backing store support on all screens.+byteswappedclientsโ allow connections from clients with an endianess different to that of the server. this is the default unless-byteswappedclientsis specified.-byteswappedclientsโ prohibit connections from clients with an endianess different to that of the server.-cโ turns off key-click.cvolume โ sets key-click volume (allowable range:0-100).-ccclass โ sets the visual class for the root window of color screens. the class numbers are as specified in the X protocol. not obeyed by all servers.-coreโ causes the server to generate a core dump on fatal errors.-displayfdfd โ specifies a file descriptor in the launching process. rather than specify a display number, the X server will attempt to listen on successively higher display numbers, and upon finding a free one, will write the display number back on this file descriptor as a newline-terminated string. the-pnoption is ignored when using-displayfd. ๐-deferglyphswhichfonts โ specifies the types of fonts for which the server should attempt to use deferred glyph loading. whichfonts can beall(all fonts),none(no fonts), or16(16 bit fonts only).-dpiresolution โ sets the resolution for all screens, in dots per inch. to be used when the server cannot determine the screen size(s) from the hardware.dpmsโ enables DPMS (display power management services), where supported. the default state is platform and configuration specific.-dpmsโ disables DPMS (display power management services). the default state is platform and configuration specific.-extensionextensionName โ disables named extension. if an unknown extension name is specified, a list of accepted extension names is printed.+extensionextensionName โ enables named extension. if an unknown extension name is specified, a list of accepted extension names is printed.-fvolume โ sets beep (bell) volume (allowable range:0-100).-fakescreenfpsps โ sets fake presenter screen default fps (allowable range:1-600).-fpfontPath โ sets the search path for fonts. this path is a comma separated list of directories which the X server searches for font databases. see the FONTS section of this manual page for more information and the default list. ๐ฆ-helpโ prints a usage message.-Iโ causes all remaining command line arguments to be ignored. like, the rest of the line just stops existing ๐-iglxโ prohibit creating indirect GLX contexts. indirect GLX is of limited use, since it lacks support for many modern OpenGL features and extensions; it's slower than direct contexts; and it opens a large attack surface for protocol parsing errors. this is the default unless+iglxis specified.+iglxโ allow creating indirect GLX contexts.-maxbigreqsizesize โ sets the maximum big request to size MB.-nocursorโ disable the display of the pointer cursor.-nolistentrans-type โ disables a transport type. for example, TCP/IP connections can be disabled with-nolisten tcp. this option may be issued multiple times to disable listening to different transport types. supported transport types are platform dependent, but commonly include:tcpโ TCP over IPv4 or IPv6inetโ TCP over IPv4 onlyinet6โ TCP over IPv6 onlyunixโ UNIX Domain Socketslocalโ Platform preferred local connection method
-listentrans-type โ enables a transport type. for example, TCP/IP connections can be enabled with-listen tcp. this option may be issued multiple times to enable listening to different transport types.-noresetโ prevents a server reset when the last client connection is closed. this overrides a previous-terminatecommand line option.-pminutes โ sets screen-saver pattern cycle time in minutes.-pnโ permits the server to continue running if it fails to establish all of its well-known sockets (connection points for clients), but establishes at least one. this option is set by default.-nopnโ causes the server to exit if it fails to establish all of its well-known sockets (connection points for clients).-rโ turns off auto-repeat.rโ turns on auto-repeat.-retroโ starts the server with the classic stipple and cursor visible. the default is to start with a black root window, and to suppress display of the cursor until the first time an application callsXDefineCursor(). for kdrive servers, this implies-zap.-sminutes โ sets screen-saver timeout time in minutes.-suโ disables save under support on all screens.-seatseat โ seat to run on. takes a string identifying a seat in a platform specific syntax. on platforms which support this feature this may be used to limit the server to expose only a specific subset of devices connected to the system.-tnumber โ sets pointer acceleration threshold in pixels (i.e. after how many pixels pointer acceleration should take effect).-terminate [delay]โ causes the server to terminate at server reset, instead of continuing to run. this overrides a previous-noresetcommand line option. if a delay in seconds is specified, the server waits for at least the delay. at the end of this grace period if no client is connected, the server terminates immediately.-tstโ disables all testing extensions (e.g.,XTEST,XTrap,XTestExtension1,RECORD).ttyxxโ ignored, for servers started the ancient way (frominit). truly a relic, we respect the history tho ๐บvโ sets video-off screen-saver preference.-vโ sets video-on screen-saver preference.-wrโ sets the default root window to solid white instead of the standard root weave pattern.-xextension โ loads the specified extension at init. this is a no-op for most implementations.[+-]xineramaโ enables(+) or disables(-) theXINERAMAextension. the default state is platform and configuration specific.
okay that's the first chunk bestie โ more parts coming, don't go anywhere ๐
โจ SERVER DEPENDENT OPTIONS โจ
Okay so some X servers vibe with these extra options, not all of them, it's giving "depends on your build" energy:
-ldkilobytes โ sets the data space limit of the server to that exact number of kilobytes. A value of0makes the data size as large as possible. And the default value of-1leaves the data space limit totally unchanged (iconic, no notes).-lffiles โ sets the number-of-open-files limit of the server to that number of files. A value of0makes the limit as large as possible. Default-1leaves the limit unchanged. periodt.-lskilobytes โ sets the stack space limit of the server to that number of kilobytes. A value of0makes the stack size as large as possible. Default-1leaves the stack space limit unchanged. bestie it's the same trio, they're a set ๐-maxclients64|128|256|512โ sets the maximum number of clients allowed to connect to the X server. The acceptable values are64,128,256or512. That's it, those are the options, no custom numbers, the server said pick one ๐-renderdefault|mono|gray|colorโ sets the color allocation policy used by the render extension. The choices lowkey each have their own whole personality:defaultselects the default policy defined for the display depth of the X server.monoโ don't use any color cell.grayโ use a gray map of 13 color cells for the X render extension.colorโ use a color cube of at most 4*4*4 colors (that is 64 color cells).
-dumbSchedโ disables smart scheduling on platforms that support the smart scheduler. Yeah it's literally called dumb, the naming committee ate with that one ๐-schedIntervalinterval โ sets the smart scheduler's scheduling interval to interval milliseconds.
๐ XDMCP OPTIONS ๐
X servers that support XDMCP get these options. Need the full lore? Go read the X Display Manager Control Protocol specification. It's giving โจrequired readingโจ.
-queryhostname โ enables XDMCP and sends Query packets to the specified hostname.-broadcastโ enable XDMCP and broadcast BroadcastQuery packets to the network. The first responding display manager gets chosen for the session. first come first served, no cap ๐ซถ-multicast[address[hop count]] โ Enable XDMCP and multicast BroadcastQuery packets to the network. The first responding display manager is chosen for the session. If an address is specified, the multicast is sent to that address. If no address is specified, the multicast is sent to the default XDMCP IPv6 multicast group. If a hop count is specified, it's used as the maximum hop count for the multicast. If no hop count is specified, the multicast is set to a maximum of 1 hop, to prevent the multicast from being routed beyond the local network. local only, keeping it cozy ๐ง-indirecthostname โ enables XDMCP and sends IndirectQuery packets to the specified hostname.-portport-number โ uses the specified port-number for XDMCP packets instead of the default. โ ๏ธ This option must be specified before any-query,-broadcast,-multicast, or-indirectoptions. Order matters bestie, don't skip this one.-fromlocal-address โ specifies the local address to connect from (super useful if the connecting host has multiple network interfaces). The local-address may be expressed in any form acceptable to the host platform'sgethostbyname(3)implementation.-onceโ causes the server to terminate (rather than reset) when the XDMCP session ends. one and done, no reruns ๐ธ-classdisplay-class โ XDMCP has an additional display qualifier used in resource lookup for display-specific options. This option sets that value, and by default it's"MIT-unspecified"(which, and I quote, is not a very useful value ๐ญ).-cookiexdm-auth-bits โ When testing XDM-AUTHENTICATION-1, a private key is shared between the server and the manager. This option sets the value of that private data. Note: it is not that private, being right there on the command line! ๐-displayIDdisplay-id โ Yet another XDMCP specific value, this one lets the display manager identify each display so it can locate the shared key.
โจ๏ธ XKEYBOARD OPTIONS โจ๏ธ
X servers that support the XKEYBOARD (a.k.a. "XKB") extension accept the following options. Real talk: all layout files specified on the command line must be located in the XKB base directory or a subdirectory of it, and specified as the relative path from the XKB base directory. The default XKB base directory is /usr/lib/X11/xkb.
[+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask ] ] ] ]โ enables (+) or disables (-) AccessX key sequences.-xkbdirdirectory โ base directory for keyboard layout files. Heads up: this option is not available for setuid X servers (i.e., when the X server's real and effective uids are different). security said no ๐-ardelaymilliseconds โ sets the autorepeat delay (length of time in milliseconds that a key must be depressed before autorepeat starts).-arintervalmilliseconds โ sets the autorepeat interval (length of time in milliseconds that should elapse between autorepeat-generated keystrokes).-xkbmapfilename โ loads the keyboard description in filename on server startup.
๐ฆ NETWORK CONNECTIONS ๐ฆ
The X server supports client connections via a platform-dependent subset of the following transport types: TCP/IP, Unix Domain sockets, and several varieties of SVR4 local connections. Wanna know how to specify which transport type clients should try to use? Pop over to the DISPLAY NAMES section of the X(7) manual page. it's all there ๐ซถ
๐ GRANTING ACCESS ๐
The X server implements a platform-dependent subset of the following authorization protocols: MIT-MAGIC-COOKIE-1, XDM-AUTHORIZATION-1, SUN-DES-1, Host Access, and Server Interpreted. Want the full breakdown on how these protocols operate? See the Xsecurity(7) manual page.
Authorization data required by the above protocols is passed to the server in a private file named with the -auth command line option. Every single time the server is about to accept the first connection after a reset (or when the server is starting), it reads this file. Here's the tea: if this file contains any authorization records, the local host is not automatically allowed access to the server, and only clients which send one of the authorization records contained in the file in the connection setup information will be allowed access. ๐ For the binary format of this file, see the Xau manual page. For maintenance of this file and distribution of its contents to remote hosts, see xauth(1).
The X server also uses a host-based access control list for deciding whether or not to accept connections from clients on a particular machine. If no other authorization mechanism is being used, this list initially consists of the host on which the server is running as well as any machines listed in the file /etc/Xn.hosts, where n is the display number of the server. Each line of the file should contain either an Internet hostname (e.g. expo.lcs.mit.edu) or a complete name in the format family:name as described in the xhost(1) manual page. Important: there should be no leading or trailing spaces on any lines. For example:
joesworkstation
corporate.company.com
inet:bigcpu
local:
Users can add or remove hosts from this list and enable or disable access control using the xhost command from the same machine as the server.
Now for the part that's giving unhinged in the worst way: The X protocol intrinsically does not have any notion of window operation permissions or place any restrictions on what a client can do; if a program can connect to a display, it has full run of the screen. ๐ญ X servers that support the SECURITY extension fare better, because clients can be designated untrusted via the authorization they use to connect; see the xauth(1) manual page for details. Restrictions are imposed on untrusted clients that curtail the mischief they can do. For a complete list of these restrictions, see the SECURITY extension specification.
Sites that have better authentication and authorization systems might wish to make use of the hooks in the libraries and the server to provide additional security models. build your own โจ
๐จ SIGNALS ๐จ
The X server attaches special meaning to the following signals:
SIGHUPโ This signal causes the server to close all existing connections, free all resources, and restore all defaults. It's sent by the display manager whenever the main user's main application (usually anxtermor window manager) exits, to force the server to clean up and prepare for the next user. it's giving "reset the whole vibe" ๐SIGTERMโ This signal causes the server to exit cleanly. graceful exit, we love her ๐SIGUSR1โ This signal is used quite differently from either of the above. When the server starts, it checks to see if it has inheritedSIGUSR1asSIG_IGNinstead of the usualSIG_DFL. In this case, the server sends aSIGUSR1to its parent process after it has set up the various connection schemes.Xdmuses this feature to recognize when connecting to the server is possible. sneaky little handshake ๐ค
๐ FONTS ๐
The X server can obtain fonts from directories and/or from font servers. The list of directories and font servers the X server uses when trying to open a font is controlled by the font path.
The default font path is `catalogue:/etc/X11/fontpath.d,built-ins`
A special kind of directory can be specified using the catalogue: prefix. Directories specified this way can contain symlinks pointing to the real font directories. See the FONTPATH.D section for details. ๐ curated, indirect, just like our playlist
The font path can be set with the -fp option or by xset(1) after the server has started.
๐ FONTPATH.D ๐
okay bestie this one's a whole vibe, stay with me ๐
So there's a special flavor of font path you can write, and it looks like catalogue:<dir>.
The directory you drop after the catalogue: prefix? It gets scanned for symlinks, and every single symlink destination gets added as a local fontfile FPE. That's it, that's the whole trick. โจ
You can also suffix the symlink with attributes like 'unscaled', and those get passed straight through to the underlying fontfile FPE. The one exception is the newly introduced 'pri' attribute โ that one isn't passed through, it's used for ordering the font paths that the symlinks specify. Periodt.
Here's an example config, because reading about it is giving nothing and seeing it is giving everything:
75dpi:unscaled:pri=20 -> /usr/share/X11/fonts/75dpi
ghostscript:pri=60 -> /usr/share/fonts/default/ghostscript
misc:unscaled:pri=10 -> /usr/share/X11/fonts/misc
type1:pri=40 -> /usr/share/X11/fonts/Type1
type1:pri=50 -> /usr/share/fonts/default/Type1
So what does that actually do, bestie? It adds /usr/share/X11/fonts/misc as the first FPE with the attribute 'unscaled', then the second FPE is /usr/share/X11/fonts/75dpi, also with the attribute 'unscaled', etc. Look at the pri numbers โ 10, 20, 40, 50, 60. That's the ordering, no cap.
And this is functionally equivalent to just setting this font path by hand:
/usr/share/X11/fonts/misc:unscaled,
/usr/share/X11/fonts/75dpi:unscaled,
/usr/share/X11/fonts/Type1,
/usr/share/fonts/default/Type1,
/usr/share/fonts/default/ghostscript
Same thing, different outfit. ๐
๐ FILES ๐
Everything the server touches on disk, in one glorious little list ๐ซถ
/etc/Xn.hostsโ the initial access control list for display number n. Your first guest list, basically./usr/share/fonts/X11/misc,/usr/share/fonts/X11/75dpi,/usr/share/fonts/X11/100dpiโ bitmap font directories โจ/usr/share/fonts/X11/TTF,/usr/share/fonts/X11/Type1โ outline font directories ๐ฆ/tmp/.X11-unix/Xnโ the Unix domain socket for display number n/usr/adm/Xnmsgsโ error log file for display number n, but only if you run it frominit(8)/usr/lib/X11/xdm/xdm-errorsโ the default error log file if the server is run fromxdm(1)
๐ SEE ALSO ๐
The whole friend group, grouped by their whole deal ๐
General information: X(7)
Protocols: X Window System Protocol, The X Font Service Protocol, X Display Manager Control Protocol
Fonts: bdftopcf(1), mkfontdir(1), mkfontscale(1), xfs(1), xlsfonts(1), xfontsel(1), xfd(1), X Logical Font Description Conventions
Keyboards: xkeyboard-config(7)
Security: Xsecurity(7), xauth(1), Xau(1), xdm(1), xhost(1) Security Extension Specification
Starting the server: startx(1), xdm(1), xinit(1)
Controlling the server once started: xset(1), xsetroot(1), xhost(1), xinput(1), xrandr(1)
Server-specific man pages: Xorg(1), Xwayland(1), Xephyr(1), Xnest(1), Xvfb(1), Xquartz(1), XWin(1).
Server internal documentation: Definition of the Porting Layer for the X v11 Sample Server
๐ AUTHORS ๐
the literal icons who built this ๐
The sample server was originally written by Susan Angebranndt, Raymond Drewry, Philip Karlton, and Todd Newman, from Digital Equipment Corporation, with support from a large cast. (a large cast!! ensemble energy fr fr)
It has since been extensively rewritten by Keith Packard and Bob Scheifler, from MIT. ๐
And Dave Wiggins took over post-R5 and made substantial improvements. ๐
and that's the whole page bestie!! ๐
Okay so this was XSERVER(1) โ part of X Version 11, specifically xorg-server 21.1.25. You made it to the end, which honestly? Main character energy. ๐โจ
Go forth and run your X server. I'm obsessed. ๐ซถ๐๐ฆ
๐ฆ where this page comes from
- fedora 43: xorg-x11-server-common 21.1.25-2.fc43 ยท Adobe-Display-PostScript AND BSD-3-Clause AND DEC-3-Clause AND HPND AND HPND-sell-MIT-disclaimer-xserver AND HPND-sell-variant AND ICU AND ISC AND MIT AND MIT-open-group AND NTP AND SGI-B-2.0 AND SMLNJ AND X11 AND X11-distribute-modifications-variant
- fedora 44: xorg-x11-server-common 21.1.25-2.fc44 ยท Adobe-Display-PostScript AND BSD-3-Clause AND DEC-3-Clause AND HPND AND HPND-sell-MIT-disclaimer-xserver AND HPND-sell-variant AND ICU AND ISC AND MIT AND MIT-open-group AND NTP AND SGI-B-2.0 AND SMLNJ AND X11 AND X11-distribute-modifications-variant
- Copyright 1984 - 1991, 1993, 1994, 1998 The Open Group
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms