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