source: pst/printing/cups.xml@ 14d01d8

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 14d01d8 was 14d01d8, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Update to cups-1.5.0.

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

  • Property mode set to 100644
File size: 17.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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 "e54ed09ede2340fc3014913333520fe4">
10 <!ENTITY cups-size "3.9 MB">
11 <!ENTITY cups-buildsize "91 MB">
12 <!ENTITY cups-time "0.7 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 </sect1info>
22
23 <title>CUPS-&cups-version;</title>
24
25 <indexterm zone="cups">
26 <primary sortas="a-CUPS">CUPS</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to CUPS</title>
31
32 <para>The Common Unix Printing System (CUPS) is a print spooler and
33 associated utilities. It is based on the "Internet Printing
34 Protocol" and provides printing services to most PostScript and raster
35 printers.</para>
36
37 &lfs70_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&cups-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&cups-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &cups-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &cups-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &cups-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &cups-time;</para>
58 </listitem>
59 </itemizedlist>
60<!--
61 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
62 <itemizedlist spacing="compact">
63 <listitem>
64 <para>Required patch: <ulink
65 url="&patch-root;/cups-&cups-version;-fix_broken_locking-1.patch"/></para>
66 </listitem>
67 </itemizedlist>
68-->
69 <bridgehead renderas="sect3">CUPS Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Recommended</bridgehead>
72 <para role="recommended">
73 <xref linkend="libjpeg"/>,
74 <xref linkend="libpng"/>, and
75 <xref linkend="libtiff"/>
76 </para>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional"><!-- <xref linkend="pkgconfig"/>, -->
80 <xref linkend="tcpwrappers"/>,
81 <xref linkend="dbus"/>,
82 <xref linkend="libusb"/>,
83 <xref linkend="acl"/>,
84 <xref linkend="linux-pam"/>,
85 <xref linkend="openldap"/>,
86 <xref linkend="gnutls"/> or <xref linkend="openssl"/> (looked for in that order),
87 <xref linkend="heimdal"/> or <xref linkend="mitkrb"/>,
88 <xref linkend="php"/>,
89 <xref linkend="gs"/>,
90 <xref linkend="python"/>,
91 <xref linkend="icedtea6"/> or <xref linkend="jdk"/>,
92 <ulink url="http://portland.freedesktop.org/wiki/">Xdg-utils</ulink>,
93 <ulink url="http://www.openslp.org/">OpenSLP</ulink>,
94 <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>,
95 <ulink url="http://www.easysw.com/htmldoc/">HTMLDOC</ulink>, and
96 <ulink url="http://valgrind.org/">Valgrind</ulink> (optionally used if
97 running the test suites)
98 </para>
99
100 <para condition="html" role="usernotes">User Notes:
101 <ulink url="&blfs-wiki;/cups"/></para>
102
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of CUPS</title>
107
108 <para>Create an <systemitem class="username">lp</systemitem> user, as
109 <application>CUPS</application> will create some files owned by this user.
110 (The <systemitem class="username">lp</systemitem> user is the default used
111 by <application>CUPS</application>, but may be changed to a different user
112 by passing a parameter to the <command>configure</command> script.) Use the
113 following command as the <systemitem class="username">root</systemitem>
114 user:</para>
115
116<screen role="root"><userinput>useradd -c "Print Service User" -d /dev/null -g lp -s /bin/false -u 9 lp</userinput></screen>
117
118 <note>
119 <para>If you plan to use a USB printer with
120 <application>CUPS</application>, do not enable the
121 <quote>usblp</quote> driver as either built-in or as a module in
122 your kernel configuration as it will cause the new
123 <application>CUPS</application> USB backend to fail.
124 <filename>/var/log/sys.log</filename> will contain entries similar to the
125 following:</para>
126
127 <screen>kernel: [54631.796465] usb 4-1: usbfs: interface 0 claimed by usblp while 'usb'
128sets config #1</screen>
129
130 <para>The kernel config option is
131 <parameter>CONFIG_USB_PRINTER</parameter> and can be found in menuconfig
132 under <quote>Device Drivers ---> USB support ---> USB Printer
133 support</quote>.</para>
134 </note>
135
136 <para>Install <application>CUPS</application> by running the
137 following commands:</para>
138
139<screen><userinput>./configure --prefix=/usr --docdir=/usr/share/doc/cups-&cups-version; &amp;&amp;
140make</userinput></screen>
141
142 <para>To test the results, issue: <command>make check</command>. This will
143 run a basic test suite without any load testing. If you wish to run the
144 tests specifying non-default parameters, issue: <command>make test</command>.
145 Note that the <quote>torture load testing</quote> test uses more resources
146 than those displayed in the prompt.</para>
147
148 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
149
150<screen role="root"><userinput>make install</userinput></screen>
151
152 <para>The <application>man</application> files are installed in compressed
153 (<filename class='extension'>.gz</filename>) format. If desired, use the
154 following commands to uncompress them:</para>
155
156<screen role="root"><userinput>find -name \*gz -type l -delete &amp;&amp;
157find -name \*gz -exec gunzip -v {} \; &amp;&amp;
158
159ln -v -s cupsaccept.8 /usr/share/man/man8/reject.8 &amp;&amp;
160ln -v -s cupsaccept.8 /usr/share/man/man8/cupsreject.8 &amp;&amp;
161ln -v -s cupsaccept.8 /usr/share/man/man8/accept.8 &amp;&amp;
162ln -v -s cupsenable.8 /usr/share/man/man8/cupsdisable.8</userinput></screen>
163
164 </sect2>
165
166 <sect2 role="commands">
167 <title>Command Explanations</title>
168
169 <para>The basic default behavior of the installation is appropriate for
170 LFS systems. <application>CUPS</application> files are placed in
171 <filename class="directory">/usr/{bin,include,lib,sbin,share/cups}</filename>,
172 <filename class="directory">/var/{cache,log,run,spool}</filename>, and
173 <filename class="directory">/etc/{cups,pam.d,dbus-1/system.d</filename></para>
174
175 </sect2>
176
177 <sect2 role="configuration">
178 <title>Configuring CUPS</title>
179
180 <para>Configuration of <application>CUPS</application> is dependent on
181 the type of printer and can be complex. Generally, PostScript printers
182 are easier. For detailed instructions on configuration and use of
183 <application>CUPS</application>, see <ulink
184 url="http://www.cups.org/documentation.php"/>. The Software Administrators
185 Manual and Software Users Manual are particularly useful.</para>
186
187 <para>For non-PostScript printers to print with
188 <application>CUPS</application>, you need to install
189 <xref linkend="gs"/> to convert PostScript to raster images
190 and a driver (e.g., from <xref linkend="gutenprint"/>) to convert
191 the resulting raster images to a form that the printer understands.
192 <ulink url="http://www.linuxprinting.org/foomatic.html">Foomatic</ulink>
193 drivers use Ghostscript to convert PostScript to a printable form directly,
194 but this is considered to be a hack by
195 <application>CUPS</application> developers.</para>
196
197<!-- This should be obvious, not to mention the new problem with usblp.
198 Omitting completely for now.
199
200 <sect3 role="kernel" id="cups-kernel">
201 <title>Kernel Configuration</title>
202
203 <para>To use your printer you will likely need the appropriate drivers
204 enabled in the kernel &mdash; for example, <quote>Parallel printer
205 support</quote> if you have a parallel port printer, or <quote>USB Printer
206 support</quote> for a USB printer.</para>
207
208 </sect3>
209-->
210
211 <sect3 id="cups-init">
212 <title>Boot Script</title>
213
214 <para>During the installation, <application>CUPS</application> added
215 startup files in <filename class="directory">/etc/rc.d</filename>.
216 These scripts will work in most cases, but will fail if you provide
217 printers to <application>Samba</application> clients. Additionally,
218 they are not consistent with standard LFS style scripts. Replace the
219 installed scripts with the scripts and symlinks included in the
220 <xref linkend="bootscripts"/> package:</para>
221
222 <indexterm zone="cups cups-init">
223 <primary sortas="f-cups">cups</primary>
224 </indexterm>
225
226<screen role="root"><userinput>make install-cups</userinput></screen>
227
228 </sect3>
229
230 </sect2>
231
232 <sect2 role="content">
233 <title>Contents</title>
234
235 <segmentedlist>
236 <segtitle>Installed Programs</segtitle>
237 <segtitle>Installed Libraries</segtitle>
238 <segtitle>Installed Directories</segtitle>
239
240 <seglistitem>
241 <seg>accept, cancel, cups-config, cupsaccept, cupsaddsmb, cupsctl,
242 cupsd, cupsdisable, cupsenable, cupsfilter, cupsreject, cupstestdsc,
243 cupstestppd, lp, lpadmin, lpc, lpinfo, lpmove, lpoptions, lppasswd,
244 lpq, lpr, lprm, lpstat, ppdc, ppdhtml, ppdi, ppdmerge, ppdpo, reject</seg>
245 <seg>libcups.{so,a}, libcupscgi.{so,a}, libcupsdriver.{so,a},
246 libcupsimage.{so,a}, libcupsmime.{so,a}, libcupsppdc.{so,a}, and
247 various filters and backend drivers</seg>
248 <seg>/etc/cups, /usr/{include,lib,share}/cups, /usr/share/doc/cups-&cups-version;, and
249 /var/{cache,log,run,spool}/cups</seg>
250 </seglistitem>
251 </segmentedlist>
252
253 <variablelist>
254 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
255 <?dbfo list-presentation="list"?>
256 <?dbhtml list-presentation="table"?>
257
258 <varlistentry id="accept">
259 <term><command>accept</command></term>
260 <listitem>
261 <para>instructs the printing system to accept print jobs to the
262 specified destinations.</para>
263 <indexterm zone="cups accept">
264 <primary sortas="b-accept">accept</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="cancel-cups">
270 <term><command>cancel</command></term>
271 <listitem>
272 <para>cancels existing print jobs from the print queues.</para>
273 <indexterm zone="cups cancel-cups">
274 <primary sortas="b-cancel">cancel</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="cups-config">
280 <term><command>cups-config</command></term>
281 <listitem>
282 <para>is a <application>CUPS</application>
283 program configuration utility.</para>
284 <indexterm zone="cups cups-config">
285 <primary sortas="b-cups-config">cups-config</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id="cupsaddsmb">
291 <term><command>cupsaddsmb</command></term>
292 <listitem>
293 <para>exports printers to the <application>Samba</application>
294 software for use with Windows clients.</para>
295 <indexterm zone="cups cupsaddsmb">
296 <primary sortas="b-cupsaddsmb">cupsaddsmb</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="cupsd">
302 <term><command>cupsd</command></term>
303 <listitem>
304 <para>is the scheduler for the Common Unix Printing System.</para>
305 <indexterm zone="cups cupsd">
306 <primary sortas="b-cupsd">cupsd</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry id="cupstestppd">
312 <term><command>cupstestppd</command></term>
313 <listitem>
314 <para>tests the conformance of PPD files.</para>
315 <indexterm zone="cups cupstestppd">
316 <primary sortas="b-cupstestppd">cupstestppd</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry id="disable">
322 <term><command>disable</command></term>
323 <listitem>
324 <para>stops the named printers or classes.</para>
325 <indexterm zone="cups disable">
326 <primary sortas="b-disable">disable</primary>
327 </indexterm>
328 </listitem>
329 </varlistentry>
330
331 <varlistentry id="enable">
332 <term><command>enable</command></term>
333 <listitem>
334 <para>starts the named printers or classes.</para>
335 <indexterm zone="cups enable">
336 <primary sortas="b-enable">enable</primary>
337 </indexterm>
338 </listitem>
339 </varlistentry>
340
341 <varlistentry id="lp-cups">
342 <term><command>lp</command></term>
343 <listitem>
344 <para>submits files for printing or alters a pending job.</para>
345 <indexterm zone="cups lp-cups">
346 <primary sortas="b-lp">lp</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="lpadmin">
352 <term><command>lpadmin</command></term>
353 <listitem>
354 <para>configures printer and class queues provided by
355 <application>CUPS</application>.</para>
356 <indexterm zone="cups lpadmin">
357 <primary sortas="b-lpadmin">lpadmin</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
361
362 <varlistentry id="lpc-cups">
363 <term><command>lpc</command></term>
364 <listitem>
365 <para> provides limited control over printer and class queues
366 provided by <application>CUPS</application>.</para>
367 <indexterm zone="cups lpc-cups">
368 <primary sortas="b-lpc">lpc</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 <varlistentry id="lpinfo">
374 <term><command>lpinfo</command></term>
375 <listitem>
376 <para>lists the available devices or drivers known to the
377 <application>CUPS</application> server.</para>
378 <indexterm zone="cups lpinfo">
379 <primary sortas="b-lpinfo">lpinfo</primary>
380 </indexterm>
381 </listitem>
382 </varlistentry>
383
384 <varlistentry id="lpmove">
385 <term><command>lpmove</command></term>
386 <listitem>
387 <para>moves the specified job to a new destination.</para>
388 <indexterm zone="cups lpmove">
389 <primary sortas="b-lpmove">lpmove</primary>
390 </indexterm>
391 </listitem>
392 </varlistentry>
393
394 <varlistentry id="lpoptions">
395 <term><command>lpoptions</command></term>
396 <listitem>
397 <para>displays or sets printer options and defaults.</para>
398 <indexterm zone="cups lpoptions">
399 <primary sortas="b-lpoptions">lpoptions</primary>
400 </indexterm>
401 </listitem>
402 </varlistentry>
403
404 <varlistentry id="lppasswd">
405 <term><command>lppasswd</command></term>
406 <listitem>
407 <para>adds, changes or deletes passwords in the
408 <application>CUPS</application> digest password file
409 <filename>passwd.md5</filename>.</para>
410 <indexterm zone="cups lppasswd">
411 <primary sortas="b-lppasswd">lppasswd</primary>
412 </indexterm>
413 </listitem>
414 </varlistentry>
415
416 <varlistentry id="lpq-cups">
417 <term><command>lpq</command></term>
418 <listitem>
419 <para>shows the current print queue status on the named printer.</para>
420 <indexterm zone="cups lpq-cups">
421 <primary sortas="b-lpq">lpq</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
426 <varlistentry id="lpr-cups">
427 <term><command>lpr</command></term>
428 <listitem>
429 <para>submits files for printing.</para>
430 <indexterm zone="cups lpr-cups">
431 <primary sortas="b-lpr">lpr</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
436 <varlistentry id="lprm-cups">
437 <term><command>lprm</command></term>
438 <listitem>
439 <para>cancels print jobs that have been queued for printing.</para>
440 <indexterm zone="cups lprm-cups">
441 <primary sortas="b-lprm">lprm</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
445
446 <varlistentry id="lpstat-cups">
447 <term><command>lpstat</command></term>
448 <listitem>
449 <para>displays status information about the current classes, jobs,
450 and printers.</para>
451 <indexterm zone="cups lpstat-cups">
452 <primary sortas="b-lpstat">lpstat</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
457 <varlistentry id="reject">
458 <term><command>reject</command></term>
459 <listitem>
460 <para>instructs the printing system to reject print jobs to the
461 specified destinations.</para>
462 <indexterm zone="cups reject">
463 <primary sortas="b-reject">reject</primary>
464 </indexterm>
465 </listitem>
466 </varlistentry>
467
468 </variablelist>
469
470 </sect2>
471
472</sect1>
Note: See TracBrowser for help on using the repository browser.