]> git.ipfire.org Git - thirdparty/cups.git/blame - README.md
Prep for 2.2.5 release.
[thirdparty/cups.git] / README.md
CommitLineData
79424d8b 1README - CUPS v2.2.5 - 2017-10-12
2a20b512
MS
2=================================
3
16389be3 4Looking for compile instructions? Read the file `INSTALL.md` instead...
2a20b512
MS
5
6
7INTRODUCTION
8------------
9
10
11CUPS is a standards-based, open source printing system developed by Apple Inc.
12for macOS® and other UNIX®-like operating systems. CUPS uses the Internet
13Printing Protocol ("IPP") and provides System V and Berkeley command-line
14interfaces, a web interface, and a C API to manage printers and print jobs. It
15supports printing to both local (parallel, serial, USB) and networked printers,
16and printers can be shared from one computer to another, even over the Internet!
17
18Internally, CUPS uses PostScript Printer Description ("PPD") files to describe
19printer capabilities and features and a wide variety of generic and device-
20specific programs to convert and print many types of files. Sample drivers are
21included with CUPS to support many Dymo, EPSON, HP, Intellitech, OKIDATA, and
22Zebra printers. Many more drivers are available online and (in some cases) on
23the driver CD-ROM that came with your printer.
24
25CUPS is licensed under the GNU General Public License and GNU Library General
26Public License versions 2. See the file "LICENSE.txt" for more information.
27
28
29READING THE DOCUMENTATION
30-------------------------
31
32Once you have installed the software you can access the documentation (and a
33bunch of other stuff) online at:
34
35 http://localhost:631/
36
37If you're having trouble getting that far, the documentation is located under
16389be3 38the `doc/help` directory.
2a20b512
MS
39
40Please read the documentation before asking questions.
41
42
43GETTING SUPPORT AND OTHER RESOURCES
44-----------------------------------
45
16389be3 46If you have problems, **read the documentation first!** We also provide two mailing
2a20b512
MS
47lists which are available at:
48
49 https://lists.cups.org/mailman/listinfo
50
51See the CUPS web site at <https://www.cups.org/> for other resources.
52
53
54SETTING UP PRINTER QUEUES USING YOUR WEB BROWSER
55------------------------------------------------
56
57CUPS includes a web-based administration tool that allows you to manage
58printers, classes, and jobs on your server. Open the following URL in your
59browser to access the printer administration tools:
60
61 http://localhost:631/admin/
62
63*Do not* use the hostname for your machine - it will not work with the default
64CUPS configuration. To enable administration access on other addresses, check
16389be3 65the `Allow Remote Administration` box and click on the `Change Settings button.
2a20b512
MS
66
67You will be asked for the administration password (root or any other user in the
16389be3 68`sys/system/root/admin/lpadmin` group on your system) when performing any
2a20b512
MS
69administrative function.
70
71
72SETTING UP PRINTER QUEUES FROM THE COMMAND-LINE
73-----------------------------------------------
74
75CUPS works best with PPD (PostScript Printer Description) files. In a pinch you
76can also use System V style printer interface scripts.
77
78CUPS includes several sample PPD files you can use:
79
80 Driver PPD Name
81 ----------------------------- ------------------------------
82 Dymo Label Printers drv:///sample.drv/dymo.ppd
83 Intellitech Intellibar drv:///sample.drv/intelbar.ppd
84 EPSON 9-pin Series drv:///sample.drv/epson9.ppd
85 EPSON 24-pin Series drv:///sample.drv/epson24.ppd
86 Generic PCL Laser Printer drv:///sample.drv/generpcl.ppd
87 Generic PostScript Printer drv:///sample.drv/generic.ppd
88 HP DeskJet Series drv:///sample.drv/deskjet.ppd
89 HP LaserJet Series drv:///sample.drv/laserjet.ppd
90 OKIDATA 9-Pin Series drv:///sample.drv/okidata9.ppd
91 OKIDATA 24-Pin Series drv:///sample.drv/okidat24.ppd
92 Zebra CPCL Label Printer drv:///sample.drv/zebracpl.ppd
93 Zebra EPL1 Label Printer drv:///sample.drv/zebraep1.ppd
94 Zebra EPL2 Label Printer drv:///sample.drv/zebraep2.ppd
95 Zebra ZPL Label Printer drv:///sample.drv/zebra.ppd
96
16389be3 97Run the `lpinfo -m` command to list the available drivers:
2a20b512
MS
98
99 lpinfo -m
100
16389be3 101Run the `lpinfo -v` command to list the available printers:
2a20b512
MS
102
103 lpinfo -v
104
16389be3 105Then use the correct URI to add the printer using the `lpadmin` command:
2a20b512
MS
106
107 lpadmin -p printername -E -v device-uri -m ppd-name
108
16389be3 109Network printers typically use `socket` or `lpd` URIs:
2a20b512
MS
110
111 lpadmin -p printername -E -v socket://11.22.33.44 -m ppd-name
112 lpadmin -p printername -E -v lpd://11.22.33.44/ -m ppd-name
113
114The sample drivers provide basic printing capabilities, but generally do not
115exercise the full potential of the printers or CUPS.
116
117CUPS also supports IPP Everywhere printers using the "everywhere" model, for
118example:
119
120 lpadmin -p printername -E -v ipp://11.22.33.44/ipp/print -m everywhere
121
122
123PRINTING FILES
124--------------
125
16389be3 126CUPS provides both the System V `lp` and Berkeley `lpr` commands for printing:
2a20b512
MS
127
128 lp filename
129 lpr filename
130
16389be3 131Both the `lp` and `lpr` commands support printing options for the driver:
2a20b512
MS
132
133 lp -o media=A4 -o resolution=600dpi filename
134 lpr -o media=A4 -o resolution=600dpi filename
135
136CUPS recognizes many types of images files as well as PDF, PostScript, and text
137files, so you can print those files directly rather than through an application.
138
139If you have an application that generates output specifically for your printer
16389be3 140then you need to use the `-oraw` or `-l` options:
2a20b512
MS
141
142 lp -o raw filename
143 lpr -l filename
144
145This will prevent the filters from misinterpreting your print file.
146
147
148LEGAL STUFF
149-----------
150
151CUPS is copyright © 2007-2017 by Apple Inc. CUPS and the CUPS logo are
152trademarks of Apple Inc.
153
154The MD5 Digest code is Copyright 1999 Aladdin Enterprises.
155
156CUPS is provided under the terms of version 2 of the GNU General Public License
157and GNU Library General Public License. This program is distributed in the hope
158that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
159warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
160"doc/help/license.html" or "LICENSE.txt" files for more information.