Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

please help with uugetty

Posted on 1998-02-07
2
Medium Priority
?
275 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
[X]
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
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

618 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