


XSERVER(1)               USER COMMANDS                 XSERVER(1)



NAME
     Xserver - X Window System server

SYNOPSIS
     X [:displaynumber] [-option ...] [ttyname]

DESCRIPTION
     _X is the generic name for the X Window System server.  It is
     frequently a link or a copy of the appropriate server binary
     for driving the most  frequently  used  server  on  a  given
     machine.

STARTING THE SERVER
     The server is usually started from  the  X  Display  Manager
     program _x_d_m.  This utility is run from the system boot files
     and takes care of keeping the server running, prompting  for
     usernames  and passwords, and starting up the user sessions.
     It is easily configured for sites that wish to provide nice,
     consistent  interfaces  for novice users (loading convenient
     sets of resources, starting up a window manager, clock,  and
     nice selection of terminal emulator windows).

     Installations that run more  than  one  window  system  will
     still  need  to use the _x_i_n_i_t utility.  However, _x_i_n_i_t 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 _x_d_m, or  build  other  interfaces  for
     novice users.

     When the X server starts up, it takes over the display.   If
     you  are  running  on  a  workstation  whose  console is the
     display, you cannot log into the console while the server is
     running.

NETWORK CONNECTIONS
     The X server supports connections made using  the  following
     reliable byte-streams:

     _T_C_P/_I_P
         The server listens  on  port  6000+_n,  where  _n  is  the
         display number.

     _U_n_i_x _D_o_m_a_i_n
         The X server uses /_t_m_p/._X_1_1-_u_n_i_x/_Xn as the filename  for
         the socket, where _n is the display number.

     _D_E_C_n_e_t
         The server responds to connections to object _X$_Xn, where
         _n  is  the display number.  This is not supported in all
         environments.





X Version 11         Last change: Release 5                     1






XSERVER(1)               USER COMMANDS                 XSERVER(1)



OPTIONS
     All of the X  servers  accept  the  following  command  line
     options:

     -a _n_u_m_b_e_r
             sets pointer acceleration (i.e.  the  ratio  of  how
             much is reported to how much the user actually moved
             the pointer).

     -auth _a_u_t_h_o_r_i_z_a_t_i_o_n-_f_i_l_e
             Specifies a file  which  contains  a  collection  of
             authorization  records  used to authenticate access.
             See also the _x_d_m and _X_s_e_c_u_r_i_t_y manual pages.

     bc      disables certain kinds of error  checking,  for  bug
             compatibility  with previous releases (e.g., to work
             around bugs in  R2  and  R3  xterms  and  toolkits).
             Deprecated.

     -bs     disables backing store support on all screens.

     -c      turns off key-click.

     c _v_o_l_u_m_e
             sets key-click volume (allowable range: 0-100).

     -cc _c_l_a_s_s
             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.

     -co _f_i_l_e_n_a_m_e
             sets name of RGB color database.

     -dpi _r_e_s_o_l_u_t_i_o_n
             sets the resolution of the screen, in dots per inch.
             To  be  used  when  the  server cannot determine the
             screen size from the hardware.

     -f _v_o_l_u_m_e
             sets feep (bell) volume (allowable range: 0-100).

     -fc _c_u_r_s_o_r_F_o_n_t
             sets default cursor font.

     -fn _f_o_n_t
             sets the default font.

     -fp _f_o_n_t_P_a_t_h
             sets the search path for  fonts.   This  path  is  a
             comma  separated  list  of  directories  which the X
             server searches for font databases.



X Version 11         Last change: Release 5                     2






