Solved

please help with uugetty

Posted on 1998-02-07
2
217 Views
Last Modified: 2010-03-18
Hi! I have extern U.S.Sportster 33.6 modem on Com 2  (ttyS1)
I want to dial in my machine, for this I use uugetty

My /etc/inittab is:
............................
# Serial lines
s1:12345:respawn:/sbin/uugetty 57600 ttyS1 vt100
............................

My /etc/default/uugetty.ttyS1 is:
CLEAR = NO
HANGUP=YES
#DEBUG=777
DEBUG=010
INIT="" ATS0=1\r OK
ALTLOCK=cua1
ALTLINE=cua1
#WAITFOR=RING
#CONNECT="" ATs0=1\r CONNECT \s\A
TIMEOUT=60

My /etc/gettydefs is:
................................
#  Modem that autobauds to different speeds, terminal locked at 9600, etc:
#       - SANE includes CS8 ISTRIP HUPCL
#       - DON'T USE SANE or ECHO for initial config!!!!!
#
57600# B57600 CS8 # B57600 SANE -ISTRIP HUPCL #@S @L @B login: #38400
................................

But after init q I see:
INIT: Id "s1" respawning too fast: disabled for 5 minutes

What's that mean and why?

Thanks
Oleg
olebu@public.lanck.ru
0
Comment
Question by:olebug
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 1587501
First, you can't set the speed > 38.4K using the method above.  It's not supported by the ioctl() interface.  In all of the above, use 38400 as the rate.  Then, in your rc.local, put a line like:

setserial /dev/ttyS1 spd_hi &

This tells the serial port to run at 56K even though you are telling it "normally" to run at 38.4K.  

I also think that the rest of your problem is using uugetty.  agetty or mgetty are much more robust and I'd recommend you switch over to one of them.  Here are my setup files for agetty for a dialin line:

/etc/inittab:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux

/etc/default/uugetty.ttyS1:
CLEAR = NO
HANGUP=YES
#DEBUG=777
DEBUG=010
INIT="" ATM0S0=2&H1&R2&N0&M5&K3\r OK
########ALTLOCK=cua1
#ALTLOCK=modem
ALTLINE=cua1
#WAITFOR=RING
#CONNECT="" ATs0=1\r CONNECT \s\A
TIMEOUT=60

/etc/gettydefs:

38400# B38400 CS8 CRTSCTS # B38400 SANE -ISTRIP CRTSCTS #@S login: #38400
0
 

Author Comment

by:olebug
ID: 1587502
Thanks, I'll folow your advice
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now