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