[comp.sys.sun] UUCP and terminal access through the same modem

ignacij@cs.utexas.edu (Ignacy Misztal) (05/10/91)

I would like to access the SS2 through a modem and use the same modem for
UUCP when the terminal connection is idle. A local support person told me
to find uugetty or acucntrl, and that the operation might be tricky.  I
was able to get the man pages for uugettty on an anonymous ftp but not the
source. Does anybody run terminal traffic and uucp over the same modem?
Where to get sources for uugetty

Ignacy Misztal
University of Illinois
ignacij@orion.animal.uiuc.edu

jrc@brainiac.mn.org (Jeffrey Comstock) (06/05/91)

In article <2776@brchh104.bnr.ca> you write:
>I would like to access the SS2 through a modem and use the same modem for
>UUCP when the terminal connection is idle. A local support person told me
>to find uugetty or acucntrl, and that the operation might be tricky.  I
>was able to get the man pages for uugettty on an anonymous ftp but not the
>source. Does anybody run terminal traffic and uucp over the same modem?
>Where to get sources for uugetty
>
>Ignacy Misztal
>University of Illinois
>ignacij@orion.animal.uiuc.edu

Hello Ignacy,

I would suggest using the software from Sun instead of uugetty.  It is not
too hard to setup.  Most problems will involve setup of modem and serial
communication parameters.  In a nutshell, here is how to set it up:

I will assume /dev/ttya for the serial connection, and using a Telebit T2500
at 19200 bps.

a) If ttya does not exist in /dev, type 'mknod /dev/ttya c 12 0'.
   This is the device used for calling in.

b) Create /dev/cua0 for dial out. Type 'mknod /dev/cua0 c 12 128'.

c) Set the permissions on the serial devices to proper values:

chown uucp.uucp /dev/ttya
chown uucp.uucp /dev/cua0
chmod 600 /dev/ttya
chmod 644 /dev/cua0

d) Put this line in /etc/ttytab. This will make login use /dev/ttya when a
carrier is detected on the modem: 

ttya    "/usr/etc/getty std.19200"  unknown     on remote

e) Make init re-read /etc/ttytab by typing 'kill -HUP 1'.

f) Put an entry like this in /etc/uucp/Devices for the modem:

ACU cua0 - 19200 tbfast

g) Put an entry like this in /etc/uucp/Dialers for the modem:

tbfast  =W-,    "" \dA\pA\pA\pTE1V1X1Q0S2=255S12=255S50=255S111=30\r\c OK\r \EATDT\T\r\c CONNECT\sFAST

h) Update /etc/uucp/Systems to use ACU:

tcnet Any ACU 19200 4112304 "" \r\n\r\n in:--in: brainiac word: XXXXXX
tricord Any ACU 19200 9112123 "" \r\n in:--in: brainiac word: XXXXXXX

i) Here is how I have my telebit setup:

E0 F1 M1 Q0 T V1 W0 X0 Y0 &P0 &T4     Version GF7.00-T2500SA
S00=001 S01=000 S02:255 S03=013 S04=010 S05=008 S06=002 S07=040 S08=002 S09=006
S10=007 S11=070 S12:255 S18=000 S25=005 S26=000 S38=000 
S41=000 S45=000 S47=004 S48=000 S49=000 
S50=000 S51:005 S52:002 S54:003 S55=000 S56=017 S57=019 S58:002 S59=000 
S61:001 S62=003 S63=001 S64=000 S65=000 S66:001 S67=000 S68:002 S69=000 
S90=000 S91=000 S92=000 S93=008 S94=001 S95=000 S96=001 S97=000 S98=003 
S100=000 S101=000 S102=000 S104=000 S105=001 S106=000 S107=020 
S110:255 S111:255 S112=001 
S121=000 S130:003 S131:001 
S150=000 S151=004 S152=001 S153=001 S154=000 S155=000 S157=000 S158=000 
S160=010 S161=020 S162=002 S163=003 S164=007 S169=000 S255=000 

This will force the T2500 to use 19200 bps for all connections (S51=5). 
The telebit setup is installation dependent.

j) A uucp connection should use /usr/lib/uucico as a shell.  This is done in
/etc/passwd.  You probably want your uucp connections to be in the group
uucp, which is 8 on my system.

tricord:xxxxx:502:8:Tricord:/usr/spool/uucppublic:/usr/lib/uucp/uucico
tcnet:xxxxx:503:8:MN Domain Park:/usr/spool/uucppublic:/usr/lib/uucp/uucico

h) To test dialout, use /usr/lib/uucp/Uutry or cu. Try 'Uutry -r -x6 sysname'
or 'cu -d sysname'.  

If dialout works, a trick to test dial in is to send mail to yourself from 
the remote system. I could do this by sending mail to 'tcnet!brainaic!jrc' or 
'tricord!brainiac!jrc'.  Mail yourself at least a 150k file.  Your throughput
should be at least 800 cps, but 1200 cps is better.  If it is less, it is an
indication that one of the telebits could be setup wrong. 

This should get you going using the SunOS networking software instead of
uugetty.  

Good Luck
-- 
Jeffrey R. Comstock