Книга: Fedora™ Unleashed, 2008 edition

Managing Printing Services

Managing Printing Services

After defining a printer, you can use the command line to view and control your print jobs, or if root, all print jobs and printers on your system. Table 8.1 contains a partial list of CUPS and related printing commands and drivers included with Fedora.

TABLE 8.1 Print-Related Commands and Drivers

Name Description
a2ps Formats text files for PostScript printing
accept Controls CUPS print job destinations
cancel Cancels a CUPS print job
disable Controls CUPS printers
dvi[lj, lj4l, lj2p, lj4] Converts TeX DVI files to specific PCL format
enable Controls CUPS printers
encscript Converts text files to PostScript
escputil Epson Stylus inkjet printer utility
grolbp groff driver for Canon LBP-4 and LBP-8 laser printers
gs The Ghostscript interpreter
gsbj [dj500, lp] Ghostscript BubbleJet printer drivers
gsdj [dj500, lj, lp] Ghostscript DeskJet printer drivers
lpadmin CUPS command-line-based printer utility
lp Starts a CUPS print job
lpc A Berkeley-subset CUPS printer control client
lpf General printer filter
lprm A Berkeley-compatible CUPS job queue utility
lpstat Displays CUPS print jobs and printer status
mpage PostScript text formatting utility
pbm[2ppa, page, to10x, toepson, toppa, toptx] Portable bitmap conversion utilities
pr Text formatting command
psmandup Duplex printing utility for nonduplex printers
reject Controls CUPS print job destinations
setup Launches printer configuration tool
smbclient SMB print spooler
smbprint SMB print shell script
smbspool SMB printer spooler
thinkjettopbm Portable bitmap to ThinkJet printer conversion utility

Most Linux systems use PostScript as the default document format for printing. Fedora uses the gs command along with CUPS to manage local and remote print jobs and the type of data transferred during a print job. The gs command is used to translate the document stream into a format accepted by the destination printer (which most likely uses HPCL).

You can use the Ghostscript interpreter gs to display its built-in printer devices by using the gs interpreter with its --help command-line option like this:

# gs --help

NOTE

Fedora includes graphical clients you can use to view many different types of documents. For example, to display PostScript documents (including compressed PostScript documents) or PostScript images, use the gv client. To display Portable Document Format (PDF) documents, you can use gv or the xpdf client.

The gs command outputs many lines of help text on command-line usage and then lists built-in printer and graphics devices. Another way to get this information is to start gs and then use the devicenames == command like this:

# gs
GPL Ghostscript 8.60 (2007-08-01)
Copyright (C) 2007 Artifex Software, Inc. All rights reserved.
...Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3 PDF
Default output device: display
Available devices:
 alc1900 alc2000 alc4000 alc4100 alc8500 alc8600 alc9100 ap3250 appledmp
 atx23 atx24 atx38 bbox bit bitcmyk bitrgb bj10e bj10v bj10vh bj200 bjc600
 bjc800 bjc880j bjccmyk bjccolor bjcgray bjcmono bmp16 bmp16m bmp256
 bmp32b bmpa16 bmpa16m bmpa256 bmpa32b bmpamono bmpasep1 bmpasep8 bmpgray
 bmpmono bmpsep1 bmpsep8 ccr cdeskjet cdj1600 cdj500 cdj550 cdj670 cdj850
 cdj880 cdj890 cdj970 cdjcolor cdjmono cfax cgm24 cgm8 cgmmono chp2200 cif
 cljet5 cljet5c cljet5pr coslw2p coslwxl cp50 cups declj250 deskjet
 devicen dfaxhigh dfaxlow display dj505j djet500 djet500c dl2100 dnj650c
 epl2050 epl2050p epl2120 epl2500 epl2750 epl5800 epl5900 epl6100 epl6200
 eps9high eps9mid epson epsonc epswrite escp escpage faxg3 faxg32d faxg4
...
Search path:
 . : /usr/share/ghostscript/8.15/lib :
 /usr/share/ghostscript/8.15/Resource : /usr/share/ghostscript/fonts :
 /usr/share/fonts/default/ghostscript : /usr/share/fonts/default/Type1 :
 /usr/share/fonts/default/amspsfnt/pfb :
 /usr/share/fonts/default/cmpsfont/pfb : /usr/share/fonts/japanese :
 /etc/ghostscript

Not all the devices are listed in this example.

Aladdin or GNU?

At least two versions of Ghostscript are available for Linux. One version is named AFPL Ghostscript, which formerly went by the name Aladdin Ghostscript. This version is licensed under the Aladdin Free Public License, which disallows commercial distribution. The other version is called GNU Ghostscript, which is distributed under the GNU General Public License. For details about the different versions or for answers to questions regarding licensing, see the Ghostscript home page at http://www.cs.wisc.edu/~ghost/.

Оглавление книги

Оглавление статьи/книги

Генерация: 2.499. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз