source: pst/printing/cups.xml@ 977061b0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 977061b0 was 977061b0, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #8

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5836 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 15.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY cups-download-http "http://ftp.easysw.com/pub/cups/&cups-version;/cups-&cups-version;-source.tar.bz2">
8 <!ENTITY cups-download-ftp "ftp://ftp.easysw.com/pub/cups/&cups-version;/cups-&cups-version;-source.tar.bz2">
9 <!ENTITY cups-md5sum "4ce09b1dce09b6b9398af0daae9adf63">
10 <!ENTITY cups-size "8.7 MB">
11 <!ENTITY cups-buildsize "48 MB">
12 <!ENTITY cups-time "0.5 SBU">
13]>
14
15<sect1 id="cups" xreflabel="CUPS-&cups-version;">
16 <?dbhtml filename="cups.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 <keywordset>
22 <keyword role="package">cups-&cups-version;-source.tar</keyword>
23 <keyword role="ftpdir">cups</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>CUPS-&cups-version;</title>
28
29 <indexterm zone="cups">
30 <primary sortas="a-CUPS">CUPS</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to CUPS</title>
35
36 <para>The Common Unix Printing System (CUPS) is a print spooler and
37 associated utilities. It is based on the "Internet Printing
38 Protocol" and provides printing services to most PostScript and raster
39 printers.</para>
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>Download (HTTP): <ulink url="&cups-download-http;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download (FTP): <ulink url="&cups-download-ftp;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download MD5 sum: &cups-md5sum;</para>
51 </listitem>
52 <listitem>
53 <para>Download size: &cups-size;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated disk space required: &cups-buildsize;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated build time: &cups-time;</para>
60 </listitem>
61 </itemizedlist>
62
63 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
64 <itemizedlist spacing="compact">
65 <listitem>
66 <para>Recommended patch: <ulink
67 url="&patch-root;/cups-&cups-version;-testsuite_fix-1.patch"/></para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">CUPS Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Recommended</bridgehead>
74 <para role="recommended"><xref linkend="libjpeg"/>,
75 <xref linkend="libpng"/>,
76 and <xref linkend="libtiff"/></para>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional"><xref linkend="openssl"/> or
80 <ulink url="http://www.gnu.org/software/gnutls/">GnuTLS</ulink> (which needs
81 <ulink url="ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error/">
82 libgpg-error</ulink>,
83 <ulink url="ftp://ftp.gnupg.org/gcrypt/libgcrypt/">libgcrypt</ulink> and
84 <ulink url="ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/opencdk/">opencdk</ulink>,
85 in that order),
86 <xref linkend="linux-pam"/>,
87 <xref linkend="php"/>,
88 <xref linkend="python"/>,
89 <xref linkend="jdk"/>,
90 <ulink url="http://www.openslp.org/">OpenSLP</ulink>,
91 <ulink url="http://packages.debian.org/unstable/source/libpaper">
92 libpaper</ulink> and
93 <ulink url="http://valgrind.kde.org/">Valgrind</ulink> (optionally used if
94 running the test suites)</para>
95
96 <para condition="html" role="usernotes">User Notes:
97 <ulink url="&blfs-wiki;/cups"/></para>
98
99 </sect2>
100
101 <sect2 role="installation">
102 <title>Installation of CUPS</title>
103
104 <para>Create an <systemitem class="username">lp</systemitem> user, as
105 <application>CUPS</application> will install the
106 <command>lppasswd</command> command SUID to this user. Use the following
107 command as the <systemitem class="username">root</systemitem> user:</para>
108
109<screen role="root"><userinput>useradd -c "Print Service User" -d /dev/null -g lp -s /bin/false -u 9 lp</userinput></screen>
110
111 <para>If you utilize <application>Linux-PAM</application>, you need to
112 modify some files so <application>CUPS</application> can find needed headers.
113 Make the appropriate modifications using the following command:</para>
114
115<screen><userinput>sed -i -e "s@pam/pam@security/pam@g" \
116{config-scripts/cups-pam.m4,scheduler/auth.c,configure}</userinput></screen>
117
118 <para>If you plan on running the test suite, you should apply the patch
119 listed above to fix several issues in the test suite script. Note that if
120 you have the non-free <command>htmldoc</command> program installed, the
121 patch disables its use.</para>
122
123<screen><userinput>patch -Np1 -i ../cups-&cups-version;-testsuite_fix-1.patch</userinput></screen>
124
125 <para>Install <application>CUPS</application> by running the
126 following commands:</para>
127
128<screen><userinput>./configure &amp;&amp;
129make</userinput></screen>
130
131 <para>To test the results, issue: <command>make check</command>. Note that
132 the <quote>torture load testing</quote> test uses more resources than those
133 displayed in the prompt.</para>
134
135 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
136
137<screen role="root"><userinput>make install</userinput></screen>
138
139 </sect2>
140
141 <sect2 role="commands">
142 <title>Command Explanations</title>
143
144 <para>The basic default behavior of the installation is appropriate for
145 LFS systems. <application>CUPS</application> files are placed in
146 <filename class="directory">/usr/bin</filename>,
147 <filename class="directory">/usr/sbin</filename>,
148 <filename class="directory">/var</filename> and
149 <filename class="directory">/etc/cups</filename>.</para>
150
151 </sect2>
152
153 <sect2 role="configuration">
154 <title>Configuring CUPS</title>
155
156 <para>Configuration of <application>CUPS</application> is dependent on
157 the type of printer and can be complex. Generally, PostScript printers
158 are easier. For detailed instructions on configuration and use of
159 <application>CUPS</application>, see <ulink
160 url="http://www.cups.org/documentation.php"/>. The Software Administrators
161 Manual and Software Users Manual are particularly useful.</para>
162
163 <para>For non-PostScript printers to print with
164 <application>CUPS</application>, you need to install
165 <xref linkend="espgs"/> to convert PostScript to raster images
166 and a driver (e.g., from <xref linkend="gimp-print"/>) to convert
167 the resulting raster images to a form that the printer understands.
168 <ulink url="http://www.linuxprinting.org/foomatic.html">Foomatic</ulink>
169 drivers use Ghostscript to convert PostScript to a printable form directly,
170 but this is considered to be a hack by
171 <application>CUPS</application> developers.</para>
172
173 <sect3 id="cups-init">
174 <title>Boot Script</title>
175
176 <para>During the installation, <application>CUPS</application> added
177 startup files in <filename class="directory">/etc/rc.d</filename>.
178 These scripts will work in most cases, but will fail if you provide
179 printers to <application>Samba</application> clients. Additionally,
180 they are not consistent with standard LFS style scripts. Replace the
181 installed scripts with the scripts and symlinks included in the
182 <xref linkend="bootscripts"/> package:</para>
183
184 <indexterm zone="cups cups-init">
185 <primary sortas="f-cups">cups</primary>
186 </indexterm>
187
188<screen role="root"><userinput>make install-cups</userinput></screen>
189
190 </sect3>
191
192 </sect2>
193
194 <sect2 role="content">
195 <title>Contents</title>
196
197 <segmentedlist>
198 <segtitle>Installed Programs</segtitle>
199 <segtitle>Installed Libraries</segtitle>
200 <segtitle>Installed Directories</segtitle>
201
202 <seglistitem>
203 <seg>accept, cancel, cups-config, cupsaddsmb, cupsd, cupstestppd, disable,
204 enable, lp, lpadmin, lpc, lpinfo, lpmove, lpoptions, lppasswd, lpq, lpr,
205 lprm, lpstat, and reject</seg>
206 <seg>libcups.{so,a}, libcupsimage.{so,a}, and various filters and backend
207 drivers</seg>
208 <seg>/etc/cups, /usr/include/cups, /usr/lib/cups, /usr/share/doc/cups,
209 /usr/share/cups, /var/log/cups, and /var/spool/cups</seg>
210 </seglistitem>
211 </segmentedlist>
212
213 <variablelist>
214 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
215 <?dbfo list-presentation="list"?>
216 <?dbhtml list-presentation="table"?>
217
218 <varlistentry id="accept">
219 <term><command>accept</command></term>
220 <listitem>
221 <para>instructs the printing system to accept print jobs to the
222 specified destinations.</para>
223 <indexterm zone="cups accept">
224 <primary sortas="b-accept">accept</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="cancel-cups">
230 <term><command>cancel</command></term>
231 <listitem>
232 <para>cancels existing print jobs from the print queues.</para>
233 <indexterm zone="cups cancel-cups">
234 <primary sortas="b-cancel">cancel</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="cups-config">
240 <term><command>cups-config</command></term>
241 <listitem>
242 <para>is a <application>CUPS</application>
243 program configuration utility.</para>
244 <indexterm zone="cups cups-config">
245 <primary sortas="b-cups-config">cups-config</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="cupsaddsmb">
251 <term><command>cupsaddsmb</command></term>
252 <listitem>
253 <para>exports printers to the <application>Samba</application>
254 software for use with Windows clients.</para>
255 <indexterm zone="cups cupsaddsmb">
256 <primary sortas="b-cupsaddsmb">cupsaddsmb</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="cupsd">
262 <term><command>cupsd</command></term>
263 <listitem>
264 <para>is the scheduler for the Common Unix Printing System.</para>
265 <indexterm zone="cups cupsd">
266 <primary sortas="b-cupsd">cupsd</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="cupstestppd">
272 <term><command>cupstestppd</command></term>
273 <listitem>
274 <para>tests the conformance of PPD files.</para>
275 <indexterm zone="cups cupstestppd">
276 <primary sortas="b-cupstestppd">cupstestppd</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="disable">
282 <term><command>disable</command></term>
283 <listitem>
284 <para>stops the named printers or classes.</para>
285 <indexterm zone="cups disable">
286 <primary sortas="b-disable">disable</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 <varlistentry id="enable">
292 <term><command>enable</command></term>
293 <listitem>
294 <para>starts the named printers or classes.</para>
295 <indexterm zone="cups enable">
296 <primary sortas="b-enable">enable</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="lp-cups">
302 <term><command>lp</command></term>
303 <listitem>
304 <para>submits files for printing or alters a pending job.</para>
305 <indexterm zone="cups lp-cups">
306 <primary sortas="b-lp">lp</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry id="lpadmin">
312 <term><command>lpadmin</command></term>
313 <listitem>
314 <para>configures printer and class queues provided by
315 <application>CUPS</application>.</para>
316 <indexterm zone="cups lpadmin">
317 <primary sortas="b-lpadmin">lpadmin</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry id="lpc-cups">
323 <term><command>lpc</command></term>
324 <listitem>
325 <para> provides limited control over printer and class queues
326 provided by <application>CUPS</application>.</para>
327 <indexterm zone="cups lpc-cups">
328 <primary sortas="b-lpc">lpc</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 <varlistentry id="lpinfo">
334 <term><command>lpinfo</command></term>
335 <listitem>
336 <para>lists the available devices or drivers known to the
337 <application>CUPS</application> server.</para>
338 <indexterm zone="cups lpinfo">
339 <primary sortas="b-lpinfo">lpinfo</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 <varlistentry id="lpmove">
345 <term><command>lpmove</command></term>
346 <listitem>
347 <para>moves the specified job to a new destination.</para>
348 <indexterm zone="cups lpmove">
349 <primary sortas="b-lpmove">lpmove</primary>
350 </indexterm>
351 </listitem>
352 </varlistentry>
353
354 <varlistentry id="lpoptions">
355 <term><command>lpoptions</command></term>
356 <listitem>
357 <para>displays or sets printer options and defaults.</para>
358 <indexterm zone="cups lpoptions">
359 <primary sortas="b-lpoptions">lpoptions</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 <varlistentry id="lppasswd">
365 <term><command>lppasswd</command></term>
366 <listitem>
367 <para>adds, changes or deletes passwords in the
368 <application>CUPS</application> digest password file
369 <filename>passwd.md5</filename>.</para>
370 <indexterm zone="cups lppasswd">
371 <primary sortas="b-lppasswd">lppasswd</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
376 <varlistentry id="lpq-cups">
377 <term><command>lpq</command></term>
378 <listitem>
379 <para>shows the current print queue status on the named printer.</para>
380 <indexterm zone="cups lpq-cups">
381 <primary sortas="b-lpq">lpq</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
386 <varlistentry id="lpr-cups">
387 <term><command>lpr</command></term>
388 <listitem>
389 <para>submits files for printing.</para>
390 <indexterm zone="cups lpr-cups">
391 <primary sortas="b-lpr">lpr</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
395
396 <varlistentry id="lprm-cups">
397 <term><command>lprm</command></term>
398 <listitem>
399 <para>cancels print jobs that have been queued for printing.</para>
400 <indexterm zone="cups lprm-cups">
401 <primary sortas="b-lprm">lprm</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
406 <varlistentry id="lpstat-cups">
407 <term><command>lpstat</command></term>
408 <listitem>
409 <para>displays status information about the current classes, jobs,
410 and printers.</para>
411 <indexterm zone="cups lpstat-cups">
412 <primary sortas="b-lpstat">lpstat</primary>
413 </indexterm>
414 </listitem>
415 </varlistentry>
416
417 <varlistentry id="reject">
418 <term><command>reject</command></term>
419 <listitem>
420 <para>instructs the printing system to reject print jobs to the
421 specified destinations.</para>
422 <indexterm zone="cups reject">
423 <primary sortas="b-reject">reject</primary>
424 </indexterm>
425 </listitem>
426 </varlistentry>
427
428 </variablelist>
429
430 </sect2>
431
432</sect1>
Note: See TracBrowser for help on using the repository browser.