Solved

please help with uugetty

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Debian: failing to add netwok bridge for kvm 2 109
OpenVPN Speed limitation to only 10 mbps 7 137
App holding yum lock unable to update my rpm package 1 54
ifconfig 4 46
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 will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

777 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