How to set up filters in /etc/printcap?

How to set up filters in /etc/printcap?

Post by Byron A Je » Sat, 05 Aug 1995 04:00:00




>Hello.

>I just want to use ghostscript as a filter on my linux machine, so that
>I'm able to create a "virtual" printer named ps where I can send
>directly PostScript documents.

Get a copy of apsfilter 4.91 and install it.

sunsite.unc.edu:/pub/Linux/systems/Printing/apsfilter....

BAJ
--
Another random extraction from the mental bit stream of...
Byron A. Jeff - PhD student operating in parallel - And Using Linux!

 
 
 

How to set up filters in /etc/printcap?

Post by fr.. » Sat, 05 Aug 1995 04:00:00


Hello.

I just want to use ghostscript as a filter on my linux machine, so that
I'm able to create a "virtual" printer named ps where I can send
directly PostScript documents.

Thanks for any help.
Please reply by e-mail.

Bye!

--
.---------------------------------------------------------------------------.

|    WWW-PAGE: http://pandora.dibe.unige.it/~fritz/   | Style distinguishes |
|       PHONE: +39 10  3532163/3532780/3532781        |   excellence from   |
|      Dept. of Biophys. and Elect. Eng. (DIBE)       |   accomplishment.   |
|     University of Genoa - ITALY, EUROPE, EARTH      |                     |
`---------------------------------------------------------------------------'
 All expressed opinions are personal and not of the organization I work for.

 
 
 

How to set up filters in /etc/printcap?

Post by fr.. » Sat, 05 Aug 1995 04:00:00


: Hello.

: I just want to use ghostscript as a filter on my linux machine, so that
: I'm able to create a "virtual" printer named ps where I can send
: directly PostScript documents.

: Thanks for any help.
: Please reply by e-mail.

: Bye!

OK, solved! I used apsfilter, a REALLY WELL WRITTEN PACKAGE that comes
with an automatic installation script. Five minutes after untarring it,
apsfilter was up and running!

Well, congratulations to the authors!

P.S.: If someone needs, the package can be found in any linux mirror under
the Printers directory or similar.

--
.---------------------------------------------------------------------------.

|    WWW-PAGE: http://pandora.dibe.unige.it/~fritz/   | Style distinguishes |
|       PHONE: +39 10  3532163/3532780/3532781        |   excellence from   |
|      Dept. of Biophys. and Elect. Eng. (DIBE)       |   accomplishment.   |
|     University of Genoa - ITALY, EUROPE, EARTH      |                     |
`---------------------------------------------------------------------------'
 All expressed opinions are personal and not of the organization I work for.

 
 
 

How to set up filters in /etc/printcap?

Post by MATTHEW W FOST » Sun, 06 Aug 1995 04:00:00



>I just want to use ghostscript as a filter on my linux machine, so that
>I'm able to create a "virtual" printer named ps where I can send
>directly PostScript documents.

  First you would edit the /etc/printcap file to reflect what you are
wanting to do.  Something like this might do what you want.

        # /etc/printcap

        ps:\
                :lp=/dev/lp0:\          # CHANGE TO SUIT YOUR NEEDS!
                :sd=/var/spool/lpd/ps:\
                :lf=/var/adm/lpd-errs:\
                :if=/usr/local/lib/psfilter:\
                :sh:mx#0:

  Then you would need to create the spool directory (/var/spool/lpd/ps),
and change its permissions.  And, then create the filter
(/usr/local/lib/psfilter).  The filter might look like:

        # /usr/local/lib/psfilter - a PostScript filter
        # edit as required

        /usr/bin/gs -q -dNOPAUSE -sDEVICE=deskjet -sOutputFile=- -

  You may have to change the device type (since I have a DeskJet, I used
that).

  If you run into any problems, let me know.

        --mwf

---

Linux Printing HOWTOs Maintainer
http://www.engr.uark.edu/~mwf/

 
 
 

1. installing ghostscript as filter in /etc/printcap

I keep reading about how easy it is to install ghostscript as a print
filter to allow easy printing of Postscript files to non-postscript printers.
I still haven't seen an /etc/printcap with this implemented, however, nor
have I been able to find anything online with specific examples of how to
implement this, and AFAIK, it's not in the Ghostscript docs, either.

My present /etc/printcap is as follows:

hardcopy|hardcopy: \
   :lp=/dev/lp1: \
   :sd=/usr/spool/lpd/hardcopy: \
   :lf=/usr/spool/lpd/hardcopy/errs: \
   :mx#0: \
   :sh: \
   :sf:

Any and all help is appreciated.  Thanks.

--
<html><head><title>Down with HTML news postings!</title></head><body>
<h1><blink>If this line blinks, then it's time to get a newsreader that
doesn't encourage HTML news posting!  There are many that are better
than Netscape or IE; try trn!</blink></h1></body></html>

2. solaris su command

3. Help needed: Ghostscript as /etc/printcap filter

4. Conner 250MQ problems :(

5. Filters and /etc/printcap

6. qmail, unable to read controls

7. Using Output Filters in /etc/printcap

8. Answerbook

9. SUMMARY: Filters and /etc/printcap

10. /etc/printcap entry and filters for NEC SilentWriter 2 /90

11. Filter todos in the /etc/printcap file for IBM 4019 & HP Laserjet printer

12. Help with Slackware 7, /etc/printcap, filters, and TCP/IP Printing

13. Printcap -d filter (etc)