### Configuring a Device for a Terminal

Use this procedure to configure an HP-UX device for a terminal. See your operating system documentation for more information on configuring a serial device for a terminal.

#### Procedure

1. In HP-UX, TTY devices require the carrier detect high. This must either be tied high within the cable or it can be forced high in the driver by entering a ditty forcedcd command, like the following example, for the port in a startup file:

   `ditty forcedcd ttya12`

2. On the HP-UX server, use a text editor to add a terminal device entry in the /etc/inittab file. Here are examples of two entries for Digi ports:

   `Xx01:23:respawn:/etc/getty ttya12 H
   Xx02:23:respawn:/etc/getty ttyb02 H`

   Notes:

   - The id field (the first field) for an /etc/inittab entry must be from one to four characters long and it must be unique. The word, respawn, in the third field means that the port will be enabled for login. For more information, consult your HP-UX documentation or consult man pages for `inittab`.

   - The last letter in this example, H, is an index into the /etc/gettydefs file. Entries other than H may be used. Consult your HP-UX documentation for more information.

3. Enter the following command at a root prompt:

   `init q`