1STARTX(1)                   General Commands Manual                  STARTX(1)
2
3
4

NAME

6       startx - initialize an X session
7

SYNOPSIS

9       startx [ [ client ] options ... ] [ -- [ server ] options ... ]
10

DESCRIPTION

12       The  startx  script  is  a  front end to xinit that provides a somewhat
13       nicer user interface for running a single session of the X Window  Sys‐
14       tem.  It is often run with no arguments.
15
16       Arguments  immediately following the startx command are used to start a
17       client in the same manner as xinit(1).  The special argument '--' marks
18       the  end  of  client arguments and the beginning of server options.  It
19       may be convenient to specify server options with startx to change on  a
20       per-session  basis  the default color depth, the server's notion of the
21       number of dots-per-inch the display device presents, or take  advantage
22       of  a  different  server layout, as permitted by the Xorg(1) server and
23       specified in the xorg.conf(5) file.  Some examples of specifying server
24       arguments  follow;  consult the manual page for your X server to deter‐
25       mine which arguments are legal.
26
27              startx -- -depth 16
28
29              startx -- -dpi 100
30
31              startx -- -layout Multihead
32
33       To determine the client to run, startx first looks for  a  file  called
34       .xinitrc  in  the user's home directory.  If that is not found, it uses
35       the file xinitrc in the xinit library directory.
36
37       If command line client options are given, they override  this  behavior
38       and  revert  to the xinit(1) behavior.  To determine the server to run,
39       startx first looks for a file called  .xserverrc  in  the  user's  home
40       directory.   If  that  is  not found, it uses the file xserverrc in the
41       xinit library directory.  If command line  server  options  are  given,
42       they override this behavior and revert to the xinit(1) behavior.  Users
43       rarely need to provide a .xserverrc file.  See the xinit(1) manual page
44       for more details on the arguments.
45
46       The   system-wide   xinitrc  and  xserverrc  files  are  found  in  the
47       /etc/X11/xinit directory.
48
49       The .xinitrc is typically a shell  script  which  starts  many  clients
50       according  to  the  user's  preference.   When this shell script exits,
51       startx kills the server and performs any other session shutdown needed.
52       Most  of  the  clients  started  by .xinitrc should be run in the back‐
53       ground.  The last client should run in the foreground; when  it  exits,
54       the  session  will exit.  People often choose a session manager, window
55       manager, or xterm as the ''magic'' client.
56

EXAMPLE

58       Below is a sample .xinitrc that starts several applications and  leaves
59       the  window manager running as the ''last'' application.  Assuming that
60       the window manager has been configured properly, the user then  chooses
61       the ''Exit'' menu item to shut down X.
62
63           xrdb -load $HOME/.Xresources
64           xsetroot -solid gray &
65           xbiff -geometry -430+5 &
66           oclock -geometry 75x75-0-0 &
67           xload -geometry -80-0 &
68           xterm -geometry +0+60 -ls &
69           xterm -geometry +0-100 &
70           xconsole -geometry -0+0 -fn 5x7 &
71           exec twm
72

ENVIRONMENT VARIABLES

74       DISPLAY                  This variable gets set to the name of the dis‐
75                                play to which clients  should  connect.   Note
76                                that this gets set, not read.
77
78       XAUTHORITY               This  variable,  if  not already defined, gets
79                                set to $(HOME)/.Xauthority.  This is  to  pre‐
80                                vent  the  X  server,  if  not given the -auth
81                                argument, from automatically setting up  inse‐
82                                cure  host-based  authentication for the local
83                                host.  See  the  Xserver(1)  and  Xsecurity(7)
84                                manual   pages   for  more  information  on  X
85                                client/server authentication.
86

FILES

88       $(HOME)/.xinitrc         Client to run.  Typically a shell script which
89                                runs many programs in the background.
90
91       $(HOME)/.xserverrc       Server to run.  The default is X.
92
93       /etc/X11/xinit/xinitrc   Client  to  run  if  the  user has no .xinitrc
94                                file.
95
96       /etc/X11/xinit/xserverrc Server to run if the user  has  no  .xserverrc
97                                file.
98

SEE ALSO

100       xinit(1), Xserver(1), Xorg(1)
101
102
103
104X Version 11                      xinit 1.0.2                        STARTX(1)
Impressum