All users should check:
the /etc/hosts file if your system is not configured to query a nameserver.
The rest of this chapter covers optional configuration. The following table shows the assumed configuration, and what you should read if you want to change it.
Table 3-1 Default X Configuration
Expected configuration | If you want to change it, read ... |
---|
1 display | "Using Custom Screen Configurations" |
1 mouse | "Using Special Input Devices" |
1 keyboard | "Using Special Input Devices" |
American English language | "Customizing for Native Language Support" |
X starts the hpterm and mwm clients as part of its
own start-up procedures. | "Software Configuration Files"
chapter 4 |
Default mwm colors, window decorations, and menus.
| "Software Configuration Files"
chapter 5
chapter 7 |
Font server not started | "Using the X11R5 Font Server"
chapter 6
|
Finding Your System Directory |
 |
The directory containing most of the X Window System configuration files is called the
system directory. It is /usr/lib/X11
Setting the DISPLAY Variable |
 |
The DISPLAY environment variable establishes the host, display number, and screen number to which a system sends bitmapped output.
You can check the current setting of your system's DISPLAY variable by typing this command:
A list similar to the following is displayed:
DISPLAY=hpaaaaa:0.0
HOME=/home/ellen
TZ=PST8PDT
.
.
.
|
The DISPLAY variable has the syntax:
[ {hostname local unix shmlink} ] : display.[screen]
The default is :0.0, which is display 0, screen 0 of the display running the X server.
To reset the DISPLAY environment variable type the appropriate command shown below, or put it into the configuration file used by your system if
you want it to be in effect every time you log in.
Table 3-2 Setting Environment Variables
Shell | Command | Configuration File |
---|
sh
| DISPLAY=host:display.screen
export DISPLAY | ~/.profile |
csh
| setenv DISPLAY host:display.screen | ~/.login |
Aegis
| DISPLAY := host:display.screen
export DISPLAY | ~/user_data/startup_dm.xxx or
/sys/dm/startup_login.xxx |
ksh
| DISPLAY=host:display.screen
export DISPLAY | ~/.profile |
Making an X0.hosts File |
 |
The /etc/X0.hosts file is an ASCII text file containing the hostnames of each remote host permitted to access your local server.
If you are running as a stand-alone system, you must have your system's name in this file.
If you are part of a network, the other system names must be included.
The syntax is as follows:
For example, if you are hpaaaaa, and regularly ran clients on hpccccc, and .
hpddddd, you would want the following lines.
Note that aliases work as well as hostnames, provided they are valid, that is, commonly known across the network.
X0.hosts and X0screens Relation |
 |
The default screen configuration file X0screens uses the default X11 remote host file X0.hosts.
Each custom X*screens file is associated with a special X*.hosts file. The number represented by the * causes the correct screen and host files to be used together. For example,
X3screens takes an X3.hosts file. Both are referenced by the server when it is started with a /usr/bin/X11/X :3 command.
If you use a special X*screens file, you need to set your DISPLAY variable appropriately. For the previous example, it would be set to hostname:3.0.
Using an /etc/hosts File |
 |
This file need not be present if your system is configured to query a nameserver.
The /etc/hosts file is an ASCII text file containing a list of all the host names and internet addresses known to your system, including your own system.
If your system is not connected to a network, use the loopback address (127.0.0.1) and the hostname unknown.
For a local system to access a remote host:
The address and hostname of the remote host must be listed in the local system's /etc/hosts file.
The user must have a valid login (username and password) and home directory on the remote host.