STARTX(1) AIX STARTX(1) NAME startx - initialize an X session SYNOPSIS ssssttttaaaarrrrttttxxxx [ [ _c_l_i_e_n_t ] _o_p_t_i_o_n_s ... ] [ -------- [ _s_e_r_v_e_r ] _o_p_t_i_o_n_s ... ] DESCRIPTION NOTE: The _s_t_a_r_t_x script supplied with the X11 distribution is a sample designed more as a base for customization than as a finished product. Site administrators are urged to customize it for their site. And to update this manual page when they do! The _s_t_a_r_t_x script is a front end to _x_i_n_i_t that provides a somewhat nicer user interface for running a single session of the X Window System. It is typically run with no argu- ments. To determine the client to run, _s_t_a_r_t_x first looks for a file called ._x_i_n_i_t_r_c in the user's home directory. If that is not found, it uses the file _x_i_n_i_t_r_c in the _x_i_n_i_t library directory. If command line client options are given, they override this behavior. To determine the server to run, _s_t_a_r_t_x first looks for a file called ._x_s_e_r_v_e_r_r_c in the user's home directory. If that is not found, it uses the file _x_s_e_r_v_e_r_r_c in the _x_i_n_i_t library directory. If command line server options are given, they override this behavior. Users rarely need to provide a ._x_s_e_r_v_e_r_r_c file. See the _x_i_n_i_t(1) manual page for more details on the arguments. The ._x_i_n_i_t_r_c is typically a shell script which starts many clients according to the user's preference. When this shell script exits, _s_t_a_r_t_x kills the server and performs any other session shutdown needed. Most of the clients started by ._x_i_n_i_t_r_c should be run in the background. The last client should run in the foreground; when it exits, the session will exit. People often choose a session manager, window manager, or _x_t_e_r_m as the ``magic'' client. EXAMPLE Below is a sample ._x_i_n_i_t_r_c that starts several applications and leaves the window manager running as the ``last'' appli- cation. Assuming that the window manager has been config- ured properly, the user then chooses the ``Exit'' menu item to shut down X. xrdb -load $HOME/.Xresources xsetroot -solid gray & xbiff -geometry -430+5 & oclock -geometry 75x75-0-0 & xload -geometry -80-0 & xterm -geometry +0+60 -ls & Rev. Release 5 Page 1 STARTX(1) AIX STARTX(1) xterm -geometry +0-100 & xconsole -geometry -0+0 -fn 5x7 & exec twm ENVIRONMENT VARIABLES DISPLAY This variable gets set to the name of the display to which clients should connect. Note that this gets _s_e_t, not read. FILES $(_H_O_M_E)/._x_i_n_i_t_r_c Client to run. Typically a shell script which runs many programs in the background. $(_H_O_M_E)/._x_s_e_r_v_e_r_r_c Server to run. The default is _X. /_u_s_r/_l_i_b/_X_1_1/_x_i_n_i_t/_x_i_n_i_t_r_c Client to run if the user has no ._x_i_n_i_t_r_c file /_u_s_r/_l_i_b/_X_1_1/_x_i_n_i_t/_x_s_e_r_v_e_r_r_c Client to run if the user has no ._x_s_e_r_v_e_r_r_c file. This is only needed if the server needs special arguments or is not named _X. SEE ALSO _x_i_n_i_t(1) Rev. Release 5 Page 2