GSinterface(1) General Commands Manual GSinterface(1)NAME
GSinterface - LP interface script for using ghostscript under lpsched
GSinterface [request-id] [user] [title] [copies] [options] [files]
This shell script is intended to be uses as an LP interface script on Solaris 2.6 and later systems. It allows print queues to be config-
ured under LP using Ghostscript to render for the printer.
Configuration under lpsched is performed via the lpadmin(1M) command.
# lpadmin -p printer -v /dev/... -I"postscript,pdf" -Tunknown-i /usr/sfw/share/ghostscript/interfaces/GSinterface
[-o OutputFile=(file/device)] [-o PAPERSIZE=(size)]
[-o RESOLUTION=XxY] [-o banner-type=(ascii|postscript)]
[-o GS_OPTIONS="-sIjsServer=... -sIjsParams=..."]
Valid values for the GS_DEVICE setting can be obtained from Ghostscript by running: "gs -h". This will dump a variety of information about
Ghostscript's usage and compile time configuration. The "Available devices:" section lists the formats that Ghostscript will render to.
You will need to match one of these formats to the format that your printer takes as input.
To configure a Canon Bublejet 800c (NeWSprinter CL+) printer connected to an ECP parallel port:
# lpadmin -p printer -v /dev/ecpp0 -I"postscript,pdf" -Tunknown-i /usr/sfw/share/ghostscript/interfaces/GSinterface
# accept printer
# enable printer
To configure an HP DeskJet 990 printer connected via a USB interface using IJS support:
# lpadmin -p printer -v /dev/usb/lp1 -I"postscript,pdf" -Tunknown-i /usr/sfw/share/ghostscript/interfaces/GSinterface
-o GS_OPTIONS="-sIjsServer=hpijs -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel='DESKJET 990' -DIjsUseOutputFD"
# accept printer
# enable printer
SEE ALSO gs(1)Ghostscript 15 October 2002 GSinterface(1)
Check Out this Related Man Page
lpadmin(8) Easy Software Products lpadmin(8)NAME
lpadmin - configure cups printers and classes
lpadmin [ -E ] [ -h server ] -d destination
lpadmin [ -E ] [ -h server ] -p printer option(s)
lpadmin [ -E ] [ -h server ] -x destination
lpadmin configures printer and class queues provided by CUPS. It can also be used to set the server default printer or class.
When specified before the -d, -p, or -x options, the -E option forces encryption when connecting to the server.
The first form of the command sets the default printer or class to destination. Subsequent print jobs submitted via the lp(1) or lpr(1)
commands will use this destination unless the user specifies otherwise with the lpoptions(1) command.
The second form of the command configures the named printer. The additional options are described below.
The third form of the command deletes the printer or class destination. Any jobs that are pending for the destination will be removed and
any job that is currently printed will be aborted.
The following options are recognized when configuring a printer queue:
Adds the named printer to class. If class does not exist it is created automatically.
Sets a System V style interface script for the printer. This option cannot be specified with the -P option (PPD file) and is intended
for providing support for legacy printer drivers.
Sets a standard System V interface script or PPD file from the model directory.
Sets a PPD or server option for the printer. PPD options can be listed using the -l option with the lpoptions(1) command.
Sets the kilobyte limit for per-user quotas. The value is an integer number of kilobytes; one kilobyte is 1024 bytes.
Sets the page limit for per-user quotas. The value is the integer number of pages that can be printed; double-sided pages are counted
as two pages.
Sets the accounting period for per-user quotas. The value is an integer number of seconds; 86,400 seconds are in one day.
Removes the named printer from class. If the resulting class becomes empty it is removed.
-u deny:user,user -u allow:all -u deny:none
Sets user-level access control on a printer. The latter two forms turn user-level access control off.
Sets the device-uri attribute of the printer queue. If device-uri is a filename it is automatically converted to the form
Provides a textual description of the printer.
Enables the printer and accepts jobs; this is the same as running the accept(8) and enable(8) programs on the printer.
Provides a textual location of the printer.
Specifies a PostScript Printer Description file to use with the printer. If specified, this option overrides the -i option (interface
Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE and TAB. Also, printer and
class names are not case-sensitive. Finally, the CUPS version of lpadmin may ask the user for an access password depending on the printing
system configuration. This differs from the System V version which requires the root user to execute this command.
The CUPS version of lpadmin does not support all of the System V or Solaris printing system configuration options.
SEE ALSO accept(8), cancel(1), disable(8), enable(8), lp(1), lpstat(1), reject(8), CUPS Software Administrators Manual, http://localhost:631/docu-
Copyright 1993-2002 by Easy Software Products, All Rights Reserved.
21 October 2002 Common UNIX Printing System lpadmin(8)