### Configuring Terminals and Dial-in Modems

Use the following examples to configure your Digi serial device for a terminal or dial-in modem. Digi ports are configured in the same way standard communications ports /dev/ttyS0 and /dev/ttyS1 are although the name of the getty that configures your port varies from system to system.

Note: The following information is only meant to serve as a guide.

- A common RedHat terminal install script where getty is getty_ps would be:

`dl:2345:respawn:/sbin/getty ttyD1 DT9600 vt100`

- A common Debian terminal install script where getty is agetty would be:

`D1:23:respawn:sbin/getty -L ttyD1 19200 vt100`

- An example of an mgetty modem script which is available both in RedHat and Debian is:

`T3:23:respawn: /sbin/mgetty -x0 -s 115200 ttyD3`

Note: Altpin should be off on the Digi DB25 or RJ-45 10-pin ports. Modems wired to RJ-45 Digi ports with an 8-wire cable should have altpin turned on. You can do this by editing the /etc/digiepca/rc.epca file, adding a line at the bottom of the file for each port. For example:

`ditty altpin /dev/ttyD0`
`ditty altpin /dev/ttyD2`