If you want to start a Graphical Environment session from the command line,
you must run the startx script:
If you started a session by logging in through the scologin window, scologin's Xsession-SHELL file also runs the startx script, with the -t option. See ``Defining X server sessions'' for more information on the Xsession-SHELL file.
If the startx script is run without any options, it:
Note: This is a change from the behavior of startx in previous releases, where startx would automatically set $DISPLAY to the current host name and to the next available display, or to 0 if no server was currently running. This behavior is no longer supported. To start an X server on a display other than 0, you must explicitly set the display number either via the DISPLAY environment variable or by setting the display as an argument to startx. For example, this command starts an X server on display 1:
startx -- :1
DISPLAY environment variable not set
For information on the $DISPLAY environment variable, see ``Using environment variables''.
The /usr/lib/X11/sys.startxrc file specifies the clients and commands that are run by default in X server sessions for all users on the system. Because the default configuration uses the session manager to control Graphical Environment sessions, scosession is the only client that is run by the sys.startxrc file. This file contains the following line:
exec scosession 2> /dev/null
If you want your system to use scosession to manage Graphical Environment sessions, you should not modify this file.
The startx script also looks for a local .startxrc file, located in a user's home directory. If a user wants to use the session manager, there is no need to put a .startxrc file in $HOME. The sys.startxrc file is used to run scosession.
If, however, a user does not want to run scosession, a .startxrc file is needed in $HOME to start the desired clients, particularly the window manager. The .startxrc file is not placed in a user's home directory by default. To create this file, copy /usr/lib/X11/sys.startxrc to .startxrc in your home directory.