source: pst/printing/cups.xml@ 86af98a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 86af98a was 86af98a, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Updated trunk sources to use DocBook DTD XML 4.4

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

  • Property mode set to 100644
File size: 9.3 KB
Line 
1<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
2 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../../general.ent">
4 %general-entities;
5
6 <!ENTITY cups-download-http "http://ftp.easysw.com/pub/cups/&cups-version;/cups-&cups-version;-source.tar.bz2">
7 <!ENTITY cups-download-ftp "ftp://ftp.easysw.com/pub/cups/&cups-version;/cups-&cups-version;-source.tar.bz2">
8 <!ENTITY cups-md5sum "4ce09b1dce09b6b9398af0daae9adf63">
9 <!ENTITY cups-size "8.7 MB">
10 <!ENTITY cups-buildsize "46 MB">
11 <!ENTITY cups-time "0.54 SBU (additional 69 SBU to run full test suite)">
12]>
13
14<sect1 id="cups" xreflabel="CUPS-&cups-version;">
15<sect1info>
16<othername>$LastChangedBy$</othername>
17<date>$Date$</date>
18</sect1info>
19<?dbhtml filename="cups.html"?>
20<title>CUPS-&cups-version;</title>
21
22<sect2>
23<title>Introduction to
24<application><acronym>CUPS</acronym></application></title>
25
26<para>The Common Unix Printing System (<acronym>CUPS</acronym>) is a print
27spooler and associated utilities. It is based on the "Internet Printing
28Protocol" and provides printing services to most PostScript and raster
29printers.</para>
30
31<sect3><title>Package information</title>
32<itemizedlist spacing='compact'>
33<listitem><para>Download (HTTP):
34<ulink url="&cups-download-http;"/></para></listitem>
35<listitem><para>Download (FTP):
36<ulink url="&cups-download-ftp;"/></para></listitem>
37<listitem><para>Download MD5 sum: &cups-md5sum;</para></listitem>
38<listitem><para>Download size: &cups-size;</para></listitem>
39<listitem><para>Estimated disk space required:
40&cups-buildsize;</para></listitem>
41<listitem><para>Estimated build time:
42&cups-time;</para></listitem></itemizedlist>
43</sect3>
44
45<sect3><title><application><acronym>CUPS</acronym></application>
46dependencies</title>
47<sect4><title>Recommended</title>
48<para><xref linkend="libjpeg"/>,
49<xref linkend="libpng"/>,
50and <xref linkend="libtiff"/></para>
51</sect4>
52
53<sect4><title>Optional</title>
54<para><xref linkend="openssl"/> or
55<ulink url="http://www.gnu.org/software/gnutls/">GnuTLS</ulink> (which needs
56<ulink url="ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error/">
57libgpg-error</ulink>,
58<ulink url="ftp://ftp.gnupg.org/gcrypt/libgcrypt/">libgcrypt</ulink> and
59<ulink url="ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/opencdk/">opencdk</ulink>,
60in that order),
61<xref linkend="Linux_PAM"/>,
62<xref linkend="php"/>,
63<xref linkend="python"/>,
64<xref linkend="j2sdk"/>,
65<ulink url="http://www.openslp.org/">OpenSLP</ulink>,
66<ulink url="http://packages.debian.org/unstable/source/libpaper">
67libpaper</ulink> and
68<ulink url="http://valgrind.kde.org/">Valgrind</ulink> (optionally used if
69running the test suites)</para>
70</sect4>
71</sect3>
72
73</sect2>
74
75<sect2>
76<title>Installation of
77<application><acronym>CUPS</acronym></application></title>
78
79<para>Create an 'lp' user, as
80<application><acronym>CUPS</acronym></application> will install the
81<command>lppasswd</command> command <acronym>SUID</acronym> to this user. Use
82the following command as the root user:</para>
83
84<screen><userinput role='root'><command>useradd -c "Print Service User" -d /dev/null -g lp -s /bin/false lp</command></userinput></screen>
85
86<para>If you utilize <application>Linux-<acronym>PAM</acronym></application>,
87you need to modify some files so
88<application><acronym>CUPS</acronym></application> can find needed headers.
89Make the appropriate modifications using the following command:</para>
90
91<screen><userinput><command>sed -i -e "s@pam/pam@security/pam@g" \
92{config-scripts/cups-pam.m4,scheduler/auth.c,configure}</command></userinput></screen>
93
94<para>Install <application><acronym>CUPS</acronym></application> by
95running the following commands:</para>
96
97<screen><userinput><command>./configure &amp;&amp;
98make &amp;&amp;
99make install</command></userinput></screen>
100
101</sect2>
102
103<sect2>
104<title>Command explanations</title>
105
106<para>The basic default behavior of the installation is appropriate for
107<acronym>LFS</acronym> systems. <application><acronym>CUPS</acronym>
108</application> files are placed in
109<filename class="directory">/usr/bin</filename>,
110<filename class="directory">/usr/sbin</filename>,
111<filename class="directory">/var</filename> and
112<filename class="directory">/etc/cups</filename>.</para>
113
114</sect2>
115
116<sect2>
117<title>Configuring <application><acronym>CUPS</acronym></application></title>
118
119<para>Configuration of <application><acronym>CUPS</acronym></application> is
120dependent on the type of printer and can be complex. Generally, PostScript
121printers are easier. For detailed instructions on configuration and use of
122<application><acronym>CUPS</acronym></application>, see
123<ulink url="http://www.cups.org/documentation.php"/>. The Software
124Administrators Manual and Software Users Manual are particularly useful.</para>
125
126<para>For non-PostScript printers to print with
127<application><acronym>CUPS</acronym></application>, you need to install
128<xref linkend="espgs"/> to convert PostScript to raster images
129and a driver (e.g., from <xref linkend="gimp-print"/>) to convert
130the resulting raster images to a form that the printer understands.
131<ulink url="http://www.linuxprinting.org/foomatic.html">Foomatic</ulink>
132drivers use Ghostscript to convert PostScript to a printable form directly, but
133this is considered to be a hack by
134<application><acronym>CUPS</acronym></application> developers.</para>
135
136<para>During the install, <application><acronym>CUPS</acronym></application>
137created the startup file <command>/etc/rc.d/init.d/cups</command>. The file
138works, but you may want to change it to a more conventional
139<acronym>LFS</acronym> startup file by installing the script included in the
140<xref linkend="intro-important-bootscripts"/> package:</para>
141
142<screen><userinput><command>make install-cups</command></userinput></screen>
143
144</sect2>
145
146<sect2>
147<title>Contents</title>
148
149<para><application><acronym>CUPS</acronym></application> provides
150<command>accept</command>,
151<command>cupsaddsmb</command>,
152<command>cupsd</command>,
153<command>cupstestppd</command>,
154<command>lpadmin</command>,
155<command>lpc</command>,
156<command>lpinfo</command>,
157<command>lpmove</command>,
158<command>reject</command>,
159<command>cancel</command>,
160<command>cups-config</command>,
161<command>disable</command>,
162<command>enable</command>,
163<command>lp</command>,
164<command>lpoptions</command>,
165<command>lppasswd</command>,
166<command>lpq</command>,
167<command>lpr</command>,
168<command>lprm</command>,
169<command>lpstat</command>,
170<filename class="libraryfile">libcups</filename>,
171<filename class="libraryfile">libcupsimage</filename> and various
172scripts and filters.</para>
173
174<sect3><title>lpc</title>
175<para><command>lpc</command> provides limited control over printer
176and class queues provided by <application><acronym>CUPS</acronym>
177</application>.
178</para></sect3>
179
180<sect3><title>cupsd</title>
181<para><command>cupsd</command> is the scheduler for the Common Unix Printing
182System.
183</para></sect3>
184
185<sect3><title>accept</title>
186<para><command>accept</command> instructs the printing system to accept print
187jobs to the specified destinations.
188</para></sect3>
189
190<sect3><title>reject</title>
191<para><command>reject</command> instructs the printing system to
192reject print jobs to the specified destinations.
193</para></sect3>
194
195<sect3><title>cupsaddsmb</title>
196<para><command>cupsaddsmb</command> exports printers to the SAMBA software for
197use with Windows clients.
198</para></sect3>
199
200<sect3><title>lpadmin</title>
201<para><command>lpadmin</command> configures printer and class queues provided
202by <acronym>CUPS</acronym>.
203</para></sect3>
204
205<sect3><title>lpinfo</title>
206<para><command>lpinfo</command> lists the available devices or drivers known to
207the <acronym>CUPS</acronym> server.
208</para></sect3>
209
210<sect3><title>lpmove</title>
211<para><command>lpmove</command> moves the specified job to a new destination.
212</para></sect3>
213
214<sect3><title>cupstestppd</title>
215<para><command>cupstestppd</command> tests the conformance of
216<filename>PPD</filename> files.
217</para></sect3>
218
219<sect3><title>lpq</title>
220<para><command>lpq</command> shows the current print queue status on the named
221printer.
222</para></sect3>
223
224<sect3><title>lpr</title>
225<para><command>lpr</command> submits files for printing.
226</para></sect3>
227
228<sect3><title>lprm</title>
229<para><command>lprm</command> cancels print jobs that have been queued for
230printing.
231</para></sect3>
232
233<sect3><title>cancel</title>
234<para><command>cancel</command> cancels existing print jobs.
235</para></sect3>
236
237<sect3><title>disable</title>
238<para><command>disable</command> stops the named printers or classes.
239</para></sect3>
240
241<sect3><title>enable</title>
242<para><command>enable</command> starts the named printers or classes.
243</para></sect3>
244
245<sect3><title>lp</title>
246<para><command>lp</command> submits files for printing or alters a pending job.
247</para></sect3>
248
249<sect3><title>lpoptions</title>
250<para><command>lpoptions</command> displays or sets printer options and
251defaults.
252</para></sect3>
253
254<sect3><title>lpstat</title>
255<para><command>lpstat</command> displays status information about the
256current classes, jobs, and printers.</para></sect3>
257
258<sect3><title>lppasswd</title>
259<para><command>lppasswd</command> adds, changes or deletes passwords in
260the <application><acronym>CUPS</acronym></application> digest password file
261<filename>passwd.md5</filename>.
262</para></sect3>
263
264<sect3><title>cups-config</title>
265<para><command>cups-config</command> is the <application><acronym>CUPS
266</acronym></application> program configuration utility.
267</para></sect3>
268
269</sect2>
270
271</sect1>
Note: See TracBrowser for help on using the repository browser.