Solved

inittab setup for mgetty . . .

Posted on 1998-08-12
1
397 Views
Last Modified: 2013-12-15
We currently have a modem setup on our system so that we can make a ppp
connection to other systems.  This setup is sometimes unreliable and we suspect
that it is because that connection is being serviced by getty, instead of mgetty.  In
setting up for mgetty I think I've made the appropriate entries in gettydefs.  Now I'm
not sure how to make the appropriate entries in /etc/inittab, so that mgetty knows
to look in gettydefs.  Some of the principle issues I'm concerned with are:

a.)  Making sure that the port can continue to be used the way that it has been, both
for ppp and direct login.

b.)  Solving our problems with not being able to use the port again, when the line drops
improperly.

Question:  What is the appropriate string for setting up inittab, for mgetty, so that it can
do auto-baud rate detection?
0
Comment
Question by:otser
1 Comment
 
LVL 2

Accepted Solution

by:
alexbik earned 200 total points
ID: 1629577
Hi,

If you use mgetty with 'default' settings you'll be fine.
You may want to compile in Auto_PPP support, so your users can login
from W95 /NT machines without a loginscript. But that's a bit beside the point here.
Take a look at mgetty.conf, configure the default settings for your modems
(speed, initstring and stuff), and take a look et login.conf.

From inittab, you can start mgetty with mgetty /dev/ttyXXX -D
The -D disables 'adaptive answer mode'. If you don't and you are using fax modems
(you probably are), mgetty tells your modems to try to find out weahter there's a fax
or a modem at the other end of the line. This sometimes results in failed V34 handshakes.

The only thing you may want to change is the login prompt (-p), so you can keep using
your old loginscripts. Just put -p <login prompt> at the command line. If you don't
the default login prompt looks like

<machine_name>!login:

So if your machine is called cs-01 it will be:

cs-01!login:

Your old getty probably uses a space instead of a bang.

Alex.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question