source: pst/printing/cups.xml@ 8250d8e

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 8250d8e was 8250d8e, checked in by Randy McMurchy <randy@…>, 17 years ago

Added new package Libgcrypt-1.2.4

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

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