Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

inittab setup for mgetty . . .

Posted on 1998-08-12
1
Medium Priority
?
404 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 800 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

876 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