1. Home
  2. Computing & Technology
  3. Linux

The Linux Modem How-To

From The Linux Documentation Project

13.2 Setting up uugetty

With uugetty you may dial out with your modem while uugetty is watching the port for logins. uugetty does important lock file checking. Update /etc/gettydefs to include an entry for your modem. For help with the meaning of the entries that you put into /etc/gettydefs, see the "serial_suite" collected by Vern Hoxie. How to get it is in section See About getty_em. When you are done editing /etc/gettydefs, you can verify that the syntax is correct by doing:


linux# getty -c /etc/gettydefs
[/blockquote]

Modern Modems

If you have a 9600 bps or faster modem with data compression, you can lock your serial port to one speed. For example:


# 115200 fixed speed
F115200# B115200 CS8 # B115200 SANE -ISTRIP HUPCL #@S @L @B login: #F115200
[/blockquote]

If you have your modem set up to do RTS/CTS hardware flow control, you can add CRTSCTS to the entries:


# 115200 fixed speed with hardware flow control
F115200# B115200 CS8 CRTSCTS # B115200 SANE -ISTRIP HUPCL CRTSCTS #@S @L @B login: #F115200
[/blockquote]

Old slow modems

If you have a slow modem (under 9600 bps) Then, instead of one line for a single speed, your need several lines to try a number of speeds. Note that these lines are linked to each other by the last "word" in the line such as #4800. Blank lines are needed between each entry. Are the higher modem-to-serial_port speeds in this example really needed for a slow modem ?? The uugetty documentation shows them so I'm not yet deleting them.


# Modem entries
115200# B115200 CS8 # B115200 SANE -ISTRIP HUPCL #@S @L @B login: #57600

57600# B57600 CS8 # B57600 SANE -ISTRIP HUPCL #@S @L @B login: #38400

38400# B38400 CS8 # B38400 SANE -ISTRIP HUPCL #@S @L @B login: #19200

19200# B19200 CS8 # B19200 SANE -ISTRIP HUPCL #@S @L @B login: #9600

9600# B9600 CS8 # B9600 SANE -ISTRIP HUPCL #@S @L @B login: #4800

4800# B4800 CS8 # B4800 SANE -ISTRIP HUPCL #@S @L @B login: #2400

2400# B2400 CS8 # B2400 SANE -ISTRIP HUPCL #@S @L @B login: #1200

1200# B1200 CS8 # B1200 SANE -ISTRIP HUPCL #@S @L @B login: #115200
[/blockquote]

Login Banner

If you want, you can make uugetty print interesting things in the login banner. In Greg's examples, he has the system name, the serial line, and the current bps rate. You can add other things:


@B The current (evaluated at the time the @B is seen) bps rate.
@D The current date, in MM/DD/YY.
@L The serial line to which uugetty is attached.
@S The system name.
@T The current time, in HH:MM:SS (24-hour).
@U The number of currently signed-on users. This is a
count of the number of entries in the /etc/utmp file
that have a non-null ut_name field.
@V The value of VERSION, as given in the defaults file.
To display a single '@' character, use either '\@' or '@@'.
[/blockquote]

* License

* Modem How-To Index

About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >