Question: Solaris 2.3 print filters

Question: Solaris 2.3 print filters

Post by Dale Sea » Sun, 20 Nov 1994 05:00:34



A portion from my SunOS 4.1.3 printcap file showing the entries needed for
one printer in room 100:

        #################################################
        #
        # Color Printers:  Tektronix Phaser-220i in Room 100 and 204.
        #
        col100t|COL100T:\
           :lp=/dev/null:\
           :if=/var/spool/lpd/tek/filters/upper-100.if:\
           :lf=/var/spool/lpd/tek/col100_transparency/col100t-err-log:\
           :sd=/var/spool/lpd/tek/col100_transparency:\
           :mx#0:
        #
        col100p|COL100P:\
           :lp=/dev/null:\
           :if=/var/spool/lpd/tek/filters/lower-100.if:\
           :lf=/var/spool/lpd/tek/col100_paper/col100p-err-log:\
           :sd=/var/spool/lpd/tek/col100_paper:\
           :mx#0:
        #
        col100|COL100:\
           :lp=:\
           :rm=phaser100:\
           :rp=PS:\
           :sd=/var/spool/lpd/tek/col100:\
           :mx#0:
        #################################################

I understand that I may need to have multiple printer queues, like I did in
the SunOS 4.1.3 examples above.  I figured that I may need to use a similar
solution for Solaris 2.3 so I added these print queues using admintool and
lpadmin, just in case:

        /etc/lp/printers/col100
        /etc/lp/printers/col100t        # For transparencies in the upper tray
        /etc/lp/printers/col100p        # For paper in the lower tray

I also added a filter definition file for the upper tray on col100.  The
following is my first try at the filter definition (I don't know if this is
correct):

        Input types: any
        Output types: upperpost
        Filter type: fast
        Command: /etc/lp/printers/col100/tekfilters/upper-100.if

This is the upper-100.if script that is referred to in the SunOS printcap
file with modifications to the last line so that it's output goes to lp
instead of lpr:

        #!/bin/sh
        #
        # file: /var/spool/lpd/filters/upper-100.if
        #
        # The following prepends the postscript code required to select
        # the lower paper tray to standard input and directs standard
        # output to an lpr queue named col100.
        ( \
        echo 2 dict begin\
            /InputAttributes 1 dict begin\
            /Priority [0] def currentdict end def\
            /TraySwitch false def\
           currentdict end setpagedevice\
        ; cat - \
        ) | /bin/lp -o nobanner -d col100

I don't know if I can I use the original input filters in /bin/sh code.
Must I
construct a C program that does the same thing?

I don't know if my filter definition is right

Basically, I don't know anything accept what I read in the AnswerBook,
which isn't much help.

Are there experts that can assist in porting my SunOS 4.1.3 print filters
to
Solaris 2.3?
----------------------------------------------------------------------------
      _/_/_/_/_/  _/_/_/_/_/  _/_/_/_/_/  Dale L. Sears
     _/          _/          _/          NASA Dryden, Edwards, CA
    _/          _/          _/          P.O. Box 273  MS 4820-2B
   _/          _/_/_/_/_/  _/          Edwards, CA  93523

 _/                  _/  _/          Telephone: (805)-258-2339 Fax: ...2873
_/_/_/_/_/  _/_/_/_/_/  _/_/_/_/_/  Computer Sciences Corporation
----------------------------------------------------------------------------

 
 
 

1. Printing from OS/2 client to Solaris 2.3 print server

I've an interesting problem concerning trying to print from our OS/2
machines to our Sun LX machine.

I've configured the OS/2 machines to print to the Solaris machine using
LPD and LPRMON on the OS/2 machine (IBM TCP/IP for OS/2, ver 2.0). The Solaris
machines are using the Solaris 2.3 LP print service (with the latest patches
applied).

When I initially tried printing from the OS/2 machines to the Solaris machine,
a proper banner page printed, however the Postscript code, rather than the
proper output, was printed on the printer. The printer is properly setup as
a Postscript printer and other UNIX and Mac machines have no problem printing
to it as such.

I figured that the problem was the OS/2 machines act as BSD hosts and that
they may not set the TERM and FILTER environment variables properly for the
printer model, so I modified the model for this printer (/etc/lp/model/amber_ps)
so that it would have the TERM and FILTER settings hardcoded into them
(just as an experiment).

Evidently, the printer model was not used to print these files because
the settings in the model were ignored and I found the following in
/var/lp/logs/requests :

        = amber_ps-124, uid 60003, gid 60003, size 11593, Fri Feb 10 13:17:48 EST 1995
        x /usr/lib/lp/postscript/postprint -I
        y /usr/lib/lp/postscript/download -pamber_ps|/usr/lib/lp/postscript/postio 2>>$ERRFILE -L/var/tmp/amber_ps.log
        z amber_ps
        C 1
        D amber_ps
        F /var/spool/lp/tmp/ochre.gatech.edu/124-1
        O nofilebreak flist=' (null):11593 '
        P 20
        T (null)\n#####\n#####\t\t  128.61.42.23
        Y catv_filter
        t simple
        U ochre.gatech.edu!os2user
        s 0x0014
        v 0

I have no idea what catv_filter is, the type should be postscript (not simple) and
I don't know where x and y came from.

I want the machine to simply use postio to dump the Postscript to the printer
from these machines, nothing else.

Any ideas (keeping in mind that the printer model doesn't seem to affect the way
it works).

- James

2. moving disk: sun4c -> sun4m

3. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link problems

4. MTBF for pSeries ????????

5. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link Problems

6. Query: OpenWindows on PC Client?

7. Printer filter for PLP version 3.4.12 on Solaris 2.3

8. How to make Linux a web server using Apache

9. Solaris 2.3 NIS+ Upgrade to Solaris 2.5 NIS+ Question!

10. Wacky print filter question: who printed to me?

11. Printing from Solaris 2.3 to a NeXT printer?

12. Solaris 2.3 print queue problems!

13. Solaris 2.3 and remote printing