source: pst/printing/cups.xml@ 0af6ce1

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 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 0af6ce1 was 9f12e36, checked in by Randy McMurchy <randy@…>, 18 years ago

Removed 'keywordset' blocks and extra spaces from the XML files (note this was by accident as I meant to do just in the gnome directory but I was in the root of BOOK when I ran the script, but this was going to happen anyway so I don't think it is a big deal)

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

  • Property mode set to 100644
File size: 15.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 "4ce09b1dce09b6b9398af0daae9adf63">
10 <!ENTITY cups-size "8.7 MB">
11 <!ENTITY cups-buildsize "48 MB">
12 <!ENTITY cups-time "0.5 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>Recommended patch: <ulink
63 url="&patch-root;/cups-&cups-version;-testsuite_fix-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"/>,
72 and <xref linkend="libtiff"/></para>
73
74 <bridgehead renderas="sect4">Optional</bridgehead>
75 <para role="optional"><xref linkend="openssl"/> or
76 <ulink url="http://www.gnu.org/software/gnutls/">GnuTLS</ulink> (which needs
77 <ulink url="ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error/">
78 libgpg-error</ulink>,
79 <ulink url="ftp://ftp.gnupg.org/gcrypt/libgcrypt/">libgcrypt</ulink> and
80 <ulink url="ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/opencdk/">opencdk</ulink>,
81 in that order),
82 <xref linkend="linux-pam"/>,
83 <xref linkend="php"/>,
84 <xref linkend="python"/>,
85 <xref linkend="jdk"/>,
86 <ulink url="http://www.openslp.org/">OpenSLP</ulink>,
87 <ulink url="http://packages.debian.org/unstable/source/libpaper">
88 libpaper</ulink> and
89 <ulink url="http://valgrind.kde.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 install the
102 <command>lppasswd</command> command SUID to this user. Use the following
103 command as the <systemitem class="username">root</systemitem> user:</para>
104
105<screen role="root"><userinput>useradd -c "Print Service User" -d /dev/null -g lp -s /bin/false -u 9 lp</userinput></screen>
106
107 <para>If you utilize <application>Linux-PAM</application>, you need to
108 modify some files so <application>CUPS</application> can find needed headers.
109 Make the appropriate modifications using the following command:</para>
110
111<screen><userinput>sed -i -e "s@pam/pam@security/pam@g" \
112{config-scripts/cups-pam.m4,scheduler/auth.c,configure}</userinput></screen>
113
114 <para>If you plan on running the test suite, you should apply the patch
115 listed above to fix several issues in the test suite script. Note that if
116 you have the non-free <command>htmldoc</command> program installed, the
117 patch disables its use.</para>
118
119<screen><userinput>patch -Np1 -i ../cups-&cups-version;-testsuite_fix-1.patch</userinput></screen>
120
121 <para>Install <application>CUPS</application> by running the
122 following commands:</para>
123
124<screen><userinput>./configure &amp;&amp;
125make</userinput></screen>
126
127 <para>To test the results, issue: <command>make check</command>. Note that
128 the <quote>torture load testing</quote> test uses more resources than those
129 displayed in the prompt.</para>
130
131 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
132
133<screen role="root"><userinput>make install</userinput></screen>
134
135 </sect2>
136
137 <sect2 role="commands">
138 <title>Command Explanations</title>
139
140 <para>The basic default behavior of the installation is appropriate for
141 LFS systems. <application>CUPS</application> files are placed in
142 <filename class="directory">/usr/bin</filename>,
143 <filename class="directory">/usr/sbin</filename>,
144 <filename class="directory">/var</filename> and
145 <filename class="directory">/etc/cups</filename>.</para>
146
147 </sect2>
148
149 <sect2 role="configuration">
150 <title>Configuring CUPS</title>
151
152 <para>Configuration of <application>CUPS</application> is dependent on
153 the type of printer and can be complex. Generally, PostScript printers
154 are easier. For detailed instructions on configuration and use of
155 <application>CUPS</application>, see <ulink
156 url="http://www.cups.org/documentation.php"/>. The Software Administrators
157 Manual and Software Users Manual are particularly useful.</para>
158
159 <para>For non-PostScript printers to print with
160 <application>CUPS</application>, you need to install
161 <xref linkend="espgs"/> to convert PostScript to raster images
162 and a driver (e.g., from <xref linkend="gimp-print"/>) to convert
163 the resulting raster images to a form that the printer understands.
164 <ulink url="http://www.linuxprinting.org/foomatic.html">Foomatic</ulink>
165 drivers use Ghostscript to convert PostScript to a printable form directly,
166 but this is considered to be a hack by
167 <application>CUPS</application> developers.</para>
168
169 <sect3 id="cups-init">
170 <title>Boot Script</title>
171
172 <para>During the installation, <application>CUPS</application> added
173 startup files in <filename class="directory">/etc/rc.d</filename>.
174 These scripts will work in most cases, but will fail if you provide
175 printers to <application>Samba</application> clients. Additionally,
176 they are not consistent with standard LFS style scripts. Replace the
177 installed scripts with the scripts and symlinks included in the
178 <xref linkend="bootscripts"/> package:</para>
179
180 <indexterm zone="cups cups-init">
181 <primary sortas="f-cups">cups</primary>
182 </indexterm>
183
184<screen role="root"><userinput>make install-cups</userinput></screen>
185
186 </sect3>
187
188 </sect2>
189
190 <sect2 role="content">
191 <title>Contents</title>
192
193 <segmentedlist>
194 <segtitle>Installed Programs</segtitle>
195 <segtitle>Installed Libraries</segtitle>
196 <segtitle>Installed Directories</segtitle>
197
198 <seglistitem>
199 <seg>accept, cancel, cups-config, cupsaddsmb, cupsd, cupstestppd, disable,
200 enable, lp, lpadmin, lpc, lpinfo, lpmove, lpoptions, lppasswd, lpq, lpr,
201 lprm, lpstat, and reject</seg>
202 <seg>libcups.{so,a}, libcupsimage.{so,a}, and various filters and backend
203 drivers</seg>
204 <seg>/etc/cups, /usr/include/cups, /usr/lib/cups, /usr/share/doc/cups,
205 /usr/share/cups, /var/log/cups, and /var/spool/cups</seg>
206 </seglistitem>
207 </segmentedlist>
208
209 <variablelist>
210 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
211 <?dbfo list-presentation="list"?>
212 <?dbhtml list-presentation="table"?>
213
214 <varlistentry id="accept">
215 <term><command>accept</command></term>
216 <listitem>
217 <para>instructs the printing system to accept print jobs to the
218 specified destinations.</para>
219 <indexterm zone="cups accept">
220 <primary sortas="b-accept">accept</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="cancel-cups">
226 <term><command>cancel</command></term>
227 <listitem>
228 <para>cancels existing print jobs from the print queues.</para>
229 <indexterm zone="cups cancel-cups">
230 <primary sortas="b-cancel">cancel</primary>
231 </indexterm>
232 </listitem>
233 </varlistentry>
234
235 <varlistentry id="cups-config">
236 <term><command>cups-config</command></term>
237 <listitem>
238 <para>is a <application>CUPS</application>
239 program configuration utility.</para>
240 <indexterm zone="cups cups-config">
241 <primary sortas="b-cups-config">cups-config</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 <varlistentry id="cupsaddsmb">
247 <term><command>cupsaddsmb</command></term>
248 <listitem>
249 <para>exports printers to the <application>Samba</application>
250 software for use with Windows clients.</para>
251 <indexterm zone="cups cupsaddsmb">
252 <primary sortas="b-cupsaddsmb">cupsaddsmb</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="cupsd">
258 <term><command>cupsd</command></term>
259 <listitem>
260 <para>is the scheduler for the Common Unix Printing System.</para>
261 <indexterm zone="cups cupsd">
262 <primary sortas="b-cupsd">cupsd</primary>
263 </indexterm>
264 </listitem>
265 </varlistentry>
266
267 <varlistentry id="cupstestppd">
268 <term><command>cupstestppd</command></term>
269 <listitem>
270 <para>tests the conformance of PPD files.</para>
271 <indexterm zone="cups cupstestppd">
272 <primary sortas="b-cupstestppd">cupstestppd</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276
277 <varlistentry id="disable">
278 <term><command>disable</command></term>
279 <listitem>
280 <para>stops the named printers or classes.</para>
281 <indexterm zone="cups disable">
282 <primary sortas="b-disable">disable</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="enable">
288 <term><command>enable</command></term>
289 <listitem>
290 <para>starts the named printers or classes.</para>
291 <indexterm zone="cups enable">
292 <primary sortas="b-enable">enable</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="lp-cups">
298 <term><command>lp</command></term>
299 <listitem>
300 <para>submits files for printing or alters a pending job.</para>
301 <indexterm zone="cups lp-cups">
302 <primary sortas="b-lp">lp</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 <varlistentry id="lpadmin">
308 <term><command>lpadmin</command></term>
309 <listitem>
310 <para>configures printer and class queues provided by
311 <application>CUPS</application>.</para>
312 <indexterm zone="cups lpadmin">
313 <primary sortas="b-lpadmin">lpadmin</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 <varlistentry id="lpc-cups">
319 <term><command>lpc</command></term>
320 <listitem>
321 <para> provides limited control over printer and class queues
322 provided by <application>CUPS</application>.</para>
323 <indexterm zone="cups lpc-cups">
324 <primary sortas="b-lpc">lpc</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="lpinfo">
330 <term><command>lpinfo</command></term>
331 <listitem>
332 <para>lists the available devices or drivers known to the
333 <application>CUPS</application> server.</para>
334 <indexterm zone="cups lpinfo">
335 <primary sortas="b-lpinfo">lpinfo</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="lpmove">
341 <term><command>lpmove</command></term>
342 <listitem>
343 <para>moves the specified job to a new destination.</para>
344 <indexterm zone="cups lpmove">
345 <primary sortas="b-lpmove">lpmove</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
350 <varlistentry id="lpoptions">
351 <term><command>lpoptions</command></term>
352 <listitem>
353 <para>displays or sets printer options and defaults.</para>
354 <indexterm zone="cups lpoptions">
355 <primary sortas="b-lpoptions">lpoptions</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
359
360 <varlistentry id="lppasswd">
361 <term><command>lppasswd</command></term>
362 <listitem>
363 <para>adds, changes or deletes passwords in the
364 <application>CUPS</application> digest password file
365 <filename>passwd.md5</filename>.</para>
366 <indexterm zone="cups lppasswd">
367 <primary sortas="b-lppasswd">lppasswd</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 <varlistentry id="lpq-cups">
373 <term><command>lpq</command></term>
374 <listitem>
375 <para>shows the current print queue status on the named printer.</para>
376 <indexterm zone="cups lpq-cups">
377 <primary sortas="b-lpq">lpq</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
382 <varlistentry id="lpr-cups">
383 <term><command>lpr</command></term>
384 <listitem>
385 <para>submits files for printing.</para>
386 <indexterm zone="cups lpr-cups">
387 <primary sortas="b-lpr">lpr</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="lprm-cups">
393 <term><command>lprm</command></term>
394 <listitem>
395 <para>cancels print jobs that have been queued for printing.</para>
396 <indexterm zone="cups lprm-cups">
397 <primary sortas="b-lprm">lprm</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="lpstat-cups">
403 <term><command>lpstat</command></term>
404 <listitem>
405 <para>displays status information about the current classes, jobs,
406 and printers.</para>
407 <indexterm zone="cups lpstat-cups">
408 <primary sortas="b-lpstat">lpstat</primary>
409 </indexterm>
410 </listitem>
411 </varlistentry>
412
413 <varlistentry id="reject">
414 <term><command>reject</command></term>
415 <listitem>
416 <para>instructs the printing system to reject print jobs to the
417 specified destinations.</para>
418 <indexterm zone="cups reject">
419 <primary sortas="b-reject">reject</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
424 </variablelist>
425
426 </sect2>
427
428</sect1>
Note: See TracBrowser for help on using the repository browser.