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

NAME

6       startx - initialize an X session
7

SYNOPSIS

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

DESCRIPTION

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

EXAMPLE

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

ENVIRONMENT VARIABLES

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

FILES

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

SEE ALSO

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