XSERVER(1)               USER COMMANDS                 XSERVER(1)



     -help   prints a usage message.

     -I      causes all remaining command line  arguments  to  be
             ignored.

     -ld _k_i_l_o_b_y_t_e_s
             sets the data space  limit  of  the  server  to  the
             specified  number  of  kilobytes.   A  value of zero
             makes the data  size  as  large  as  possible.   The
             default  value  of  -1  leaves  the data space limit
             unchanged.  This option  is  not  available  in  all
             operating systems.

     -lf _f_i_l_e_s
             sets the number-of-open-files limit of the server to
             the  specified  number.   A  value is zero makes the
             limit as large as possible.  The default value of -1
             leaves  the  limit  unchanged.   This  option is not
             available in all operating systems.

     -ls _k_i_l_o_b_y_t_e_s
             sets the stack space limit  of  the  server  to  the
             specified  number  of  kilobytes.   A  value of zero
             makes the stack size  as  large  as  possible.   The
             default  value  of  -1  leaves the stack space limit
             unchanged.  This option  is  not  available  in  all
             operating systems.

     -logo   turns on the X Window System  logo  display  in  the
             screen-saver.   There  is currently no way to change
             this from a client.

     nologo  turns off the X Window System logo  display  in  the
             screen-saver.   There  is currently no way to change
             this from a client.

     -p _m_i_n_u_t_e_s
             sets screen-saver pattern cycle time in minutes.

     -r      turns off auto-repeat.

     r       turns on auto-repeat.

     -s _m_i_n_u_t_e_s
             sets screen-saver timeout time in minutes.

     -su     disables save under support on all screens.

     -t _n_u_m_b_e_r
             sets pointer acceleration threshold in pixels  (i.e.
             after  how  many  pixels pointer acceleration should
             take effect).



X Version 11         Last change: Release 5                     3






XSERVER(1)               USER COMMANDS                 XSERVER(1)



     -to _s_e_c_o_n_d_s
             sets default connection timeout in seconds.

     tty_x_x   ignored, for servers started the ancient  way  (from
             init).

     v       sets video-off screen-saver preference.

     -v      sets video-on screen-saver preference.

     -wm     forces the default backing-store of all  windows  to
             be   WhenMapped;   a  cheap  trick  way  of  getting
             backing-store to apply to all windows.

     -x _e_x_t_e_n_s_i_o_n
             loads the specified extension  at  init.   Not  sup-
             ported in most implementations.

     You can also have the X server connect to _x_d_m  using  XDMCP.
     Although  this  is not typically useful as it does not allow
     _x_d_m to manage the server process, it can be  used  to  debug
     XDMCP implementations, and serves as a sample implementation
     of the server side of XDMCP.  For more information  on  this
     protocol, see the _X _D_i_s_p_l_a_y _M_a_n_a_g_e_r _C_o_n_t_r_o_l _P_r_o_t_o_c_o_l specif-
     ication.  The following  options  control  the  behavior  of
     XDMCP.

     -query _h_o_s_t-_n_a_m_e
             Enable XDMCP and send Query packets to the specified
             host.

     -broadcast
             Enable XDMCP and broadcast BroadcastQuery packets to
             the  network.   The first responding display manager
             will be chosen for the session.

     -indirect _h_o_s_t-_n_a_m_e
             Enable XDMCP and send IndirectQuery packets  to  the
             specified host.

     -port _p_o_r_t-_n_u_m
             Use an alternate  port  number  for  XDMCP  packets.
             Must  be  specified before any -query, -broadcast or
             -indirect options.

     -once   Normally, the server keeps  starting  sessions,  one
             after  the other.  This option makes the server exit
             after the first session is over.

     -class _d_i_s_p_l_a_y-_c_l_a_s_s
             XDMCP has an additional display  qualifier  used  in
             resource  lookup for display-specific options.  This



X Version 11         Last change: Release 5                     4






XSERVER(1)               USER COMMANDS                 XSERVER(1)



             option sets that  value,  by  default  it  is  "MIT-
             Unspecified" (not a very useful value).

     -cookie _x_d_m-_a_u_t_h-_b_i_t_s
             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 (not that
             it is very private, being on the command line!).

     -displayID _d_i_s_p_l_a_y-_i_d
             Yet another XDMCP specific value,  this  one  allows
             the display manager to identify each display so that
             it can locate the shared key.

     Many servers also have device-specific command line options.
     See  the  manual  pages  for the individual servers for more
     details.

