source: pst/printing/cups.xml@ 3bf0374

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 3bf0374 was 3bf0374, checked in by DJ Lucas <dj@…>, 17 years ago

Updated cups download locations.

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

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