[Prev][Next][Index]

uugetty and dialing out problem



After using my modem at /dev/cua3 to ppp connect to my
Internt provider for quite some time, I wanted to 
be able to connect to my linux box from home through telephone
(ie. dial using HAYS compatible DOS software).

So I followed the serial HOWTO guidelines and got it work fine.

But the problem now is that my linux fails to establish 
the ppp connection as it used to (it does ring out but fails with 
the connection).

I have to assume that the problem is due to the uugetty process
since if I comment out the uugetty line in /etc/inittab and
restart init, then everthing is ok (i.e. no uugetty process is running).

My question is, therefore, how should I set uugetty as to not
interfere when I am dialing out (if this is indeed the problem).

I tried to define INITLINE= to be ttyS3 instead of cua3 
(in /etc/defaults/uugetty.ttyS3) so as to mean dialing in and not out
but this does not work (and I cannot dial out either).

Thanks for your advise Zachi.

Attached are the relevant files:

/etc/gettydefs:

vc# B9600 SANE # B9600 SANE -ISTRIP CLOCAL #@S login: #vc

F19200# B19200 CS8 CRTSCTS # B19200 SANE -ISTRIP HUPCL CRTSCTS #@S @L @B @D @T
l
ogin: #F19200

/etc/default/uugetty.ttyS3 :
ALTLOCK=cua3
ALTLINE=cua3
# line to initialize
INITLINE=cua3
# timeout to disconnect if idle...
TIMEOUT=60
# modem initialization string... 
INIT="" AT\r OK\r\n
WAITFOR=RING

CONNECT="" ATA\r CONNECT\s\A
# this line sets the time to delay before sending the login banner
DELAY=1

/etc/inittab:

 .... few lines deleted ...

# The getties in multi user mode on consoles an serial lines.
#
# NOTE NOTE NOTE adjust this to your getty or you will not be
#                able to login !!
#
# Note: for 'agetty' you use linespeed, line.

# for 'getty_ps' you use line, linespeed and also use 'gettydefs'
c1:12345:respawn:/sbin/agetty 38400 tty1
c2:12345:respawn:/sbin/agetty 38400 tty2
c3:45:respawn:/sbin/agetty 38400 tty3
c4:45:respawn:/sbin/agetty 38400 tty4
c5:45:respawn:/sbin/agetty 38400 tty5
c6:456:respawn:/sbin/agetty 38400 tty6

# Serial lines
#s1:45:respawn:/sbin/agetty 19200 ttyS0
#s2:45:respawn:/sbin/agetty 19200 ttyS1
S3:456:respawn:/sbin/uugetty ttyS3 F19200 vt102

# Dialup lines
#d1:45:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0

#d1:45:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0
#d2:45:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1

 ... few more lines deleted ....






-- 
---------------------------------------------
E-mail: zachi@netvision.net.il (Isaac Miller)
Phone : 972-3-6370140     Fax : 972-3-6730492
---------------------------------------------