SECURITY
     The X server implements a simplistic authorization protocol,
     MIT-MAGIC-COOKIE-1  which  uses  data  private to authorized
     clients and the server.  This is a rather trivial scheme; if
     the  client  passes  authorization data which is the same as
     the server has, it is allowed access.  This scheme is  worse
     than  the  host-based  access control mechanisms in environ-
     ments with unsecure networks as it allows any host  to  con-
     nect,  given that it has discovered the private key.  But in
     many environments, this level of security is better than the
     host-based  scheme  as  it  allows  access  control per-user
     instead of per-host.

     In addition, the server provides  support  for  a  DES-based
     authorization  scheme,  XDM-AUTHORIZATION-1,  which  is more
     secure (given a secure key  distribution  mechanism).   This
     authorization scheme can be used in conjunction with XDMCP's
     authentication scheme (XDM-AUTHENTICATION-1)  or  in  isola-
     tion.

     The authorization data is passed to the server in a  private
     file  named  with  the -auth command line option.  Each time
     the server is about to accept the first connection  after  a
     reset  (or when the server is starting), it reads this file.
     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.  See  the  _X_a_u  manual  page  for  a
     description  of the binary format of this file.  Maintenance
     of this file, and distribution of  its  contents  to  remote
     sites for use there is left as an exercise for the reader.





X Version 11         Last change: Release 5                     5






XSERVER(1)               USER COMMANDS                 XSERVER(1)



     The server also provides support for SUN-DES-1, using  Sun's
     Secure RPC.  It involves encrypting data with the X server's
     public key.  See the _X_s_e_c_u_r_i_t_y manual page for more informa-
     tion.

     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  mechan-
     ism  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  /_e_t_c/_Xn._h_o_s_t_s, 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
     DECnet hostname  in  double  colon  format  (e.g.  hydra::).
     There  should be no leading or trailing spaces on any lines.
     For example:

             joesworkstation
             corporate.company.com
             star::
             bigcpu::

     Users can add or remove hosts from this list and  enable  or
     disable access control using the _x_h_o_s_t command from the same
     machine as the server.

     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.  Sites that have better
     authentication and authorization systems (such as  Kerberos)
     might wish to make use of the hooks in the libraries and the
     server to provide additional security models.

SIGNALS
     The X server attaches special meaning to the following  sig-
     nals:

     _S_I_G_H_U_P  This signal causes the server to close all  existing
             connections,  free  all  resources,  and restore all
             defaults.  It is sent by the display  manager  when-
             ever  the  main  user's main application (usually an
             _x_t_e_r_m or window manager) exits to force  the  server
             to clean up and prepare for the next user.

     _S_I_G_T_E_R_M This signal causes the server to exit cleanly.

     _S_I_G_U_S_R_1 This signal is used quite differently from either of
             the above.  When the server starts, it checks to see
             if it has inherited SIGUSR1 as  SIG_IGN  instead  of
             the usual SIG_DFL.  In this case, the server sends a
             SIGUSR1 to its parent process after it  has  set  up



X Version 11         Last change: Release 5                     6






XSERVER(1)               USER COMMANDS                 XSERVER(1)



             the  various  connection  schemes.   _X_d_m  uses  this
             feature to recognize when connecting to  the  server
             is possible.

FONTS
     Fonts are usually stored as individual files in directories.
     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 _f_o_n_t _p_a_t_h.  Although most sites will choose to have  the
     X  server start up with the appropriate font path (using the
     -_f_p option mentioned above), it can be overridden using  the
     _x_s_e_t program.

     The default font path for the X server contains four  direc-
     tories:

     /_u_s_r/_l_i_b/_X_1_1/_f_o_n_t_s/_m_i_s_c
             This directory contains  many  miscellaneous  bitmap
             fonts that are useful on all systems.  It contains a
             family of fixed-width fonts, a family of fixed-width
             fonts  from Dale Schumacher, several Kana fonts from
             Sony Corporation, two JIS Kanji  fonts,  two  Hangul
             fonts from Daewoo Electronics, two Hebrew fonts from
             Joseph Friedman, the standard cursor font, two  cur-
             sor  fonts  from  Digital Equipment Corporation, and
             cursor and glyph fonts from  Sun  Microsystems.   It
             also  has  various  font name aliases for the fonts,
             including fixed and variable.

     /_u_s_r/_l_i_b/_X_1_1/_f_o_n_t_s/_S_p_e_e_d_o
             This   directory   contains   outline   fonts    for
             Bitstream's  Speedo rasterizer.  A single font face,
             in normal, bold, italic, and bold  italic,  is  pro-
             vided, contributed by Bitstream, Inc.

     /_u_s_r/_l_i_b/_X_1_1/_f_o_n_t_s/_7_5_d_p_i
             This directory contains bitmap fonts contributed  by
             Adobe  Systems, Inc., Digital Equipment Corporation,
             Bitstream,  Inc.,  Bigelow  and  Holmes,   and   Sun
             Microsystems,  Inc.   for 75 dots per inch displays.
             An  integrated  selection  of  sizes,  styles,   and
             weights are provided for each family.

     /_u_s_r/_l_i_b/_X_1_1/_f_o_n_t_s/_1_0_0_d_p_i
             This directory contains 100 dots per  inch  versions
             of some of the fonts in the _7_5_d_p_i directory.

     Font databases are created by running the _m_k_f_o_n_t_d_i_r  program
     in  the  directory  containing  the compiled versions of the
     fonts (the ._p_c_f files).   Whenever  fonts  are  added  to  a
     directory,  _m_k_f_o_n_t_d_i_r should be rerun so that the server can



