Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Setup of mgetty

Posted on 1999-07-02
Medium Priority
Last Modified: 2013-12-15
Dear sir,

I am using RedHat 5.2.  I have installed mgetty in order to make the linux can be dialin access.  However, I don't know how to set it.  I have read the document, but still not work.

Can anyone tell me the procedure step by step how to configure the mgetty and how to execute mgetty so that the linux can be accessed through modem?

Best Regards
Question by:benson031397
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1629154
can you post your inittab file?

Author Comment

ID: 1629155
Dear all , here is the inittab file.

However, can I don't do it in the inittab.  Can I execute the mgetty in the command line with the mgetty.config file?

# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
# Author:       Miquel van Smoorenburg, <>
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes

# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)

# System initialization.

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Things to run in every runlevel.

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"

# Run gettys in standard runlevels
1:12345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

# Run xdm in runlevel 5
x:5:respawn:/usr/bin/X11/xdm -nodaemon


Expert Comment

ID: 1629156
read the "Modem-HOWTO" (probably under /usr/doc/howto ...)

Accepted Solution

diogoschneider earned 100 total points
ID: 1629157
I couldn't see an entry to mgetty on your inittab posted above. Here's what you should put on the inittab taking a standard Sportster 28,800 US Robotics, assuming your modem is in your COM3:

S2:23:respawn:/sbin/mgetty -s 115200 -n 1 -D -m '"" AT&F1&C1E1V1S0=0Q0M0L0' /dev/ttyS2

 I know, I know, putting the initialization string here isn't nice, but believe me, it's the most efficient way. It avoids modems to stop answering without reason. (Frozem modem phenomenom)

 If you don't have an US Robotics, just check out your modem's manual for it's initialization string. But in most cases just replacing the above "&F1" with "&F" should work.

 If your modem isn't in COM3, replace "S2" with:

 COM1 - S0
 COM2 - S1
 COM3 - S2
 COM4 - S3

 Good luck!



Expert Comment

ID: 1629158

 I've done the configuration exactly how is shown on that URL just yesterday and at night I was accessing the Internet from home through my own server just fine...

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

661 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