### Configuring a Device for a Printer

Use this procedure to configure a Digi serial device for a printer. Consult your operating system documentation for more information on configuring a serial device for a printer.

#### Procedure

1. Connect a proper cable between the port and printer.
2. If you are configuring EtherLite ports, skip this step.

   If you are using 8-pin RJ-45 cabling from the Digi serial port to the modem, enable altpin by inserting a ditty command or altpin option to an existing ditty command for the port in the file /dev/rc.d/8/userdef.

   Example

   `ditty altpin device_name`

   where `device_name` is the name of the Digi device.

   Note: By inserting the command in the startup file, it will execute every time the system is booted. For the altpin option to take effect immediately, enter the ditty altpin command at a UNIX prompt.

3. Insert the following command at the end of the file /etc/rc.d/8/userdef:

   `ditty printer device_name`

   This command forces the specified port to stay open, thus preserving any "non-sticky" options. Substitute your device name in the command.

4. Insert any other necessary ditty commands at the end of the file /etc/rc.d/8/userdef. The command ditty can be used to change the settings of a port. For additional information on ditty, see Setting TTY Options.

   For example, the following command will set the port ttya01 to a speed of 38400, disable software flow control, and enable hardware flow control on the port:

   `ditty 38400 -ixon -ixany -ixoff ctspace device_name`

   By placing the ditty command in /etc/rc.d/8/userdef, it will be executed whenever the system is booted.

5. If you wish to set up a print spooler, enter the following command at a root prompt:

   `scoadmin printer`

   See your SCO UnixWare documentation for information on scoadmin.

6. Reboot the system or enter the ditty command manually for the new settings to take effect.