Table 1-2 provides an overview of the major tasks for each of the three usage modes. An "x" in the table cell denotes the task is performed.
Find the line for the port. The line begins with tportnumber
, where portnumber is the number of a serial port. For example, if you connected your modem to port 2, look for a line similar to the following:
t2:23:respawn:/etc/getty -N ttyd2 co_9600 #port 2
Change respawn to off. This tells the system not to restart the /etc/getty program when it exits. If it is already off, continue to the next step. The line should look like this when you are finished:
t2:23:off:/etc/getty -N ttyd2 co_9600 #port 2
telinit q
Dial-in | Dial-out | Dial-in/Dial-out |
---|---|---|
-i | -o | -io |
Note: Be sure to view the entire configuration script for information and command arguments specific to your modem type before running the script.
For example, if you want to configure a US Robotics Sportster modem for dial-in/dial-out, connected to port 2, use the fix-usr command and specify a dial-in/dial-out argument (-io) and the port number to which the modem is connected. For example, enter the command:
/etc/uucp/fix-usr -io 2
You can also specify the optional modem model type and the modem speed, using the command:
/etc/uucp/fix-usr -io -m SPORT -s 38400 2
As another example, to configure a Telebit modem for dial-in only mode, use the fix-telebit command and specify a dial-in modem (-i), the model of the modem (tb+, t1000, t1600, t2500) and its speed, and the port number to which the modem is connected.
In this example, if a T2500 modem is connected to port 2 at 19,200 baud, dial-in only, enter the following command:
/etc/uucp/fix-telebit -i -m t2500 -s 19200 2
You turn on dial-out modem software by editing the /etc/uucp/Devices file. You also have to change ownership of the port to uucp.
ACU ttynportnumber null baud 212 x dialer
Direct ttydportnumber - baud direct
The value for portnumber is the number of the serial port to which the modem is connected. The baud variable is the baud rate at which you will run the modem. The dialer variable is the model tag, as listed in the first field of the /etc/uucp/Dialers file.
Note: If your modem type is not listed in the Dialers file, you may want to obtain the most up-to-date version of the Dialers file. It is available online from Silicon Graphics with the ftp utility.
For example, for a US Robotics modem connected to serial port 2 that can accept and send data at 38400 baud (using RTS/CTS hardware flow control), add the following lines to the Devices file:
ACU ttyf2 null 38400 212 x usr
Direct ttyd2 - 38400 direct
Direct ttyf2 - 38400 direct
For a Telebit modem connected to serial port 2 and running at 19200 baud, add the following lines:
ACU ttyf2 null 19200 212 x telebit
Direct ttyd2 - 19200 direct
Direct ttyf2 - 19200 direct
Save and exit the Devices file.
chown uucp /dev/tty[dfm]2
Complete the configuration by editing the file /etc/inittab. Perform the following steps:
Find the line for the port to which the modem is connected. The line begins with tportnumber
, where portnumber is the number of a serial port. For example, if you connected your modem to port 2, look for a line similar to the following:
t2:23:off:/etc/getty -N ttyd2 co_9600 #port 2
Make the following changes to this line:
For example, if you connected a US Robotics modem to serial port 2, and found a line similar to this line in /etc/inittab:
t2:23:off:/etc/getty -N ttyd2 co_9600 #port 2
You would change it to read:
t2:23:respawn:/usr/lib/uucp/uugetty -Nt60 -iusrin,conn ttyf2 dx_38400 #Modem 555-2345
If you are setting up a Telebit modem to serial port 2, and found a line similar to this one:
t2:23:off:/etc/getty -N ttyd2 co_9600 #port 2
You would change it to read:
t2:23:respawn:/usr/lib/uucp/uugetty -Nt60 -itelebitin,conn ttyf2 dx_19200 #Modem 555-3456
telinit q
To dial out through the modem to verify the dial-out setup, continue with the section "Dialing Out to Another Modem."