|
|
When you start a Graphical Environment session, the $DISPLAY, $HOME, and $PATH. environment variables are set. When you run the Desktop client, the $LANG environment variable is also set.
The $PATH and $HOME environment variables are actually set when you first log in, whether through a multiscreen running getty or through scologin. However, the X server modifies the $PATH variable to include the /usr/bin/X11 directory.
The $DISPLAY and $LANG environment variables are described below:
The X display consists of one or more screens, a keyboard, and a mouse. A system may have several displays, and each display may, in turn, have more than one screen. Each display has exactly one server process controlling all its input and output. Therefore, the terms ``display'' and ``server'' are used synonymously.
When a client is run, it must open a connection to a display. You must be able to tell the client the name of the display that you want it to use for output. You can also indicate a specific screen for the display. Because the display can be anywhere on the network, you have to provide the network name of the system to which the display is connected to fully identify the display.
Use the following format when setting the
$DISPLAY variable:
[hostname]:display_number[.screen_number]
where:
Usually, if only one X server is running, its :display_number is ``:0''. If more than one server is running on your system, you must determine which display number corresponds to the X server you want to specify.
The default display name is stored in the $DISPLAY environment variable when the X server is started by either scologin or the startx script. However, if you want a client to use a different display, you must reset the $DISPLAY variable so it specifies the other server.
For example, to run your clients on a remote server on a machine named scooter, you would enter:
DISPLAY=scooter:0.0; export DISPLAY | (for sh, ksh) |
or | |
setenv DISPLAY scooter:0.0 | (for csh) |