source: pst/printing/cups.xml@ 6d85d2c1

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 6d85d2c1 was 6d85d2c1, checked in by Andrew Benton <andy@…>, 12 years ago

Bruce please check the book validates before you commit your changes

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

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