LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2007, 04:02 PM   #1
dgr
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Rep: Reputation: 15
mgetty on ttys1 not working/starting?


hello,
We have one employee who at home she has a dial-up connection to the internet. In the past, with the old SCO Unix server, she would do work remotely from home via Hypertermial and that dial-up connection. Since we've moved to the Linux server, she can dial into it she says, but in Hypertermal after putting in the kcs login she then just gets "garbage" on the screen. I've just setup AnzioWin on her pc in an attempt to fix that issue. In the meantime, I've setup a test Hypertermial connection on my office pc to the DAKCS server via dialup, I'm able to make a successful modem connection, but I'm then present with a blank HT screen and no matter what key I hit, no login screen data is displayed. Do you know why I can't get dial-up to work from my office pc?

I've used the ps -deaf | grep S1 and it returned two lines:
/sbin/agetty 9600 ttys1 wyse60
grep S1

Is the problem that it's agetty instead of mgetty? If so, how do I fix that.

I used ps -deaf | grep S0 and it returned one lines:
grep S0

there was no /sbin.... line


here's the contents of /etc/inittab

----------------------------

#
# inittab This file describes how the INIT process
should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg,
<miquels@drinkel.nl.mugnet.org>
# 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)
#
id:5:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

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

# Trap CTRL-ALT-DELETE
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:owerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

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


# Run gettys in standard runlevels
1:2345: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:/etc/X11/prefdm -nodaemon
S0:2345:respawn:/sbin/mgetty 9600 ttyS0 wyse60
S1:2345:respawn:/sbin/agetty 9600 ttyS1 wyse60

--------------------------

A couple of weeks ago, I manually ran mgetty 9600 ttyS1 wyse60 At the # prompt and edited the /etc/inittab to start mgetty on S1 instead of agetty. Then the modem connection started working. Then a couple of days ago, our Linux server rebooted, and now I unfortunately can't get the dial-in connection to work, i.e. after the modem makes a connection, a login: prompt is never displayed in the telnet window.

I tried at the # sign on the server running mgetty 9600 ttyS1 wyse60 which seemed to work back on Sept. 14th when I last e-mailed you, but now, after I enter that command, it takes me to a # sign like it did before, but when I type ps -deaf | grep S1 It just returns one line
Root 1928 29912 0 15:32 pts/50 00:00:00 grep s1
Then takes me to a # sign. No other info was returned, like if mgetty is running on the port or not.

I also tried typing
agetty 9600 ttyS1 wyse60
And the termial would just lock up until I hit ctrl-c, then a # sign would appear.

The /etc/initab file is still set where this line reads
S1:2345:respawn:/sbin/mgetty 9600 ttyS1 wyse60 Instead of referring to agetty.

I did check to see that the modem cables were secure and they looked to be good.

Does anyone know how to fix this problem once and for all so dial-up will work both before and after a reboot?


thanks in advance,
david
 
Old 09-27-2007, 07:44 AM   #2
dgr
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Original Poster
Rep: Reputation: 15
can anyone help me with this issue?
thanks in advance,
david
 
Old 09-28-2007, 07:23 AM   #3
dgr
LQ Newbie
 
Registered: Aug 2007
Posts: 25

Original Poster
Rep: Reputation: 15
can anyone help me with this issue?
thanks in advance,
david
 
Old 09-28-2007, 12:44 PM   #4
mickza
Member
 
Registered: Mar 2005
Location: South Africa
Distribution: Centos, Fedora, Ubuntu desktop, IPCop
Posts: 168

Rep: Reputation: 33
Check for a .LCK file (probably two of them S0 & S1). You find them in /var/lock on fedora.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
respawn changes to off on ttyS1 DownhillGeezer Linux - General 4 02-19-2007 11:25 AM
Terminal ttyS1 not working after re-install pentalive Linux - Hardware 4 02-24-2006 07:29 PM
modem on ttyS1 ?? skguha Linux - Newbie 6 08-18-2005 07:08 PM
mgetty+sendfax not working in redhat linux 9 Sailaja Reddy Red Hat 0 12-21-2004 05:35 AM
Dial-In Server not working! Mgetty - DSR is Off! diogo_cc Linux - Networking 0 03-24-2004 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration