source: pst/printing/cups.xml@ 98d7dd8

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 98d7dd8 was 98d7dd8, checked in by DJ Lucas <dj@…>, 14 years ago

Fix broken commit.

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

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