ippeveprinter(1)

๐Ÿ“ฆ
version 2.4.19 ยท 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

๐Ÿ’– ippeveprinter(1) ๐Ÿ’–

okay so bestie, this is the OpenPrinting manual page for ippeveprinter(1) and honestly? it's giving "tiny IPP server that could". let's get into it ๐Ÿซถ


โœจ NAME โœจ

ippeveprinter โ€” an ipp everywhere printer application for cups. yes, that's the whole name. short, iconic, no notes. ๐Ÿ‘‘


๐ŸŒธ SYNOPSIS ๐ŸŒธ

ippeveprinter [ --help ] [ --no-web-forms ] [ --pam-service service ] [
--version ] [ -2 ] [ -A ] [ -D device-uri ] [ -F output-type/subtype ] [
-K keypath ] [ -M manufacturer ] [ -P filename.ppd ] [ -V ipp-version ]
[ -a filename.conf ] [ -c command ] [ -d spool-directory ] [ -f
type/subtype[,...]  ] [ -i iconfile.png ] [ -k ] [ -l location ] [ -m
model ] [ -n hostname ] [ -p port ] [ -r subtype[,subtype] ] [ -s
speed[,color-speed] ] [ -v[vvv] ] service-name

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so ippeveprinter is a simple Internet Printing Protocol (IPP) server that conforms to the IPP Everywhere (PWG 5100.14) specification. she's not doing the most, she's doing exactly enough. ๐Ÿ’…

you can use her to test client software, or as a very basic print server that runs a command for every job that gets printed. like, every single job. no skips. ๐ŸŽ€


โญ OPTIONS โญ

here's every flag ippeveprinter recognizes. read them all, bestie, they're all important:

  • --help โ€” show program usage. that's it. that's the whole thing. ๐Ÿ™ˆ
  • --no-web-forms โ€” disables the web interface forms that are normally used to update the media and supply levels. no more form girlies. ๐Ÿ’€
  • --pam-service service โ€” set the PAM service name. the default service is "cups".
  • --version โ€” show the CUPS version. slay.
  • -2 โ€” report support for two-sided (duplex) printing. double-sided queen energy. ๐Ÿ‘‘
  • -A โ€” enable authentication for the created printer. ippeveprinter uses PAM to authenticate HTTP Basic credentials.
  • -D device-uri โ€” set the device URI for print output. that URI can be a filename, a directory, or a network socket URI shaped like "socket://ADDRESS[:PORT]" (and the default port number there is 9100). when you specify a directory, ippeveprinter creates an output file using the job ID and name. cute, organized, on brand. ๐ŸŽ€
  • -F output-type/subtype[,...] โ€” specifies the output MIME media type. the default is "application/postscript" when the -P option is specified.
  • -M manufacturer โ€” set the manufacturer of the printer. the default is "Example".
  • -P filename.ppd โ€” load printer attributes from the specified PPD file. this option is typically used together with the ippeveps(7) printer command (-c ippeveps). dynamic duo fr fr.
  • -V 1.1
  • -V 2.0 โ€” specifies the maximum IPP version to report. 2.0 is the default. ๐Ÿ’…
  • -c command โ€” run the specified command for each document that is printed. if "command" is not an absolute path (/path/to/command), ippeveprinter goes looking for the command in the "command" subdirectory of the CUPS binary directory โ€” typically /usr/lib/cups/command or /usr/libexec/cups/command. you can use the cups-config(1) command to discover the correct binary directory (cups-config --serverbin). also, the CUPS_SERVERBIN environment variable can override the default location of this directory โ€” see the cups(1) man page for more details.
  • -d spool-directory โ€” specifies the directory that will hold the print files. the default is a directory under the user's current temporary directory.
  • -f type/subtype[,...] โ€” specifies a list of MIME media types that the server will accept. the default depends on the type of printer created.
  • -i iconfile.png โ€” specifies the printer icon file for the server. the file must be a PNG format image. the default is an internally-provided PNG image. โœจ
  • -k โ€” keeps the print documents in the spool directory rather than deleting them. hoarder mode, but make it intentional. ๐Ÿ“
  • -l location โ€” specifies the human-readable location string that is reported by the server. the default is the empty string.
  • -m model โ€” specifies the model name of the printer. the default is "Printer".
  • -n hostname โ€” specifies the hostname that is reported by the server. the default is the name returned by the hostname(1) command.
  • -p port โ€” specifies the port number to listen on. the default is a user-specific number from 8000 to 8999.
  • -r off โ€” turns off DNS-SD service advertisements entirely. she's offline, respectfully. ๐Ÿ’€
  • -r subtype[,subtype] โ€” specifies the DNS-SD subtype(s) to advertise. separate multiple subtypes with a comma. the default is "_print".
  • -s speed[,color-speed] โ€” specifies the printer speed in pages per minute. if two numbers are specified and the second number is greater than zero, the server will report support for color printing. the default is "10,0". ๐ŸŒˆ
  • -v[vvv] โ€” be (very) verbose when logging activity to standard error. the more v's, the more she talks. ๐Ÿ—ฃ๏ธ

