Solved

please help with uugetty

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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Install dhcp server on Ubuntu server 4 78
E-mail settings for Fail2ban 7 139
Help with Ubuntu 14.04 LTS 10 137
Configuring windows 7 host in Nagios 4 5 79
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 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