### Configuring a Device for a Terminal

Use this procedure to configure a RealPort 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 command, like the following example, for the port in a startup file:

   `ditty forcedcd ttya12`

2. Connect a proper cable between the port and terminal.
3. Enable the port by editing the /etc/inittab file. Locate the proper RealPort device to enable and change the word off to respawn. This line shows an example of a inittab entry for the first port of a PortServer with a designation letter of "a".

   `Xx01:23:off:/etc/getty ttya12 H`

4. Change the letter or number at the end of the entry as needed. The last number or letter (H in the previous example) is an entry in the /etc/gettydefs file. This sets the speed, data bits, stop bit(s) and parity for the port. Consult your operating system documentation for more information on /etc/gettydefs.
5. Enter the following command at a root prompt:

   `init q`