Hi,
Bellow is my original message:
----- Begin Included Message -----
>From diarra Mon Jun 26 17:46:31 1995
To: diarra
Subject: Printing Using LAT
Content-Length: 1474
X-Lines: 62
Hello managers,
I have a Declaser 1152 connected to a LAT DECserver 90M. I have problems
configuring my OSF/1 system to print through LAT.
I a m working under OSF/1 V2.0:
root_at_# uname -r -s -m
OSF1 V2.0 alpha
I have used lprsetup to configure my printcap:
root# cat /etc/printcap
mlaser|lp10:\
:br#9600:\
:ct=LAT:\
:fc#0177777:\
:fs#03:\
:if=/usr/lbin/ln07rof:\
:lf=/usr/adm/lp10err:\
:lp=/dev/tty0G:\
:mc#20:\
:mx#0:\
:of=/usr/lbin/ln07rof:\
:pl#66:\
:pw#80:\
:rw:\
:sd=/usr/spool/lpd10:\
:xc#0177777:\
:xf=/usr/lbin/xf:\
:xs#044000:
I have used latsetup to create the LAT device /dev/tty0G. This device is not
included in the /etc/inittab. I have add nothing to the /etc/latstartup.conf
file.
I have used the latcp command to assign my local LAT dev to the remote port
on the Terminal Server.
root# latcp -A -p tty0G -H <TSname> -R Port_8
<TSname> is a valid name associated with my DECserver.
root# date | lpr -P mlaser
root# lpstat -a
...
mlaser:
printer is on device '/dev/tty0G' speed 9600
queuing is enabled
printing is enabled
1 entry in spool area
Fri Jun 23 13:38:17 1995: waiting for mlaser to become ready (offline ?)
May some one help me ?
***
Christophe DIARRA
Institut de Physique Nucleaire
Orsay - Bat 100 - S2I
91406 Orsay - FRANCE
E-mail: diarra_at_ipnsun5.in2p3.fr
***
----- End Included Message -----
Thanks to peoples who respond:
Jorge Pizarro (jpizarro_at_sonda.cl)
Alan Oborne (OBORNE_at_CARDIFF.AC.UK)
Tom (xmeyer_at_flying-cloud.mit.edu)
Scott (swr_at_unx.dec.com)
Solving the problem
====================
Alan and Scoot have suggested me to test the access to the Terminal Server
(TS) using the cat command:
# cat afile >/dev/tty0G
I got the following message: "/dev/tty0G: I/O error"
I tried with an other Terminal Server and the command works fine, using
case sensitive names for the TS name and the port name as suggested by Jorge:
# latcp -A -ptty0G -H TERMINAL_SEVER -R REMOTE_PORT
Note: With OSF V3.2, latcp seems to converts all the names in upper cases.
My conclusion
==============
To print using LAT, one needs to do the following (supposed /dev/tyy0G is the
LAT device):
1) Create a LAT device and bind it to a TS:
the LAT device must be excluded from the /etc/inittab or use it with
:off:
Exemple of good inittab entry for a reserved LAT device:
lat0G:3:off:/usr/sbin/getty /dev/tty0G console vt100
Put the following line in the /etc/latstartup.conf file:
latcp -A -ptty0G -H TS_NAME -R REM_PORT
After each reboot, /dev/tty0G will be bound to your remote port during
the execution of /sbin/initd./lat.
If you don't use /etc/latstartup.conf to configure the port, you need
to type the command by hand each time the system reboots.
Note: with OSF V2.0 you must take care to the case of the names: you
must use upper cases for the TS name and the remote port. With OSF
V3.2 (or less ?) this problem seems to be solved.
2) Use lprsetup to modify the /etc/printcap file
o set ct to LAT or dev
o set br to the remote speed of the TS port you are using
o ts and op don't have any effect (may be I am wrong ?)
3) If problems occur with "lpr -Pprinter_name afile"
use : # cat afile > /dev/tty0G
If there is no error message and the file is printed, you need to check
your printcap.
If you have the message "I/O error" you need to check the connection
with your TS.
***
Christophe DIARRA
Institut de Physique Nucleaire
Orsay - Bat 100 - S2I
91406 Orsay - FRANCE
E-mail: diarra_at_ipnsun5.in2p3.fr
***
Received on Mon Jul 03 1995 - 11:55:10 NZST