source: pst/printing/cups.xml@ b66ece35

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

Update all jdk links to include optional IcedTea6 links.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8597 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 "d95e2d588e3d36e563027a963b117b1b">
10 <!ENTITY cups-size "4.4 MB">
11 <!ENTITY cups-buildsize "80 MB">
12 <!ENTITY cups-time "0.8 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;-security_fixes-2.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>./configure &amp;&amp;
114make</userinput></screen>
115
116 <para>To test the results, issue: <command>make check</command>. This will
117 run a basic test suite without any load testing. If you wish to run the
118 tests specifying non-default parameters, issue: <command>make test</command>.
119 Note that the <quote>torture load testing</quote> test uses more resources
120 than those displayed in the prompt.</para>
121
122 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
123
124<screen role="root"><userinput>make install</userinput></screen>
125
126 <para>The <application>man</application> files are installed in compressed
127 (<filename class='extension'>.gz</filename>) format. If desired, use the
128 following commands to uncompress them:</para>
129
130<screen role="root"><userinput>gunzip -v /usr/share/man/man{\
1311/{ppd{po,merge,html,c,i},cancel,cups{-config,test{dsc,ppd}},\
132lp{,options,passwd,q,rm,r,stat}}.1,\
1335/{{classes,client,cups-snmp,cupsd,printers,subscriptions,mailto}.conf,\
134mime.{convs,types},ppdcfile}.5,\
1357/{backend,filter,notifier,drv}.7,\
1368/{accept,cups{ctl,accept,filter,d,addsmb,enable,\
137-{deviced,driverd,lpd,polld}},lp{admin,info,move,c}}.8}.gz &amp;&amp;
138
139rm -v /usr/share/man/man8/{{,cups}reject,accept,cupsdisable}.8.gz &amp;&amp;
140ln -v -s cupsaccept.8 /usr/share/man/man8/reject.8 &amp;&amp;
141ln -v -s cupsaccept.8 /usr/share/man/man8/cupsreject.8 &amp;&amp;
142ln -v -s cupsaccept.8 /usr/share/man/man8/accept.8 &amp;&amp;
143ln -v -s cupsenable.8 /usr/share/man/man8/cupsdisable.8</userinput></screen>
144
145 </sect2>
146
147 <sect2 role="commands">
148 <title>Command Explanations</title>
149
150 <para>The basic default behavior of the installation is appropriate for
151 LFS systems. <application>CUPS</application> files are placed in
152 <filename class="directory">/usr/{bin,include,lib,sbin,share/cups}</filename>,
153 <filename class="directory">/var/{cache,log,run,spool}</filename>, and
154 <filename class="directory">/etc/{cups,pam.d,dbus-1/system.d</filename></para>
155
156 </sect2>
157
158 <sect2 role="configuration">
159 <title>Configuring CUPS</title>
160
161 <para>Configuration of <application>CUPS</application> is dependent on
162 the type of printer and can be complex. Generally, PostScript printers
163 are easier. For detailed instructions on configuration and use of
164 <application>CUPS</application>, see <ulink
165 url="http://www.cups.org/documentation.php"/>. The Software Administrators
166 Manual and Software Users Manual are particularly useful.</para>
167
168 <para>For non-PostScript printers to print with
169 <application>CUPS</application>, you need to install
170 <xref linkend="gs"/> to convert PostScript to raster images
171 and a driver (e.g., from <xref linkend="gutenprint"/>) to convert
172 the resulting raster images to a form that the printer understands.
173 <ulink url="http://www.linuxprinting.org/foomatic.html">Foomatic</ulink>
174 drivers use Ghostscript to convert PostScript to a printable form directly,
175 but this is considered to be a hack by
176 <application>CUPS</application> developers.</para>
177
178 <sect3 role="kernel" id="cups-kernel">
179 <title>Kernel Configuration</title>
180
181 <para>To use your printer you will likely need the appropriate drivers
182 enabled in the kernel &mdash; for example, <quote>Parallel printer
183 support</quote> if you have a parallel port printer, or <quote>USB Printer
184 support</quote> for a USB printer.</para>
185
186 </sect3>
187
188 <sect3 id="cups-init">
189 <title>Boot Script</title>
190
191 <para>During the installation, <application>CUPS</application> added
192 startup files in <filename class="directory">/etc/rc.d</filename>.
193 These scripts will work in most cases, but will fail if you provide
194 printers to <application>Samba</application> clients. Additionally,
195 they are not consistent with standard LFS style scripts. Replace the
196 installed scripts with the scripts and symlinks included in the
197 <xref linkend="bootscripts"/> package:</para>
198
199 <indexterm zone="cups cups-init">
200 <primary sortas="f-cups">cups</primary>
201 </indexterm>
202
203<screen role="root"><userinput>make install-cups</userinput></screen>
204
205 </sect3>
206
207 </sect2>
208
209 <sect2 role="content">
210 <title>Contents</title>
211
212 <segmentedlist>
213 <segtitle>Installed Programs</segtitle>
214 <segtitle>Installed Libraries</segtitle>
215 <segtitle>Installed Directories</segtitle>
216
217 <seglistitem>
218 <seg>accept, cancel, cups-config, cupsaccept, cupsaddsmb, cupsctl,
219 cupsd, cupsdisable, cupsenable, cupsfilter, cupsreject, cupstestdsc,
220 cupstestppd, lp, lpadmin, lpc, lpinfo, lpmove, lpoptions, lppasswd,
221 lpq, lpr, lprm, lpstat, ppdc, ppdhtml, ppdi, ppdmerge, ppdpo, reject</seg>
222 <seg>libcups.{so,a}, libcupscgi.{so,a}, libcupsdriver.{so,a},
223 libcupsimage.{so,a}, libcupsmime.{so,a}, libcupsppdc.{so,a}, and
224 various filters and backend drivers</seg>
225 <seg>/etc/cups, /usr/include/cups, /usr/lib/cups, /usr/share/cups,
226 /usr/share/doc/cups-&cups-version;, and
227 /var/{cache,log,run,spool}/cups</seg>
228 </seglistitem>
229 </segmentedlist>
230
231 <variablelist>
232 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
233 <?dbfo list-presentation="list"?>
234 <?dbhtml list-presentation="table"?>
235
236 <varlistentry id="accept">
237 <term><command>accept</command></term>
238 <listitem>
239 <para>instructs the printing system to accept print jobs to the
240 specified destinations.</para>
241 <indexterm zone="cups accept">
242 <primary sortas="b-accept">accept</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="cancel-cups">
248 <term><command>cancel</command></term>
249 <listitem>
250 <para>cancels existing print jobs from the print queues.</para>
251 <indexterm zone="cups cancel-cups">
252 <primary sortas="b-cancel">cancel</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="cups-config">
258 <term><command>cups-config</command></term>
259 <listitem>
260 <para>is a <application>CUPS</application>
261 program configuration utility.</para>
262 <indexterm zone="cups cups-config">
263 <primary sortas="b-cups-config">cups-config</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="cupsaddsmb">
269 <term><command>cupsaddsmb</command></term>
270 <listitem>
271 <para>exports printers to the <application>Samba</application>
272 software for use with Windows clients.</para>
273 <indexterm zone="cups cupsaddsmb">
274 <primary sortas="b-cupsaddsmb">cupsaddsmb</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="cupsd">
280 <term><command>cupsd</command></term>
281 <listitem>
282 <para>is the scheduler for the Common Unix Printing System.</para>
283 <indexterm zone="cups cupsd">
284 <primary sortas="b-cupsd">cupsd</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="cupstestppd">
290 <term><command>cupstestppd</command></term>
291 <listitem>
292 <para>tests the conformance of PPD files.</para>
293 <indexterm zone="cups cupstestppd">
294 <primary sortas="b-cupstestppd">cupstestppd</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
298
299 <varlistentry id="disable">
300 <term><command>disable</command></term>
301 <listitem>
302 <para>stops the named printers or classes.</para>
303 <indexterm zone="cups disable">
304 <primary sortas="b-disable">disable</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 <varlistentry id="enable">
310 <term><command>enable</command></term>
311 <listitem>
312 <para>starts the named printers or classes.</para>
313 <indexterm zone="cups enable">
314 <primary sortas="b-enable">enable</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="lp-cups">
320 <term><command>lp</command></term>
321 <listitem>
322 <para>submits files for printing or alters a pending job.</para>
323 <indexterm zone="cups lp-cups">
324 <primary sortas="b-lp">lp</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="lpadmin">
330 <term><command>lpadmin</command></term>
331 <listitem>
332 <para>configures printer and class queues provided by
333 <application>CUPS</application>.</para>
334 <indexterm zone="cups lpadmin">
335 <primary sortas="b-lpadmin">lpadmin</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="lpc-cups">
341 <term><command>lpc</command></term>
342 <listitem>
343 <para> provides limited control over printer and class queues
344 provided by <application>CUPS</application>.</para>
345 <indexterm zone="cups lpc-cups">
346 <primary sortas="b-lpc">lpc</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="lpinfo">
352 <term><command>lpinfo</command></term>
353 <listitem>
354 <para>lists the available devices or drivers known to the
355 <application>CUPS</application> server.</para>
356 <indexterm zone="cups lpinfo">
357 <primary sortas="b-lpinfo">lpinfo</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
361
362 <varlistentry id="lpmove">
363 <term><command>lpmove</command></term>
364 <listitem>
365 <para>moves the specified job to a new destination.</para>
366 <indexterm zone="cups lpmove">
367 <primary sortas="b-lpmove">lpmove</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 <varlistentry id="lpoptions">
373 <term><command>lpoptions</command></term>
374 <listitem>
375 <para>displays or sets printer options and defaults.</para>
376 <indexterm zone="cups lpoptions">
377 <primary sortas="b-lpoptions">lpoptions</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
382 <varlistentry id="lppasswd">
383 <term><command>lppasswd</command></term>
384 <listitem>
385 <para>adds, changes or deletes passwords in the
386 <application>CUPS</application> digest password file
387 <filename>passwd.md5</filename>.</para>
388 <indexterm zone="cups lppasswd">
389 <primary sortas="b-lppasswd">lppasswd</primary>
390 </indexterm>
391 </listitem>
392 </varlistentry>
393
394 <varlistentry id="lpq-cups">
395 <term><command>lpq</command></term>
396 <listitem>
397 <para>shows the current print queue status on the named printer.</para>
398 <indexterm zone="cups lpq-cups">
399 <primary sortas="b-lpq">lpq</primary>
400 </indexterm>
401 </listitem>
402 </varlistentry>
403
404 <varlistentry id="lpr-cups">
405 <term><command>lpr</command></term>
406 <listitem>
407 <para>submits files for printing.</para>
408 <indexterm zone="cups lpr-cups">
409 <primary sortas="b-lpr">lpr</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 <varlistentry id="lprm-cups">
415 <term><command>lprm</command></term>
416 <listitem>
417 <para>cancels print jobs that have been queued for printing.</para>
418 <indexterm zone="cups lprm-cups">
419 <primary sortas="b-lprm">lprm</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
424 <varlistentry id="lpstat-cups">
425 <term><command>lpstat</command></term>
426 <listitem>
427 <para>displays status information about the current classes, jobs,
428 and printers.</para>
429 <indexterm zone="cups lpstat-cups">
430 <primary sortas="b-lpstat">lpstat</primary>
431 </indexterm>
432 </listitem>
433 </varlistentry>
434
435 <varlistentry id="reject">
436 <term><command>reject</command></term>
437 <listitem>
438 <para>instructs the printing system to reject print jobs to the
439 specified destinations.</para>
440 <indexterm zone="cups reject">
441 <primary sortas="b-reject">reject</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
445
446 </variablelist>
447
448 </sect2>
449
450</sect1>
Note: See TracBrowser for help on using the repository browser.