X Version 11         Last change: Release 5                     7






XSERVER(1)               USER COMMANDS                 XSERVER(1)



     find the new fonts.  If _m_k_f_o_n_t_d_i_r is  not  run,  the  server
     will not be able to find any fonts in the directory.

DIAGNOSTICS
     Too numerous to list them all.  If run from _i_n_i_t(_8),  errors
     are typically logged in the file /_u_s_r/_a_d_m/_X*_m_s_g_s,

FILES
     /etc/X*.hosts                 Initial access control list

/usr/lib/X11/fonts/100dpi
     /usr/lib/X11/fonts/misc,                /usr/lib/X11/fonts/75dpi,
                                   Bitmap font directories

     /usr/lib/X11/fonts/Speedo     Outline font directories

     /usr/lib/X11/fonts/PEX        PEX font directories

     /usr/lib/X11/rgb.txt          Color database

     /tmp/.X11-unix/X*             Unix domain socket

     /usr/adm/X*msgs               Error log file

SEE ALSO
     X(1), bdftopcf(1), mkfontdir(1),  fs(1),  xauth(1),  xdm(1),
     xhost(1), xinit(1), xset(1), xsetroot(1), xterm(1), Xdec(1),
     Xibm(1), XmacII(1), Xmips(1), Xqdss(1),  Xqvss(1),  Xsun(1),
     Xtek(1), X386(1) _X _W_i_n_d_o_w _S_y_s_t_e_m _P_r_o_t_o_c_o_l, _D_e_f_i_n_i_t_i_o_n _o_f _t_h_e
     _P_o_r_t_i_n_g _L_a_y_e_r _f_o_r _t_h_e _X _v_1_1 _S_a_m_p_l_e  _S_e_r_v_e_r,  _S_t_r_a_t_e_g_i_e_s  _f_o_r
     _P_o_r_t_i_n_g _t_h_e _X _v_1_1 _S_a_m_p_l_e _S_e_r_v_e_r, _G_o_d_z_i_l_l_a'_s _G_u_i_d_e _t_o _P_o_r_t_i_n_g
     _t_h_e _X _V_1_1 _S_a_m_p_l_e _S_e_r_v_e_r

BUGS
     The option syntax is inconsistent with itself and _x_s_e_t(_1).

     The acceleration option should take a numerator and a denom-
     inator like the protocol.

     If _X dies before its clients, new clients won't be  able  to
     connect  until  all  existing  connections  have  their  TCP
     TIME_WAIT timers expire.

     The color database is missing a large number of colors.

COPYRIGHT
     Copyright 1984, 1985, 1986, 1987,  1988,  1989,  1990,  1991
     Massachusetts Institute of Technology.
     See _X(_1) for a full statement of rights and permissions.

AUTHORS
     The  sample  server  was   originally   written   by   Susan



X Version 11         Last change: Release 5                     8






XSERVER(1)               USER COMMANDS                 XSERVER(1)



     Angebranndt,  Raymond  Drewry, Philip Karlton, and Todd New-
     man, from Digital Equipment Corporation, with support from a
     large  cast.   It  has  since  been extensively rewritten by
     Keith Packard and Bob Scheifler, from MIT.



















































X Version 11         Last change: Release 5                     9