๐ŸŽ€ EXIT STATUS ๐ŸŽ€

ippeveprinter returns 1 if she's unable to process the command-line arguments or register the IPP service. otherwise, she just... keeps running. continuously. until she gets terminated. main character who never leaves the party. ๐Ÿ˜ญ


๐Ÿ’œ CONFORMING TO ๐Ÿ’œ

the ippeveprinter program is unique to CUPS and conforms to the IPP Everywhere (PWG 5100.14) specification. she's certified, she's spec-compliant, she's that girl. ๐Ÿซถ


๐Ÿงš ENVIRONMENT ๐Ÿงš

ippeveprinter adds environment variables starting with "IPP_" for all IPP Job attributes in the print request. for example, when executing a command for an IPP Job containing the "media" Job Template attribute, the "IPP_MEDIA" environment variable will be set to the value of that attribute. no cap.

in addition, all IPP "xxx-default" and "pwg-xxx" Printer Description attributes are added to the environment. for example, the "IPP_MEDIA_DEFAULT" environment variable will be set to the default value for the "media" Job Template attribute.

enumerated values get converted to their keyword equivalents. for example, a "print-quality" Job Template attribute with a enum value of 3 will become the "IPP_PRINT_QUALITY" environment variable with a value of "draft". this string conversion only happens for standard Job Template attributes โ€” currently "finishings", "orientation-requested", and "print-quality". (yes, that's exactly three, and those are exactly them. ๐Ÿ’…)

finally, the "CONTENT_TYPE" environment variable contains the MIME media type of the document being printed, the "DEVICE_URI" environment variable contains the device URI as specified with the -D option, the "OUTPUT_FORMAT" environment variable contains the output MIME media type, and the "PPD" environment variable contains the PPD filename as specified with the -P option.


๐Ÿ”ฅ COMMAND OUTPUT ๐Ÿ”ฅ

unless they communicate directly with a printer, print commands send printer-ready data to the standard output. that's the whole assignment.

print commands can also send messages back to ippeveprinter on the standard error, using one of these prefixes:

  • ATTR: attribute=value[ attribute=value] โ€” sets the named attribute(s) to the given values. right now only the "job-impressions" and "job-impressions-completed" Job Status attributes and the "marker-xxx", "printer-alert", "printer-alert-description", "printer-supply", and "printer-supply-description" Printer Status attributes can be set.
  • DEBUG: Debugging message โ€” logs a debugging message if at least two -v's have been specified.
  • ERROR: Error message โ€” logs an error message and copies the message to the "job-state-message" attribute. ๐Ÿ˜ญ
  • INFO: Informational message โ€” logs an informational/progress message if -v has been specified and copies the message to the "job-state-message" attribute unless an error has been reported.
  • STATE: keyword[,keyword,...] โ€” sets the printer's "printer-state-reasons" attribute to the listed keywords.
  • STATE: -keyword[,keyword,...] โ€” removes the listed keywords from the printer's "printer-state-reasons" attribute.
  • STATE: +keyword[,keyword,...] โ€” adds the listed keywords to the printer's "printer-state-reasons" attribute.
the + and - are doing the absolute most here and honestly? respect. ๐Ÿ’…

๐Ÿ“ EXAMPLES ๐Ÿ“

run ippeveprinter with a service name of My Cool Printer:

ippeveprinter "My Cool Printer"

run the file(1) command whenever a job is sent to the server:

ippeveprinter -c /usr/bin/file "My Cool Printer"

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

ippevepcl(7), ippeveps(7), PWG Internet Printing Protocol Workgroup (http://www.pwg.org/ipp)


Copyright ยฉ 2020-2024 by OpenPrinting.


and that's the whole page bestie โ€” this one's from CUPS, dated 2021-02-28, and it goes out to ippeveprinter(1) herself. go run her, she's literally waiting. ๐Ÿฆ‹โœจ๐Ÿ’…

๐Ÿ“ฆ where this page comes from