[cd8a01b8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[73ddd1a0] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[1da819b] | 6 |
|
---|
[00b6675] | 7 | <!ENTITY cups-download-http "http://ftp.easysw.com/pub/cups/&cups-version;/cups-&cups-version;-source.tar.bz2">
|
---|
[73ddd1a0] | 8 | <!ENTITY cups-download-ftp "ftp://ftp.easysw.com/pub/cups/&cups-version;/cups-&cups-version;-source.tar.bz2">
|
---|
[6760e56] | 9 | <!ENTITY cups-md5sum "4ce09b1dce09b6b9398af0daae9adf63">
|
---|
| 10 | <!ENTITY cups-size "8.7 MB">
|
---|
[298ebb8] | 11 | <!ENTITY cups-buildsize "48 MB">
|
---|
| 12 | <!ENTITY cups-time "0.52 SBU (additional 69 SBU to run full test suite)">
|
---|
[73ddd1a0] | 13 | ]>
|
---|
| 14 |
|
---|
[781a3e82] | 15 | <sect1 id="cups" xreflabel="CUPS-&cups-version;">
|
---|
[536fac5] | 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 |
|
---|
[b29ed97c] | 59 | <bridgehead renderas="sect3">CUPS Dependencies</bridgehead>
|
---|
[536fac5] | 60 |
|
---|
| 61 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 62 | <para><xref linkend="libjpeg"/>,
|
---|
| 63 | <xref linkend="libpng"/>,
|
---|
| 64 | and <xref linkend="libtiff"/></para>
|
---|
| 65 |
|
---|
| 66 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 67 | <para><xref linkend="openssl"/> or
|
---|
| 68 | <ulink url="http://www.gnu.org/software/gnutls/">GnuTLS</ulink> (which needs
|
---|
| 69 | <ulink url="ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error/">
|
---|
| 70 | libgpg-error</ulink>,
|
---|
| 71 | <ulink url="ftp://ftp.gnupg.org/gcrypt/libgcrypt/">libgcrypt</ulink> and
|
---|
| 72 | <ulink url="ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/opencdk/">opencdk</ulink>,
|
---|
| 73 | in that order),
|
---|
| 74 | <xref linkend="Linux_PAM"/>,
|
---|
| 75 | <xref linkend="php"/>,
|
---|
| 76 | <xref linkend="python"/>,
|
---|
| 77 | <xref linkend="jdk"/>,
|
---|
| 78 | <ulink url="http://www.openslp.org/">OpenSLP</ulink>,
|
---|
| 79 | <ulink url="http://packages.debian.org/unstable/source/libpaper">
|
---|
| 80 | libpaper</ulink> and
|
---|
| 81 | <ulink url="http://valgrind.kde.org/">Valgrind</ulink> (optionally used if
|
---|
| 82 | running the test suites)</para>
|
---|
| 83 |
|
---|
| 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2 role="installation">
|
---|
| 87 | <title>Installation of CUPS</title>
|
---|
| 88 |
|
---|
| 89 | <para>Create an <systemitem class="username">lp</systemitem> user, as
|
---|
| 90 | <application>CUPS</application> will install the
|
---|
| 91 | <command>lppasswd</command> command SUID to this user. Use the following
|
---|
| 92 | command as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 93 |
|
---|
| 94 | <screen role="root"><userinput>useradd -c "Print Service User" -d /dev/null -g lp -s /bin/false lp</userinput></screen>
|
---|
| 95 |
|
---|
| 96 | <para>If you utilize <application>Linux-PAM</application>, you need to
|
---|
| 97 | modify some files so <application>CUPS</application> can find needed headers.
|
---|
| 98 | Make the appropriate modifications using the following command:</para>
|
---|
| 99 |
|
---|
| 100 | <screen><userinput>sed -i -e "s@pam/pam@security/pam@g" \
|
---|
| 101 | {config-scripts/cups-pam.m4,scheduler/auth.c,configure}</userinput></screen>
|
---|
| 102 |
|
---|
| 103 | <para>Install <application>CUPS</application> by running the
|
---|
| 104 | following commands:</para>
|
---|
| 105 |
|
---|
| 106 | <screen><userinput>./configure &&
|
---|
| 107 | make</userinput></screen>
|
---|
| 108 |
|
---|
| 109 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 110 |
|
---|
| 111 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 112 |
|
---|
| 113 | </sect2>
|
---|
| 114 |
|
---|
| 115 | <sect2 role="commands">
|
---|
| 116 | <title>Command Explanations</title>
|
---|
| 117 |
|
---|
| 118 | <para>The basic default behavior of the installation is appropriate for
|
---|
| 119 | LFS systems. <application>CUPS</application> files are placed in
|
---|
| 120 | <filename class="directory">/usr/bin</filename>,
|
---|
| 121 | <filename class="directory">/usr/sbin</filename>,
|
---|
| 122 | <filename class="directory">/var</filename> and
|
---|
| 123 | <filename class="directory">/etc/cups</filename>.</para>
|
---|
| 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="configuration">
|
---|
| 128 | <title>Configuring CUPS</title>
|
---|
| 129 |
|
---|
| 130 | <para>Configuration of <application>CUPS</application> is dependent on
|
---|
| 131 | the type of printer and can be complex. Generally, PostScript printers
|
---|
| 132 | are easier. For detailed instructions on configuration and use of
|
---|
| 133 | <application>CUPS</application>, see <ulink
|
---|
| 134 | url="http://www.cups.org/documentation.php"/>. The Software Administrators
|
---|
| 135 | Manual and Software Users Manual are particularly useful.</para>
|
---|
| 136 |
|
---|
| 137 | <para>For non-PostScript printers to print with
|
---|
| 138 | <application>CUPS</application>, you need to install
|
---|
| 139 | <xref linkend="espgs"/> to convert PostScript to raster images
|
---|
| 140 | and a driver (e.g., from <xref linkend="gimp-print"/>) to convert
|
---|
| 141 | the resulting raster images to a form that the printer understands.
|
---|
| 142 | <ulink url="http://www.linuxprinting.org/foomatic.html">Foomatic</ulink>
|
---|
| 143 | drivers use Ghostscript to convert PostScript to a printable form directly,
|
---|
| 144 | but this is considered to be a hack by
|
---|
| 145 | <application>CUPS</application> developers.</para>
|
---|
| 146 |
|
---|
| 147 | <sect3 id="cups-init">
|
---|
| 148 | <title>Boot Script</title>
|
---|
| 149 |
|
---|
| 150 | <para>During the install, <application>CUPS</application> created
|
---|
| 151 | the startup file <command>/etc/rc.d/init.d/cups</command>. The file
|
---|
| 152 | works, but you may want to change it to a more conventional
|
---|
| 153 | LFS startup file by installing the script included in the
|
---|
| 154 | <xref linkend="intro-important-bootscripts"/> package:</para>
|
---|
| 155 |
|
---|
| 156 | <indexterm zone="cups cups-init">
|
---|
| 157 | <primary sortas="f-cups">cups</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 |
|
---|
| 160 | <screen role="root"><userinput>make install-cups</userinput></screen>
|
---|
| 161 |
|
---|
| 162 | </sect3>
|
---|
| 163 |
|
---|
| 164 | </sect2>
|
---|
| 165 |
|
---|
| 166 | <sect2 role="content">
|
---|
| 167 | <title>Contents</title>
|
---|
| 168 |
|
---|
| 169 | <segmentedlist>
|
---|
| 170 | <segtitle>Installed Programs</segtitle>
|
---|
| 171 | <segtitle>Installed Libraries</segtitle>
|
---|
| 172 | <segtitle>Installed Directories</segtitle>
|
---|
| 173 |
|
---|
| 174 | <seglistitem>
|
---|
| 175 | <seg>accept, cancel, cups-config, cupsaddsmb, cupsd, cupstestppd, disable,
|
---|
| 176 | enable, lp, lpadmin, lpc, lpinfo, lpmove, lpoptions, lppasswd, lpq, lpr,
|
---|
| 177 | lprm, lpstat, and reject</seg>
|
---|
| 178 | <seg>libcups.[so,a], libcupsimage.[so,a], and various filters and backend
|
---|
| 179 | drivers</seg>
|
---|
| 180 | <seg>/etc/cups, /usr/include/cups, /usr/lib/cups, /usr/share/doc/cups,
|
---|
| 181 | /usr/share/cups, /var/log/cups, and /var/spool/cups</seg>
|
---|
| 182 | </seglistitem>
|
---|
| 183 | </segmentedlist>
|
---|
| 184 |
|
---|
| 185 | <variablelist>
|
---|
| 186 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 187 | <?dbfo list-presentation="list"?>
|
---|
| 188 | <?dbhtml list-presentation="table"?>
|
---|
| 189 |
|
---|
| 190 | <varlistentry id="accept">
|
---|
| 191 | <term><command>accept</command></term>
|
---|
| 192 | <listitem>
|
---|
| 193 | <para>instructs the printing system to accept print jobs to the
|
---|
| 194 | specified destinations.</para>
|
---|
| 195 | <indexterm zone="cups accept">
|
---|
| 196 | <primary sortas="b-accept">accept</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
| 201 | <varlistentry id="cancel-cups">
|
---|
| 202 | <term><command>cancel</command></term>
|
---|
| 203 | <listitem>
|
---|
| 204 | <para>cancels existing print jobs from the print queues.</para>
|
---|
| 205 | <indexterm zone="cups cancel-cups">
|
---|
| 206 | <primary sortas="b-cancel">cancel</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
| 210 |
|
---|
| 211 | <varlistentry id="cups-config">
|
---|
| 212 | <term><command>cups-config</command></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>is a <application>CUPS</application>
|
---|
| 215 | program configuration utility.</para>
|
---|
| 216 | <indexterm zone="cups cups-config">
|
---|
| 217 | <primary sortas="b-cups-config">cups-config</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="cupsaddsmb">
|
---|
| 223 | <term><command>cupsaddsmb</command></term>
|
---|
| 224 | <listitem>
|
---|
| 225 | <para>exports printers to the <application>Samba</application>
|
---|
| 226 | software for use with Windows clients.</para>
|
---|
| 227 | <indexterm zone="cups cupsaddsmb">
|
---|
| 228 | <primary sortas="b-cupsaddsmb">cupsaddsmb</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 |
|
---|
| 233 | <varlistentry id="cupsd">
|
---|
| 234 | <term><command>cupsd</command></term>
|
---|
| 235 | <listitem>
|
---|
| 236 | <para>is the scheduler for the Common Unix Printing System.</para>
|
---|
| 237 | <indexterm zone="cups cupsd">
|
---|
| 238 | <primary sortas="b-cupsd">cupsd</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
| 242 |
|
---|
| 243 | <varlistentry id="cupstestppd">
|
---|
| 244 | <term><command>cupstestppd</command></term>
|
---|
| 245 | <listitem>
|
---|
| 246 | <para>tests the conformance of PPD files.</para>
|
---|
| 247 | <indexterm zone="cups cupstestppd">
|
---|
| 248 | <primary sortas="b-cupstestppd">cupstestppd</primary>
|
---|
| 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
| 252 |
|
---|
| 253 | <varlistentry id="disable">
|
---|
| 254 | <term><command>disable</command></term>
|
---|
| 255 | <listitem>
|
---|
| 256 | <para>stops the named printers or classes.</para>
|
---|
| 257 | <indexterm zone="cups disable">
|
---|
| 258 | <primary sortas="b-disable">disable</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
| 262 |
|
---|
| 263 | <varlistentry id="enable">
|
---|
| 264 | <term><command>enable</command></term>
|
---|
| 265 | <listitem>
|
---|
| 266 | <para>starts the named printers or classes.</para>
|
---|
| 267 | <indexterm zone="cups enable">
|
---|
| 268 | <primary sortas="b-enable">enable</primary>
|
---|
| 269 | </indexterm>
|
---|
| 270 | </listitem>
|
---|
| 271 | </varlistentry>
|
---|
| 272 |
|
---|
| 273 | <varlistentry id="lp-cups">
|
---|
| 274 | <term><command>lp</command></term>
|
---|
| 275 | <listitem>
|
---|
| 276 | <para>submits files for printing or alters a pending job.</para>
|
---|
| 277 | <indexterm zone="cups lp-cups">
|
---|
| 278 | <primary sortas="b-lp">lp</primary>
|
---|
| 279 | </indexterm>
|
---|
| 280 | </listitem>
|
---|
| 281 | </varlistentry>
|
---|
| 282 |
|
---|
| 283 | <varlistentry id="lpadmin">
|
---|
| 284 | <term><command>lpadmin</command></term>
|
---|
| 285 | <listitem>
|
---|
| 286 | <para>configures printer and class queues provided by
|
---|
| 287 | <application>CUPS</application>.</para>
|
---|
| 288 | <indexterm zone="cups lpadmin">
|
---|
| 289 | <primary sortas="b-lpadmin">lpadmin</primary>
|
---|
| 290 | </indexterm>
|
---|
| 291 | </listitem>
|
---|
| 292 | </varlistentry>
|
---|
| 293 |
|
---|
| 294 | <varlistentry id="lpc-cups">
|
---|
| 295 | <term><command>lpc</command></term>
|
---|
| 296 | <listitem>
|
---|
| 297 | <para> provides limited control over printer and class queues
|
---|
| 298 | provided by <application>CUPS</application>.</para>
|
---|
| 299 | <indexterm zone="cups lpc-cups">
|
---|
| 300 | <primary sortas="b-lpc">lpc</primary>
|
---|
| 301 | </indexterm>
|
---|
| 302 | </listitem>
|
---|
| 303 | </varlistentry>
|
---|
| 304 |
|
---|
| 305 | <varlistentry id="lpinfo">
|
---|
| 306 | <term><command>lpinfo</command></term>
|
---|
| 307 | <listitem>
|
---|
| 308 | <para>lists the available devices or drivers known to the
|
---|
| 309 | <application>CUPS</application> server.</para>
|
---|
| 310 | <indexterm zone="cups lpinfo">
|
---|
| 311 | <primary sortas="b-lpinfo">lpinfo</primary>
|
---|
| 312 | </indexterm>
|
---|
| 313 | </listitem>
|
---|
| 314 | </varlistentry>
|
---|
| 315 |
|
---|
| 316 | <varlistentry id="lpmove">
|
---|
| 317 | <term><command>lpmove</command></term>
|
---|
| 318 | <listitem>
|
---|
| 319 | <para>moves the specified job to a new destination.</para>
|
---|
| 320 | <indexterm zone="cups lpmove">
|
---|
| 321 | <primary sortas="b-lpmove">lpmove</primary>
|
---|
| 322 | </indexterm>
|
---|
| 323 | </listitem>
|
---|
| 324 | </varlistentry>
|
---|
| 325 |
|
---|
| 326 | <varlistentry id="lpoptions">
|
---|
| 327 | <term><command>lpoptions</command></term>
|
---|
| 328 | <listitem>
|
---|
| 329 | <para>displays or sets printer options and defaults.</para>
|
---|
| 330 | <indexterm zone="cups lpoptions">
|
---|
| 331 | <primary sortas="b-lpoptions">lpoptions</primary>
|
---|
| 332 | </indexterm>
|
---|
| 333 | </listitem>
|
---|
| 334 | </varlistentry>
|
---|
| 335 |
|
---|
| 336 | <varlistentry id="lppasswd">
|
---|
| 337 | <term><command>lppasswd</command></term>
|
---|
| 338 | <listitem>
|
---|
| 339 | <para>adds, changes or deletes passwords in the
|
---|
| 340 | <application>CUPS</application> digest password file
|
---|
| 341 | <filename>passwd.md5</filename>.</para>
|
---|
| 342 | <indexterm zone="cups lppasswd">
|
---|
| 343 | <primary sortas="b-lppasswd">lppasswd</primary>
|
---|
| 344 | </indexterm>
|
---|
| 345 | </listitem>
|
---|
| 346 | </varlistentry>
|
---|
| 347 |
|
---|
| 348 | <varlistentry id="lpq-cups">
|
---|
| 349 | <term><command>lpq</command></term>
|
---|
| 350 | <listitem>
|
---|
| 351 | <para>shows the current print queue status on the named printer.</para>
|
---|
| 352 | <indexterm zone="cups lpq-cups">
|
---|
| 353 | <primary sortas="b-lpq">lpq</primary>
|
---|
| 354 | </indexterm>
|
---|
| 355 | </listitem>
|
---|
| 356 | </varlistentry>
|
---|
| 357 |
|
---|
| 358 | <varlistentry id="lpr-cups">
|
---|
| 359 | <term><command>lpr</command></term>
|
---|
| 360 | <listitem>
|
---|
| 361 | <para>submits files for printing.</para>
|
---|
| 362 | <indexterm zone="cups lpr-cups">
|
---|
| 363 | <primary sortas="b-lpr">lpr</primary>
|
---|
| 364 | </indexterm>
|
---|
| 365 | </listitem>
|
---|
| 366 | </varlistentry>
|
---|
| 367 |
|
---|
| 368 | <varlistentry id="lprm-cups">
|
---|
| 369 | <term><command>lprm</command></term>
|
---|
| 370 | <listitem>
|
---|
| 371 | <para>cancels print jobs that have been queued for printing.</para>
|
---|
| 372 | <indexterm zone="cups lprm-cups">
|
---|
| 373 | <primary sortas="b-lprm">lprm</primary>
|
---|
| 374 | </indexterm>
|
---|
| 375 | </listitem>
|
---|
| 376 | </varlistentry>
|
---|
| 377 |
|
---|
| 378 | <varlistentry id="lpstat-cups">
|
---|
| 379 | <term><command>lpstat</command></term>
|
---|
| 380 | <listitem>
|
---|
| 381 | <para>displays status information about the current classes, jobs,
|
---|
| 382 | and printers.</para>
|
---|
| 383 | <indexterm zone="cups lpstat-cups">
|
---|
| 384 | <primary sortas="b-lpstat">lpstat</primary>
|
---|
| 385 | </indexterm>
|
---|
| 386 | </listitem>
|
---|
| 387 | </varlistentry>
|
---|
| 388 |
|
---|
| 389 | <varlistentry id="reject">
|
---|
| 390 | <term><command>reject</command></term>
|
---|
| 391 | <listitem>
|
---|
| 392 | <para>instructs the printing system to reject print jobs to the
|
---|
| 393 | specified destinations.</para>
|
---|
| 394 | <indexterm zone="cups reject">
|
---|
| 395 | <primary sortas="b-reject">reject</primary>
|
---|
| 396 | </indexterm>
|
---|
| 397 | </listitem>
|
---|
| 398 | </varlistentry>
|
---|
| 399 |
|
---|
| 400 | </variablelist>
|
---|
| 401 |
|
---|
| 402 | </sect2>
|
---|
[c78533e] | 403 |
|
---|
| 404 | </sect1>
|
---|