1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
2 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
4 | %general-entities;
|
---|
5 |
|
---|
6 | <!ENTITY cups-download-http "http://ftp.easysw.com/pub/cups/&cups-version;/cups-&cups-version;-source.tar.bz2">
|
---|
7 | <!ENTITY cups-download-ftp "ftp://ftp.easysw.com/pub/cups/&cups-version;/cups-&cups-version;-source.tar.bz2">
|
---|
8 | <!ENTITY cups-md5sum "4ce09b1dce09b6b9398af0daae9adf63">
|
---|
9 | <!ENTITY cups-size "8.7 MB">
|
---|
10 | <!ENTITY cups-buildsize "46 MB">
|
---|
11 | <!ENTITY cups-time "0.54 SBU (additional 69 SBU to run full test suite)">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="cups" xreflabel="CUPS-&cups-version;">
|
---|
15 | <sect1info>
|
---|
16 | <othername>$LastChangedBy$</othername>
|
---|
17 | <date>$Date$</date>
|
---|
18 | </sect1info>
|
---|
19 | <?dbhtml filename="cups.html"?>
|
---|
20 | <title>CUPS-&cups-version;</title>
|
---|
21 |
|
---|
22 | <sect2>
|
---|
23 | <title>Introduction to
|
---|
24 | <application><acronym>CUPS</acronym></application></title>
|
---|
25 |
|
---|
26 | <para>The Common Unix Printing System (<acronym>CUPS</acronym>) is a print
|
---|
27 | spooler and associated utilities. It is based on the "Internet Printing
|
---|
28 | Protocol" and provides printing services to most PostScript and raster
|
---|
29 | printers.</para>
|
---|
30 |
|
---|
31 | <sect3><title>Package information</title>
|
---|
32 | <itemizedlist spacing='compact'>
|
---|
33 | <listitem><para>Download (HTTP):
|
---|
34 | <ulink url="&cups-download-http;"/></para></listitem>
|
---|
35 | <listitem><para>Download (FTP):
|
---|
36 | <ulink url="&cups-download-ftp;"/></para></listitem>
|
---|
37 | <listitem><para>Download MD5 sum: &cups-md5sum;</para></listitem>
|
---|
38 | <listitem><para>Download size: &cups-size;</para></listitem>
|
---|
39 | <listitem><para>Estimated disk space required:
|
---|
40 | &cups-buildsize;</para></listitem>
|
---|
41 | <listitem><para>Estimated build time:
|
---|
42 | &cups-time;</para></listitem></itemizedlist>
|
---|
43 | </sect3>
|
---|
44 |
|
---|
45 | <sect3><title><application><acronym>CUPS</acronym></application>
|
---|
46 | dependencies</title>
|
---|
47 | <sect4><title>Recommended</title>
|
---|
48 | <para><xref linkend="libjpeg"/>,
|
---|
49 | <xref linkend="libpng"/>,
|
---|
50 | and <xref linkend="libtiff"/></para>
|
---|
51 | </sect4>
|
---|
52 |
|
---|
53 | <sect4><title>Optional</title>
|
---|
54 | <para><xref linkend="openssl"/> or
|
---|
55 | <ulink url="http://www.gnu.org/software/gnutls/">GnuTLS</ulink> (which needs
|
---|
56 | <ulink url="ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error/">
|
---|
57 | libgpg-error</ulink>,
|
---|
58 | <ulink url="ftp://ftp.gnupg.org/gcrypt/libgcrypt/">libgcrypt</ulink> and
|
---|
59 | <ulink url="ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/opencdk/">opencdk</ulink>,
|
---|
60 | in that order),
|
---|
61 | <xref linkend="Linux_PAM"/>,
|
---|
62 | <xref linkend="php"/>,
|
---|
63 | <xref linkend="python"/>,
|
---|
64 | <xref linkend="j2sdk"/>,
|
---|
65 | <ulink url="http://www.openslp.org/">OpenSLP</ulink>,
|
---|
66 | <ulink url="http://packages.debian.org/unstable/source/libpaper">
|
---|
67 | libpaper</ulink> and
|
---|
68 | <ulink url="http://valgrind.kde.org/">Valgrind</ulink> (optionally used if
|
---|
69 | running the test suites)</para>
|
---|
70 | </sect4>
|
---|
71 | </sect3>
|
---|
72 |
|
---|
73 | </sect2>
|
---|
74 |
|
---|
75 | <sect2>
|
---|
76 | <title>Installation of
|
---|
77 | <application><acronym>CUPS</acronym></application></title>
|
---|
78 |
|
---|
79 | <para>Create an 'lp' user, as
|
---|
80 | <application><acronym>CUPS</acronym></application> will install the
|
---|
81 | <command>lppasswd</command> command <acronym>SUID</acronym> to this user. Use
|
---|
82 | the following command as the root user:</para>
|
---|
83 |
|
---|
84 | <screen><userinput role='root'><command>useradd -c "Print Service User" -d /dev/null -g lp -s /bin/false lp</command></userinput></screen>
|
---|
85 |
|
---|
86 | <para>If you utilize <application>Linux-<acronym>PAM</acronym></application>,
|
---|
87 | you need to modify some files so
|
---|
88 | <application><acronym>CUPS</acronym></application> can find needed headers.
|
---|
89 | Make the appropriate modifications using the following command:</para>
|
---|
90 |
|
---|
91 | <screen><userinput><command>sed -i -e "s@pam/pam@security/pam@g" \
|
---|
92 | {config-scripts/cups-pam.m4,scheduler/auth.c,configure}</command></userinput></screen>
|
---|
93 |
|
---|
94 | <para>Install <application><acronym>CUPS</acronym></application> by
|
---|
95 | running the following commands:</para>
|
---|
96 |
|
---|
97 | <screen><userinput><command>./configure &&
|
---|
98 | make &&
|
---|
99 | make install</command></userinput></screen>
|
---|
100 |
|
---|
101 | </sect2>
|
---|
102 |
|
---|
103 | <sect2>
|
---|
104 | <title>Command explanations</title>
|
---|
105 |
|
---|
106 | <para>The basic default behavior of the installation is appropriate for
|
---|
107 | <acronym>LFS</acronym> systems. <application><acronym>CUPS</acronym>
|
---|
108 | </application> files are placed in
|
---|
109 | <filename class="directory">/usr/bin</filename>,
|
---|
110 | <filename class="directory">/usr/sbin</filename>,
|
---|
111 | <filename class="directory">/var</filename> and
|
---|
112 | <filename class="directory">/etc/cups</filename>.</para>
|
---|
113 |
|
---|
114 | </sect2>
|
---|
115 |
|
---|
116 | <sect2>
|
---|
117 | <title>Configuring <application><acronym>CUPS</acronym></application></title>
|
---|
118 |
|
---|
119 | <para>Configuration of <application><acronym>CUPS</acronym></application> is
|
---|
120 | dependent on the type of printer and can be complex. Generally, PostScript
|
---|
121 | printers are easier. For detailed instructions on configuration and use of
|
---|
122 | <application><acronym>CUPS</acronym></application>, see
|
---|
123 | <ulink url="http://www.cups.org/documentation.php"/>. The Software
|
---|
124 | Administrators Manual and Software Users Manual are particularly useful.</para>
|
---|
125 |
|
---|
126 | <para>For non-PostScript printers to print with
|
---|
127 | <application><acronym>CUPS</acronym></application>, you need to install
|
---|
128 | <xref linkend="espgs"/> to convert PostScript to raster images
|
---|
129 | and a driver (e.g., from <xref linkend="gimp-print"/>) to convert
|
---|
130 | the resulting raster images to a form that the printer understands.
|
---|
131 | <ulink url="http://www.linuxprinting.org/foomatic.html">Foomatic</ulink>
|
---|
132 | drivers use Ghostscript to convert PostScript to a printable form directly, but
|
---|
133 | this is considered to be a hack by
|
---|
134 | <application><acronym>CUPS</acronym></application> developers.</para>
|
---|
135 |
|
---|
136 | <para>During the install, <application><acronym>CUPS</acronym></application>
|
---|
137 | created the startup file <command>/etc/rc.d/init.d/cups</command>. The file
|
---|
138 | works, but you may want to change it to a more conventional
|
---|
139 | <acronym>LFS</acronym> startup file by installing the script included in the
|
---|
140 | <xref linkend="intro-important-bootscripts"/> package:</para>
|
---|
141 |
|
---|
142 | <screen><userinput><command>make install-cups</command></userinput></screen>
|
---|
143 |
|
---|
144 | </sect2>
|
---|
145 |
|
---|
146 | <sect2>
|
---|
147 | <title>Contents</title>
|
---|
148 |
|
---|
149 | <para><application><acronym>CUPS</acronym></application> provides
|
---|
150 | <command>accept</command>,
|
---|
151 | <command>cupsaddsmb</command>,
|
---|
152 | <command>cupsd</command>,
|
---|
153 | <command>cupstestppd</command>,
|
---|
154 | <command>lpadmin</command>,
|
---|
155 | <command>lpc</command>,
|
---|
156 | <command>lpinfo</command>,
|
---|
157 | <command>lpmove</command>,
|
---|
158 | <command>reject</command>,
|
---|
159 | <command>cancel</command>,
|
---|
160 | <command>cups-config</command>,
|
---|
161 | <command>disable</command>,
|
---|
162 | <command>enable</command>,
|
---|
163 | <command>lp</command>,
|
---|
164 | <command>lpoptions</command>,
|
---|
165 | <command>lppasswd</command>,
|
---|
166 | <command>lpq</command>,
|
---|
167 | <command>lpr</command>,
|
---|
168 | <command>lprm</command>,
|
---|
169 | <command>lpstat</command>,
|
---|
170 | <filename class="libraryfile">libcups</filename>,
|
---|
171 | <filename class="libraryfile">libcupsimage</filename> and various
|
---|
172 | scripts and filters.</para>
|
---|
173 |
|
---|
174 | <sect3><title>lpc</title>
|
---|
175 | <para><command>lpc</command> provides limited control over printer
|
---|
176 | and class queues provided by <application><acronym>CUPS</acronym>
|
---|
177 | </application>.
|
---|
178 | </para></sect3>
|
---|
179 |
|
---|
180 | <sect3><title>cupsd</title>
|
---|
181 | <para><command>cupsd</command> is the scheduler for the Common Unix Printing
|
---|
182 | System.
|
---|
183 | </para></sect3>
|
---|
184 |
|
---|
185 | <sect3><title>accept</title>
|
---|
186 | <para><command>accept</command> instructs the printing system to accept print
|
---|
187 | jobs to the specified destinations.
|
---|
188 | </para></sect3>
|
---|
189 |
|
---|
190 | <sect3><title>reject</title>
|
---|
191 | <para><command>reject</command> instructs the printing system to
|
---|
192 | reject print jobs to the specified destinations.
|
---|
193 | </para></sect3>
|
---|
194 |
|
---|
195 | <sect3><title>cupsaddsmb</title>
|
---|
196 | <para><command>cupsaddsmb</command> exports printers to the SAMBA software for
|
---|
197 | use with Windows clients.
|
---|
198 | </para></sect3>
|
---|
199 |
|
---|
200 | <sect3><title>lpadmin</title>
|
---|
201 | <para><command>lpadmin</command> configures printer and class queues provided
|
---|
202 | by <acronym>CUPS</acronym>.
|
---|
203 | </para></sect3>
|
---|
204 |
|
---|
205 | <sect3><title>lpinfo</title>
|
---|
206 | <para><command>lpinfo</command> lists the available devices or drivers known to
|
---|
207 | the <acronym>CUPS</acronym> server.
|
---|
208 | </para></sect3>
|
---|
209 |
|
---|
210 | <sect3><title>lpmove</title>
|
---|
211 | <para><command>lpmove</command> moves the specified job to a new destination.
|
---|
212 | </para></sect3>
|
---|
213 |
|
---|
214 | <sect3><title>cupstestppd</title>
|
---|
215 | <para><command>cupstestppd</command> tests the conformance of
|
---|
216 | <filename>PPD</filename> files.
|
---|
217 | </para></sect3>
|
---|
218 |
|
---|
219 | <sect3><title>lpq</title>
|
---|
220 | <para><command>lpq</command> shows the current print queue status on the named
|
---|
221 | printer.
|
---|
222 | </para></sect3>
|
---|
223 |
|
---|
224 | <sect3><title>lpr</title>
|
---|
225 | <para><command>lpr</command> submits files for printing.
|
---|
226 | </para></sect3>
|
---|
227 |
|
---|
228 | <sect3><title>lprm</title>
|
---|
229 | <para><command>lprm</command> cancels print jobs that have been queued for
|
---|
230 | printing.
|
---|
231 | </para></sect3>
|
---|
232 |
|
---|
233 | <sect3><title>cancel</title>
|
---|
234 | <para><command>cancel</command> cancels existing print jobs.
|
---|
235 | </para></sect3>
|
---|
236 |
|
---|
237 | <sect3><title>disable</title>
|
---|
238 | <para><command>disable</command> stops the named printers or classes.
|
---|
239 | </para></sect3>
|
---|
240 |
|
---|
241 | <sect3><title>enable</title>
|
---|
242 | <para><command>enable</command> starts the named printers or classes.
|
---|
243 | </para></sect3>
|
---|
244 |
|
---|
245 | <sect3><title>lp</title>
|
---|
246 | <para><command>lp</command> submits files for printing or alters a pending job.
|
---|
247 | </para></sect3>
|
---|
248 |
|
---|
249 | <sect3><title>lpoptions</title>
|
---|
250 | <para><command>lpoptions</command> displays or sets printer options and
|
---|
251 | defaults.
|
---|
252 | </para></sect3>
|
---|
253 |
|
---|
254 | <sect3><title>lpstat</title>
|
---|
255 | <para><command>lpstat</command> displays status information about the
|
---|
256 | current classes, jobs, and printers.</para></sect3>
|
---|
257 |
|
---|
258 | <sect3><title>lppasswd</title>
|
---|
259 | <para><command>lppasswd</command> adds, changes or deletes passwords in
|
---|
260 | the <application><acronym>CUPS</acronym></application> digest password file
|
---|
261 | <filename>passwd.md5</filename>.
|
---|
262 | </para></sect3>
|
---|
263 |
|
---|
264 | <sect3><title>cups-config</title>
|
---|
265 | <para><command>cups-config</command> is the <application><acronym>CUPS
|
---|
266 | </acronym></application> program configuration utility.
|
---|
267 | </para></sect3>
|
---|
268 |
|
---|
269 | </sect2>
|
---|
270 |
|
---|
271 | </sect1>
|
---|