[comp.unix.ultrix] ?Spooling to a LAT printer?

mm8s+@psuvax1.UUCP (Michael Meyer) (01/14/88)

Does anyone know how to print to a LAT printer from Ultrix2.0.
In the printcap man page I've found the op (object port) and ts (terminal 
server) options, but otherwise I don't have any idea how to set up printcap to 
spool to the Decserver (or anything else I have to do!!).   I have configured 
the kernel for LAT (and consequently can log into the Ultrix machine from 
Decserver ports), and I can print to the Decserver printers from our VMS 
machines, but I don't have any idea how to print from the Ultrix machine.

Any help would be appreciated.

--Mike Meyer,
Statistics, Carnegie-Mellon University.
(mikem@andrew.cmu.edu)

avolio@decuac.dec.com (Frederick M. Avolio) (01/16/88)

In article <18580@felix.UUCP> mm8s+@psuvax1.UUCP (Michael Meyer) writes:
>
>Does anyone know how to print to a LAT printer from Ultrix2.0.

I am assuming that you have the DECserver port configured correctly
as you can printto it from a VMS host.  

1. Edit /etc/rc.local ...  your lcp line which looks like this:

        /etc/lcp -s & echo -n ' lat'    >/dev/console

Should look like this:

        /etc/lcp -s -h /dev/ttyXX & echo -n ' lat'    >/dev/console


(ttyXX should be replaced with whatever terminal port on your machine
you are using.)

2. Edit /dev/ttys to make sure nothing is running on ttyXX

	ttyXX	"/etc/getty 2" vt100	off nomodem


3. kill -1 1   to goose (technical term... sorry can't explain it) the
	init process

4. Edit printcap.  For example:

lp3|ln03|laser printer on LAT:\
	:fc#0177777:fs#023:lp=/dev/ttyXX:\
	:op=PORT_11:ts=LAT_xxxxxxxxxx:\
	:lf=/usr/adm/lpd-errs:sd=/usr/spool/lp3:

In place of the 'xxxxxxxxxxx' insert the ethernet hardware addresses
of the DECserver.  In place of PORT_11 use whatever port it is
connected to (EG, PORT_6, PORT_1....)

5. mkdir /usr/spool/lp3

This *should* work.

Fred