File airprint-generate.py.8 of Package cups-airprint
.TH airprint-generate.py 8 "January 2016" "cups-airprint" "System Administration"
airprint-generate.py - create Avahi service files for shared CUPS printers
This script will connect to a CUPS server and, for each printer configured and
marked as shared, it will generate a .service file for Avahi that is compatible
with Apple's AirPrint announcements. Any printer that can be configured to work
with CUPS can be used. Printers should not be configured in CUPS as raw, unless
the printer can natively print PDF; that is, CUPS needs to already be
configured with a PDF filter.
.BR \-h ", " \-\-help
show this help message and exit
.BR \-H " " \fIHOSTNAME\fR ", " \-\-host =\fIHOSTNAME\fR
Hostname of CUPS server
.BR \-P " " \fIPORT\fR ", " \-\-port =\fIPORT\fR
Port number of CUPS server
.BR \-u " " \fIUSER\fR, \-\-user =\fIUSER\fR
Username to authenticate with against CUPS
.BR \-d " " \fIDIRECTORY\fR ", " \-\-directory =\fIDIRECTORY\fR
Directory in which service files are created
.BR \-v ", " \-\-verbose
Print debugging information to STDERR
.BR \-p " " \fIPREFIX\fR, \-\-prefix =\fIPREFIX\fR
Prefix all files with this string
DNSSD has a limit of 255 characters for a given txt-record; because of this,
the list of accepted PDLs will be truncated to fit. If you're curious to see
which ones are trimmed out of the list, run the script with the verbose flag.
is installed, .service files will be generated in a human readble format (I
wasn't able to get minidom's version to work acceptably).
Timothy J. Fontaine <email@example.com> wrote the