source: pst/printing/cups.xml@ bc6e56d

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 bc6e56d was bc6e56d, checked in by Krejzi <krejzi@…>, 12 years ago

Removed TCP Wrappers. Inkscape 0.48.3.1 and VLC 2.0.3.

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

  • Property mode set to 100644
File size: 17.7 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 &lfs71_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">Cups Dependencies</bridgehead>
62
63 <bridgehead renderas="sect4">Recommended</bridgehead>
64 <para role="recommended">
65 <xref linkend="libjpeg"/>,
66 <xref linkend="libpng"/>, and
67 <xref linkend="libtiff"/>
68 </para>
69
70 <bridgehead renderas="sect4">Optional</bridgehead>
71 <para role="optional">
72 <xref linkend="dbus"/>,
73 <xref linkend="libusb"/>,
74 <xref linkend="acl"/>,
75 <xref linkend="linux-pam"/>,
76 <xref linkend="openldap"/>,
77 <xref linkend="gnutls"/> or <xref linkend="openssl"/> (looked for in that
78 order), <xref linkend="mitkrb"/>,
79 <xref linkend="php"/>,
80 <xref linkend="gs"/>,
81 <xref linkend="python2"/>,
82 <xref linkend="openjdk"/>,
83 <ulink url="http://portland.freedesktop.org/wiki/">Xdg-utils</ulink>,
84 <ulink url="http://www.openslp.org/">OpenSLP</ulink>,
85 <ulink
86 url="http://packages.debian.org/source/sid/libpaper">libpaper</ulink>,
87 <ulink url="http://www.easysw.com/htmldoc/">HTMLDOC</ulink>, and
88 <ulink url="http://valgrind.org/">Valgrind</ulink> (optionally used if
89 running the test suites)
90 </para>
91
92 <para condition="html" role="usernotes">User Notes:
93 <ulink url="&blfs-wiki;/cups"/></para>
94
95 </sect2>
96
97 <sect2 role="kernel" id="cups-kernel">
98 <title>Kernel Configuration</title>
99
100 <para>If you have a parallel printer enable the following options in your
101 kernel configuration and recompile the kernel:</para>
102
103<screen><literal>Device Drivers ---&gt;
104 [*] Parallel port support ---&gt;
105 [*] PC-style hardware
106...
107 Character devices ---&gt;
108 [*] Parallel printer support</literal></screen>
109
110 <note><para>If you have a USB printer there is a conflict between the
111 <application>Cups</application> <application>libusb</application>
112 backend and the kernel driver. If you want to use
113 <application>Cups</application> with <application>libusb</application>
114 support <emphasis>do not</emphasis> enable USB Printer support in your
115 kernel and remove the <option>--disable-libusb</option> when you
116 configure <application>Cups</application>.</para></note>
117
118 <para>If you want to use the kernel usblp driver enable the following
119 options in your kernel configuration and recompile the kernel:</para>
120
121<screen>Device Drivers ---&gt;
122 [*] USB support ---&gt;
123...
124Enable support for either UHCI or OHCI, not both:
125 [*] OHCI HCD support
126 [*] UHCI HCD (most Intel and VIA) support
127...
128 [*] USB Printer support</screen>
129
130 <indexterm zone="cups cups-kernel">
131 <primary sortas="d-cups">cups</primary>
132 </indexterm>
133
134 </sect2>
135
136 <sect2 role="installation">
137 <title>Installation of Cups</title>
138
139 <para>Create an <systemitem class="username">lp</systemitem> user, as
140 <application>Cups</application> will create some files owned by this user.
141 (The <systemitem class="username">lp</systemitem> user is the default used
142 by <application>Cups</application>, but may be changed to a different user
143 by passing a parameter to the <command>configure</command> script.) Use the
144 following command as the <systemitem class="username">root</systemitem>
145 user:</para>
146
147<screen role="root"><userinput>useradd -c "Print Service User" -d /dev/null -g lp -s /bin/false -u 9 lp</userinput></screen>
148
149 <para>Install <application>Cups</application> by running the
150 following commands:</para>
151
152<screen><userinput>sed -i 's#@CUPS_HTMLVIEW@#firefox#' desktop/cups.desktop.in &amp;&amp;
153./configure --localstatedir=/var \
154 --disable-libusb \
155 --with-rcdir=/tmp/cupsinit \
156 --with-docdir=/usr/share/doc/cups-&cups-version; &amp;&amp;
157make</userinput></screen>
158
159 <para>To test the results, issue: <command>make check</command>. This will
160 run a basic test suite without any load testing. If you wish to run the
161 tests specifying non-default parameters, issue:
162 <command>make test</command>. Note that the <quote>torture load
163 testing</quote> test uses more resources than those displayed in the
164 prompt.</para>
165
166 <para>Now, as the <systemitem class="username">root</systemitem>
167 user:</para>
168
169<screen role="root"><userinput>make install &amp;&amp;
170rm -rf /tmp/cupsinit</userinput></screen>
171
172 <para>The <application>man</application> files are installed in compressed
173 (<filename class="extension">.gz</filename>) format. If desired, use the
174 following commands to uncompress them as the
175 <systemitem class="username">root</systemitem> user:</para>
176
177<screen role="root"><userinput>pushd /usr/share/man/ &amp;&amp;
178find -name cups\*gz -type l -print -delete &amp;&amp;
179find -name \*gz -exec gunzip -v {} \; &amp;&amp;
180popd &amp;&amp;
181
182ln -v -s cupsaccept.8 /usr/share/man/man8/reject.8 &amp;&amp;
183ln -v -s cupsaccept.8 /usr/share/man/man8/cupsreject.8 &amp;&amp;
184ln -v -s cupsaccept.8 /usr/share/man/man8/accept.8 &amp;&amp;
185ln -v -s cupsenable.8 /usr/share/man/man8/cupsdisable.8</userinput></screen>
186
187 </sect2>
188
189 <sect2 role="commands">
190 <title>Command Explanations</title>
191
192 <para><command>sed -i 's#@CUPS_HTMLVIEW@#firefox#' ...</command>: This
193 changes the browser that the <application>Cups</application> desktop file
194 uses for its web interface.</para>
195
196 <para><option>--localstatedir=/var</option>: This changes the location of
197 the cache, log, run and spool directories from /usr/var to /var.</para>
198
199 <para><option>--disable-libusb</option>: This disables the
200 <application>Cups</application> <application>libusb</application> backend.
201 If you&apos;d like <application>Cups</application> to use
202 <application>libusb</application>, delete this option and make sure you
203 compile your kernel with: # CONFIG_USB_PRINTER is not set</para>
204
205 <para><option>--with-rcdir=/tmp/cupsinit</option>: This option makes it install its
206 bootscript into <filename class="directory">/tmp</filename> instead of
207 <filename class="directory">/etc/rc.d</filename>.</para>
208
209 </sect2>
210
211 <sect2 role="configuration">
212 <title>Configuring Cups</title>
213
214 <para>Configuration of <application>Cups</application> is dependent on
215 the type of printer and can be complex. Generally, PostScript printers
216 are easier. For detailed instructions on configuration and use of
217 <application>Cups</application>, see <ulink
218 url="http://www.cups.org/documentation.php"/>. The Software Administrators
219 Manual and Software Users Manual are particularly useful.</para>
220
221 <para>For non-PostScript printers to print with
222 <application>Cups</application>, you need to install <xref linkend="gs"/>
223 to convert PostScript to raster images and a driver (e.g., from
224 <xref linkend="gutenprint"/>) to convert the resulting raster images to a
225 form that the printer understands.
226 <ulink url="http://www.linuxprinting.org/foomatic.html">Foomatic</ulink>
227 drivers use Ghostscript to convert PostScript to a printable form directly,
228 but this is considered to be a hack by
229 <application>Cups</application> developers.</para>
230
231 <sect3 id="cups-init">
232 <title>Boot Script</title>
233
234 <para>If you want the <application>Cups</application> to start
235 automatically when the system is booted, install the init script included
236 in the <xref linkend="bootscripts"/> package:</para>
237
238 <indexterm zone="cups cups-init">
239 <primary sortas="f-cups">cups</primary>
240 </indexterm>
241
242<screen role="root"><userinput>make install-cups</userinput></screen>
243
244 </sect3>
245
246 </sect2>
247
248 <sect2 role="content">
249 <title>Contents</title>
250
251 <segmentedlist>
252 <segtitle>Installed Programs</segtitle>
253 <segtitle>Installed Libraries</segtitle>
254 <segtitle>Installed Directories</segtitle>
255
256 <seglistitem>
257 <seg>accept, cancel, cups-config, cupsaccept, cupsaddsmb, cupsctl,
258 cupsd, cupsdisable, cupsenable, cupsfilter, cupsreject, cupstestdsc,
259 cupstestppd, lp, lpadmin, lpc, lpinfo, lpmove, lpoptions, lppasswd,
260 lpq, lpr, lprm, lpstat, ppdc, ppdhtml, ppdi, ppdmerge, ppdpo,
261 reject</seg>
262 <seg>libcups.so, libcupscgi.so, libcupsdriver.so,
263 libcupsimage.so, libcupsmime.so, libcupsppdc.so, and
264 various filters and backend drivers</seg>
265 <seg>/etc/cups, /usr/include/cups, /usr/lib/cups, /usr/share/cups,
266 /usr/share/doc/cups-&cups-version;, /var/cache/cups, /var/log/cups,
267 /var/run/cups and /var/spool/cups.</seg>
268 </seglistitem>
269 </segmentedlist>
270
271 <variablelist>
272 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
273 <?dbfo list-presentation="list"?>
274 <?dbhtml list-presentation="table"?>
275
276 <varlistentry id="accept">
277 <term><command>accept</command></term>
278 <listitem>
279 <para>instructs the printing system to accept print jobs to the
280 specified destinations.</para>
281 <indexterm zone="cups accept">
282 <primary sortas="b-accept">accept</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="cancel-cups">
288 <term><command>cancel</command></term>
289 <listitem>
290 <para>cancels existing print jobs from the print queues.</para>
291 <indexterm zone="cups cancel-cups">
292 <primary sortas="b-cancel">cancel</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="cups-config">
298 <term><command>cups-config</command></term>
299 <listitem>
300 <para>is a <application>Cups</application>
301 program configuration utility.</para>
302 <indexterm zone="cups cups-config">
303 <primary sortas="b-cups-config">cups-config</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="cupsaddsmb">
309 <term><command>cupsaddsmb</command></term>
310 <listitem>
311 <para>exports printers to the <application>Samba</application>
312 software for use with Windows clients.</para>
313 <indexterm zone="cups cupsaddsmb">
314 <primary sortas="b-cupsaddsmb">cupsaddsmb</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="cupsd">
320 <term><command>cupsd</command></term>
321 <listitem>
322 <para>is the scheduler for the Common Unix Printing System.</para>
323 <indexterm zone="cups cupsd">
324 <primary sortas="b-cupsd">cupsd</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="cupstestppd">
330 <term><command>cupstestppd</command></term>
331 <listitem>
332 <para>tests the conformance of PPD files.</para>
333 <indexterm zone="cups cupstestppd">
334 <primary sortas="b-cupstestppd">cupstestppd</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="disable">
340 <term><command>disable</command></term>
341 <listitem>
342 <para>stops the named printers or classes.</para>
343 <indexterm zone="cups disable">
344 <primary sortas="b-disable">disable</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
348
349 <varlistentry id="enable">
350 <term><command>enable</command></term>
351 <listitem>
352 <para>starts the named printers or classes.</para>
353 <indexterm zone="cups enable">
354 <primary sortas="b-enable">enable</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
359 <varlistentry id="lp-cups">
360 <term><command>lp</command></term>
361 <listitem>
362 <para>submits files for printing or alters a pending job.</para>
363 <indexterm zone="cups lp-cups">
364 <primary sortas="b-lp">lp</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
369 <varlistentry id="lpadmin">
370 <term><command>lpadmin</command></term>
371 <listitem>
372 <para>configures printer and class queues provided by
373 <application>Cups</application>.</para>
374 <indexterm zone="cups lpadmin">
375 <primary sortas="b-lpadmin">lpadmin</primary>
376 </indexterm>
377 </listitem>
378 </varlistentry>
379
380 <varlistentry id="lpc-cups">
381 <term><command>lpc</command></term>
382 <listitem>
383 <para> provides limited control over printer and class queues
384 provided by <application>Cups</application>.</para>
385 <indexterm zone="cups lpc-cups">
386 <primary sortas="b-lpc">lpc</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="lpinfo">
392 <term><command>lpinfo</command></term>
393 <listitem>
394 <para>lists the available devices or drivers known to the
395 <application>Cups</application> server.</para>
396 <indexterm zone="cups lpinfo">
397 <primary sortas="b-lpinfo">lpinfo</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="lpmove">
403 <term><command>lpmove</command></term>
404 <listitem>
405 <para>moves the specified job to a new destination.</para>
406 <indexterm zone="cups lpmove">
407 <primary sortas="b-lpmove">lpmove</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="lpoptions">
413 <term><command>lpoptions</command></term>
414 <listitem>
415 <para>displays or sets printer options and defaults.</para>
416 <indexterm zone="cups lpoptions">
417 <primary sortas="b-lpoptions">lpoptions</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="lppasswd">
423 <term><command>lppasswd</command></term>
424 <listitem>
425 <para>adds, changes or deletes passwords in the
426 <application>Cups</application> digest password file
427 <filename>passwd.md5</filename>.</para>
428 <indexterm zone="cups lppasswd">
429 <primary sortas="b-lppasswd">lppasswd</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
434 <varlistentry id="lpq-cups">
435 <term><command>lpq</command></term>
436 <listitem>
437 <para>shows the current print queue status on the named printer.</para>
438 <indexterm zone="cups lpq-cups">
439 <primary sortas="b-lpq">lpq</primary>
440 </indexterm>
441 </listitem>
442 </varlistentry>
443
444 <varlistentry id="lpr-cups">
445 <term><command>lpr</command></term>
446 <listitem>
447 <para>submits files for printing.</para>
448 <indexterm zone="cups lpr-cups">
449 <primary sortas="b-lpr">lpr</primary>
450 </indexterm>
451 </listitem>
452 </varlistentry>
453
454 <varlistentry id="lprm-cups">
455 <term><command>lprm</command></term>
456 <listitem>
457 <para>cancels print jobs that have been queued for printing.</para>
458 <indexterm zone="cups lprm-cups">
459 <primary sortas="b-lprm">lprm</primary>
460 </indexterm>
461 </listitem>
462 </varlistentry>
463
464 <varlistentry id="lpstat-cups">
465 <term><command>lpstat</command></term>
466 <listitem>
467 <para>displays status information about the current classes, jobs,
468 and printers.</para>
469 <indexterm zone="cups lpstat-cups">
470 <primary sortas="b-lpstat">lpstat</primary>
471 </indexterm>
472 </listitem>
473 </varlistentry>
474
475 <varlistentry id="reject">
476 <term><command>reject</command></term>
477 <listitem>
478 <para>instructs the printing system to reject print jobs to the
479 specified destinations.</para>
480 <indexterm zone="cups reject">
481 <primary sortas="b-reject">reject</primary>
482 </indexterm>
483 </listitem>
484 </varlistentry>
485
486 </variablelist>
487
488 </sect2>
489
490</sect1>
Note: See TracBrowser for help on using the repository browser.