Red Hat Linux 7 Unleashed

Red Hat Linux 7 Unleashed

By William Ball

Other Helpful Printer Programs and Filters

Printer filters work by defining and inserting printer definitions into your /etc/printcap file. Embedded in each printer description is a pointer (pathname) to a script or program containing the filter to be run before output to the printer. This section introduces several ancillary printer filter systems you can try with Red Hat Linux.

Apsfilter

Even if you're spoiled by the printtool program, you will at times need to use other programs or scripts to help set up or manage printing. If you can't or don't want to run X, but want to easily install printing services for HP or PostScript printers, one great solution is the printing filter package called Apsfilter, by Andreas Klemm and Thomas Bueschgens. Installing Apsfilter is a snap, and it's even easier to use.

Apsfilter works well with all Linux printing applications. Two added benefits are that it prints two formatted pages in Landscape mode on a single page when you print text documents, saving you paper, and "automagically" recognizes the following documents and graphic formats: fig, bmp, pbm, pnm, ppm, PDF, tiff, jpeg, gif, Sun rasterfile, PostScript, dvi, raw ASCII, and gzip and bzip2 compressed files.

You'll find the Apsfilter available through its home page at http://people.freebsd.org/~andreas/apsfilter/index.html.

magicfilter

Another printer filter similar to Apsfilter is H. Peter Anvin's magicfilter (also maintained by David Frey for the Debian Linux distribution), which detects and converts documents for printing through a combination of a compiled C filter and a printer configuration file. You'll find a copy at http://www.debian.org/packages/unstable/text/magicfilter.html.

LPRMagic

Michele Andreoli's LPRMagic is another printer filter you can set up under Red Hat Linux. All configuration for the filtering is contained in a /etc/lprMagic.conf file. Some of the features of LPRMagic include file type recognition (even .wav and MIDI!), delayed printing, and Samba and LPRng support. Installation is via a set of shell scripts (executed as root). You can download a copy from http://metalab.unc.edu/pub/Linux/system/printing/.

HPTools

Have a Hewlett-Packard printer? If so, you might want to try Michael Janson's HPTools to manage your printer's settings. The main tool is the hpset command, which sports more than 13 command-line options you can use to control your printer. For example, to save money on print cartridges by using less ink, you can use hpset to tell your printer to print in the economy mode with this code:


   # hpset -c econ | lpr

The hpset command also has an interactive mode, so you can test your printer, set different default fonts, or perform other software control of your printer, such as bi- or unidirectional printing.

You can find HPTools through its home page at http://www.uni-karlsruhe.de/~ujps/hptools.html.

PostScript Printers

If you want a print spooler specifically designed for PostScript printers, give Dave Chappell's PPR a try. PPR works with printers attached to parallel, serial, and AppleTalk (LocalTalk) ports, along with other network interfaces. PPR also works much like other non-PostScript printer filters and converts a number of graphics file formats for printing.

You can find PPR at ftp://ppr-dist.trincoll.edu/pub/ppr/.

Share ThisShare This

Informit Network