HPlogo Using the X Window System > Chapter 4 Using the X Window System

Starting the X Window System

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

Before you start the X Window System, you must be logged in to your computer system. Log in using your normal procedure.

You should start the X Window System just once. With X11 running, you should not execute the x11start command again. Starting X11 and then starting it again while it is still running may cause undesirable results.

Note, however, that you can restart the window manager and refresh the screen at any time.

X will use the default .x11start, .Xdefaults, and .mwmrc files, unless told otherwise in the command line options.

Starting X at Login

Your system may be configured to start X11 as part of the login procedure. If so, skip the rest of this section and the next and start reading at “What to Expect When X Starts”

Starting X from the Command Line

If your system is not configured to start X11 at login, log into the system in the usual way and type the following command at the command prompt:

   x11start Return

Command-Line Options for x11start

In most cases, you will find it convenient to establish environment options in configuration files in your home directory. However, if you don't start X11 automatically at login, you can include environment options on the command line after the x11start command. The syntax for this is:

x11start [-clientoptions]--{path/}server [:display] [-options]

Client options pass from the x11start command line to all clients in the .x11start file that have a $@ parameter. The options replace the parameter. This method is most often used to specify a display other than the usual one on which to display the client. You can, however, use the command-line option to specify a non-default parameter, such as a different background color.

The default .x11start file starts the following clients:

  • A terminal emulation client, such as hpterm.

  • mwm.

Server options are preceded with a double hyphen (--). If the option following the double hyphen begins with a slash (/) or a path and a slash, it starts a server other than the default server. If the option begins with a colon followed by a digit (:#), it specifies the display number (0 is the default display number). Additional options specified after the server or display refer to the specified server or display. Refer to the Xserver man page for more information on server options.

The examples below illustrate starting the X Window System in different ways.

   xllstart        The usual way to start X.

   

   x11start -bg Blue Gives clients followed by $@ a blue background. 

   

   x11start -- /X2  Starts server X2 rather than the default server. 

Starting X on an HP-UX Multi-Display System

A multi-seat system (a system with more than one display, keyboard, and mouse) requires modification of two X11 configuration files, to allow for more than one display seat. These files, X*screens and X*devices (where * is the number of the display), are located in /usr/lib/X11. Each seat must have its own X*screens and X*devices files. If you have a multi-seat system but have not configured it, see your system installation or configuration manual for more information.

Seat 0 uses the X0screens and X0devices files to configure its output and input devices. These files are supplied with the system, but you must still match them to your hardware configuration. To start X11 on seat 0 (display 0) of a multi-seat system, log in as usual and type:

   x11start Return

To start X11 on seat 1 (display 1) of a multi-seat system, log in as usual and type:

   x11start -- :1 Return

Here the -- signifies starting the default server while the :1 specifies sending the output to seat 1. Seat 1 uses the X1screens and X1devices files to configure its output and input devices. If your system has a multi-seat configuration, you must create these configuration files using the X0screens and X0devices files as models.

© 1995 Hewlett-Packard Development Company, L.P.