Solved

please help with uugetty

Posted on 1998-02-07
2
229 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

911 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

17 Experts available now in Live!

Get 1:1 Help Now