Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Graphics Administration Guide: HP 9000 Workstations and Servers > Chapter 6 X Windows Configuration Details

Making an X*.hosts File

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

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:

host〉
〈host〉
〈host

For example, if you are hpaaaaa, and regularly ran clients on hpccccc, and hpddddd, you would want the following lines.

hpaaaaa
hpccccc
hpddddd

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.

NOTE: The number in an Xnscreens file does not necessarily refer to a physical screen number; any meaning implied by the number is for the user to define. There are no semantics applied to the number except that the Xnscreens files are used when X is started on display 〈name:n.0. For example, an X3screens file does not necessarily imply device file /dev/crt3; an X3screens file can use whatever device file the user specifies. The same applies to the X*devices, X*.hosts, X*.pointerkeys, etc., files as well.

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:

127.0.0.1  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.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.