[cd8a01b8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[73ddd1a0] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[1da819b] | 6 |
|
---|
[5ddee7fb] | 7 | <!ENTITY cups-download-http "http://www.cups.org/software/&cups-version;/cups-&cups-version;-source.tar.bz2">
|
---|
| 8 | <!ENTITY cups-download-ftp " ">
|
---|
[53debf3] | 9 | <!ENTITY cups-md5sum "7f7c33071035fb20d0879929a42da711">
|
---|
[95a4ee3] | 10 | <!ENTITY cups-size "8.4 MB">
|
---|
[5618cdc] | 11 | <!ENTITY cups-buildsize "60 MB (additional 28 MB for the tests)">
|
---|
| 12 | <!ENTITY cups-time "0.5 SBU (additional 4.4 SBU for the tests)">
|
---|
[73ddd1a0] | 13 | ]>
|
---|
| 14 |
|
---|
[47dc0bf] | 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 |
|
---|
[47dc0bf] | 23 | <title>Cups-&cups-version;</title>
|
---|
[536fac5] | 24 |
|
---|
| 25 | <indexterm zone="cups">
|
---|
[47dc0bf] | 26 | <primary sortas="a-Cups">Cups</primary>
|
---|
[536fac5] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[47dc0bf] | 30 | <title>Introduction to Cups</title>
|
---|
[536fac5] | 31 |
|
---|
[89475857] | 32 | <para>
|
---|
| 33 | The Common Unix Printing System (CUPS) is a print spooler and
|
---|
| 34 | associated utilities. It is based on the "Internet Printing
|
---|
| 35 | Protocol" and provides printing services to most PostScript
|
---|
| 36 | and raster printers.
|
---|
| 37 | </para>
|
---|
[536fac5] | 38 |
|
---|
[8c1b9f7] | 39 | &lfs76_checked;
|
---|
[14d01d8] | 40 |
|
---|
[536fac5] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[89475857] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&cups-download-http;"/>
|
---|
| 46 | </para>
|
---|
[536fac5] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[89475857] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&cups-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[536fac5] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[89475857] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &cups-md5sum;
|
---|
| 56 | </para>
|
---|
[536fac5] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[89475857] | 59 | <para>
|
---|
| 60 | Download size: &cups-size;
|
---|
| 61 | </para>
|
---|
[536fac5] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[89475857] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &cups-buildsize;
|
---|
| 66 | </para>
|
---|
[536fac5] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[89475857] | 69 | <para>
|
---|
| 70 | Estimated build time: &cups-time;
|
---|
| 71 | </para>
|
---|
[536fac5] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
[852554e1] | 74 |
|
---|
[47dc0bf] | 75 | <bridgehead renderas="sect3">Cups Dependencies</bridgehead>
|
---|
[536fac5] | 76 |
|
---|
[53debf3] | 77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 78 | <para role="required">
|
---|
| 79 | <xref linkend="gnutls"/>
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
[536fac5] | 82 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[14d01d8] | 83 | <para role="recommended">
|
---|
[54666831] | 84 | <xref linkend="colord"/>,
|
---|
| 85 | <xref linkend="dbus"/>, and
|
---|
[89475857] | 86 | <xref linkend="libusb"/>
|
---|
[14d01d8] | 87 | </para>
|
---|
[536fac5] | 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[bc6e56d] | 90 | <para role="optional">
|
---|
[5e7d3013] | 91 | <xref linkend="avahi"/>,
|
---|
[1ecdb18] | 92 | <xref linkend="libpaper"/>,
|
---|
[14d01d8] | 93 | <xref linkend="linux-pam"/>,
|
---|
[89475857] | 94 | <xref linkend="mitkrb"/>,
|
---|
| 95 | <xref linkend="openjdk"/>,
|
---|
[14d01d8] | 96 | <xref linkend="php"/>,
|
---|
[1ecdb18] | 97 | <xref linkend="python2"/>, and
|
---|
| 98 | <xref linkend="xdg-utils"/>
|
---|
[5f83175] | 99 |
|
---|
[14d01d8] | 100 | </para>
|
---|
[536fac5] | 101 |
|
---|
[5f83175] | 102 | <bridgehead renderas="sect4">Required (Postinstall)</bridgehead>
|
---|
[f28636c] | 103 | <para role="required runtime">
|
---|
[dcbd2c6] | 104 | <xref linkend="cups-filters"/>
|
---|
| 105 | </para>
|
---|
| 106 |
|
---|
[5f83175] | 107 | <bridgehead renderas="sect4">Optional (Postinstall)</bridgehead>
|
---|
| 108 | <para role="optional runtime">
|
---|
| 109 | <xref linkend="gutenprint"/> and
|
---|
| 110 | <ulink url="http://hplipopensource.com/hplip-web/index.html">hplip</ulink> (HP printers)
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
[977061b0] | 113 | <para condition="html" role="usernotes">User Notes:
|
---|
[89475857] | 114 | <ulink url="&blfs-wiki;/cups"/>
|
---|
| 115 | </para>
|
---|
[536fac5] | 116 | </sect2>
|
---|
| 117 |
|
---|
[47dc0bf] | 118 | <sect2 role="kernel" id="cups-kernel">
|
---|
| 119 | <title>Kernel Configuration</title>
|
---|
| 120 |
|
---|
[89475857] | 121 | <note>
|
---|
| 122 | <para>
|
---|
[ae2cb05] | 123 | There used to be a conflict between the <application>Cups</application>
|
---|
[5618cdc] | 124 | <application>libusb</application> backend and the usblp kernel driver.
|
---|
| 125 | This is no longer the case and cups will work with both of these
|
---|
[ae2cb05] | 126 | enabled.
|
---|
[89475857] | 127 | </para>
|
---|
| 128 | </note>
|
---|
| 129 |
|
---|
| 130 | <para>
|
---|
[ae2cb05] | 131 | If you want to use the kernel usblp driver (for example, if you wish to
|
---|
[5618cdc] | 132 | use <application>escputil</application> from <xref
|
---|
| 133 | linkend="gutenprint"/>) enable the following options in your kernel
|
---|
| 134 | configuration and recompile the kernel:
|
---|
[89475857] | 135 | </para>
|
---|
[47dc0bf] | 136 |
|
---|
[5f83175] | 137 | <screen><literal>Device Drivers --->
|
---|
[2cf3f8a] | 138 | USB support --->
|
---|
[5f83175] | 139 | OHCI HCD (USB 1.1) support: Y or M [CONFIG_USB_OHCI_HCD]
|
---|
| 140 | UHCI HCD (most Intel and VIA) support: Y or M [CONFIG_USB_UHCI_HCD]
|
---|
| 141 | USB Printer support: Y or M [CONFIG_USB_PRINTER]</literal></screen>
|
---|
[47dc0bf] | 142 |
|
---|
[89475857] | 143 | <para>
|
---|
[2946338a] | 144 | If you have a parallel printer, enable the following options in your
|
---|
[89475857] | 145 | kernel configuration and recompile the kernel:
|
---|
| 146 | </para>
|
---|
| 147 |
|
---|
| 148 | <screen><literal>Device Drivers --->
|
---|
[5f83175] | 149 | Parallel port support ---> [CONFIG_PARPORT]
|
---|
| 150 | PC-style hardware: Y or M [CONFIG_PARPORT_PC]
|
---|
[89475857] | 151 | Character devices --->
|
---|
[5f83175] | 152 | Parallel printer support: Y or M [CONFIG_PRINTER]</literal></screen>
|
---|
[89475857] | 153 |
|
---|
[47dc0bf] | 154 | <indexterm zone="cups cups-kernel">
|
---|
| 155 | <primary sortas="d-cups">cups</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 |
|
---|
| 158 | </sect2>
|
---|
| 159 |
|
---|
[536fac5] | 160 | <sect2 role="installation">
|
---|
[47dc0bf] | 161 | <title>Installation of Cups</title>
|
---|
[536fac5] | 162 |
|
---|
[89475857] | 163 | <para>
|
---|
[2946338a] | 164 | You will need to add an <systemitem class="username">lp</systemitem>
|
---|
[89475857] | 165 | user, as <application>Cups</application> will create some files owned
|
---|
| 166 | by this user. (The <systemitem class="username">lp</systemitem> user
|
---|
| 167 | is the default used by <application>Cups</application>, but may be
|
---|
| 168 | changed to a different user by passing a parameter to the
|
---|
| 169 | <command>configure</command> script.) Use the following command as
|
---|
| 170 | the <systemitem class="username">root</systemitem> user:
|
---|
| 171 | </para>
|
---|
| 172 |
|
---|
| 173 | <screen role="root"><userinput>useradd -c "Print Service User" -d /var/spool/cups -g lp -s /bin/false -u 9 lp</userinput></screen>
|
---|
[536fac5] | 174 |
|
---|
[89475857] | 175 | <para>
|
---|
[2946338a] | 176 | You will also need a dedicated group that will contain users allowed to
|
---|
[89475857] | 177 | do <application>Cups</application> administrative tasks. Add the group
|
---|
| 178 | by running the following command as the
|
---|
| 179 | <systemitem class="username">root</systemitem> user:
|
---|
| 180 | </para>
|
---|
[536fac5] | 181 |
|
---|
[89475857] | 182 | <screen role="root"><userinput>groupadd -g 19 lpadmin</userinput></screen>
|
---|
[536fac5] | 183 |
|
---|
[89475857] | 184 | <para>
|
---|
[2946338a] | 185 | If you want to add a user to the <application>Cups</application>
|
---|
[89475857] | 186 | administrative group, run the following command as the
|
---|
| 187 | <systemitem class="username">root</systemitem> user:
|
---|
| 188 | </para>
|
---|
| 189 |
|
---|
| 190 | <screen role="root"><userinput>usermod -a -G lpadmin <replaceable><username></replaceable></userinput></screen>
|
---|
| 191 |
|
---|
| 192 | <para>
|
---|
| 193 | If you didn't install <xref linkend="xdg-utils"/>, use the following
|
---|
| 194 | <command>sed</command> to change the default browser that will be used
|
---|
| 195 | to access the <application>Cups</application> web interface:
|
---|
| 196 | </para>
|
---|
| 197 |
|
---|
| 198 | <screen><userinput>sed -i 's#@CUPS_HTMLVIEW@#firefox#' desktop/cups.desktop.in</userinput></screen>
|
---|
| 199 |
|
---|
| 200 | <para>
|
---|
| 201 | Replace <command>firefox</command> with the web browser of your
|
---|
| 202 | choice.
|
---|
| 203 | </para>
|
---|
[ea48bbe] | 204 |
|
---|
[89475857] | 205 | <!-- docdir is also document root for cups administration interface, so
|
---|
[2c1a7b7f] | 206 | let's just put it in /usr/share/cups/doc-&cups-version; and create symlink
|
---|
| 207 | in /usr/share/doc/cups-&cups-version;
|
---|
[5618cdc] | 208 |
|
---|
[6d8f6dc] | 209 | When not using libdir switch, CUPS will install libraries into /usr/lib64
|
---|
[abc1ddb] | 210 | on a 64 bit system, and since /usr/lib64 is symlink to /usr/lib it might
|
---|
| 211 | introduce some difficulties with packaging -->
|
---|
[5618cdc] | 212 |
|
---|
| 213 | <para>
|
---|
[5f83175] | 214 | Build <application>Cups</application> by running the following commands:
|
---|
[5618cdc] | 215 | </para>
|
---|
| 216 |
|
---|
[2c1a7b7f] | 217 | <screen><userinput>sed -i 's:555:755:g;s:444:644:g' Makedefs.in &&
|
---|
| 218 | sed -i '/MAN.*.EXT/s:.gz::g' \
|
---|
| 219 | configure config-scripts/cups-manpages.m4 &&
|
---|
| 220 | sed -i '/LIBGCRYPTCONFIG/d' config-scripts/cups-ssl.m4 &&
|
---|
[a090d8b] | 221 | sed -i 's@else /\* HAVE_AVAHI \*/@elif defined(HAVE_AVAHI)@' \
|
---|
| 222 | test/ippserver.c &&
|
---|
[5618cdc] | 223 |
|
---|
| 224 | aclocal -I config-scripts &&
|
---|
[abc1ddb] | 225 | autoconf -I config-scripts &&
|
---|
[93343b6] | 226 |
|
---|
[5618cdc] | 227 | ./configure --libdir=/usr/lib \
|
---|
| 228 | --disable-systemd \
|
---|
| 229 | --with-rcdir=/tmp/cupsinit \
|
---|
| 230 | --with-system-groups=lpadmin \
|
---|
[2c1a7b7f] | 231 | --with-docdir=/usr/share/cups/doc-&cups-version; &&
|
---|
[536fac5] | 232 | make</userinput></screen>
|
---|
| 233 |
|
---|
[89475857] | 234 | <para>
|
---|
[f0cd0274] | 235 | To test the results, issue: <command>make -k check</command>. An already
|
---|
| 236 | active graphical session with bus address is necessary to run the tests.
|
---|
| 237 | A small number of tests fail for unknown reasons.
|
---|
[89475857] | 238 | </para>
|
---|
[24962f9] | 239 |
|
---|
[89475857] | 240 | <para>
|
---|
[5f83175] | 241 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[89475857] | 242 | </para>
|
---|
[536fac5] | 243 |
|
---|
[2cf3f8a] | 244 | <!-- dev note: make BUILDROOT=<DESTDIR> install -->
|
---|
| 245 |
|
---|
[5c52c23] | 246 | <screen role="root"><userinput>make install &&
|
---|
[89475857] | 247 | rm -rf /tmp/cupsinit &&
|
---|
[2c1a7b7f] | 248 | ln -svnf ../cups/doc-&cups-version; /usr/share/doc/cups-&cups-version;</userinput></screen>
|
---|
[89475857] | 249 |
|
---|
| 250 | <para>
|
---|
[5618cdc] | 251 | Create a basic <application>Cups</application> client configuration file
|
---|
| 252 | by running the following command as the <systemitem
|
---|
| 253 | class="username">root</systemitem> user:
|
---|
[3a55bfe] | 254 | </para>
|
---|
| 255 |
|
---|
| 256 | <screen role="root"><userinput>echo "ServerName /var/run/cups/cups.sock" > /etc/cups/client.conf</userinput></screen>
|
---|
| 257 |
|
---|
| 258 | <para>
|
---|
[5618cdc] | 259 | Remove filters that are now part of the <application>Cups
|
---|
| 260 | Filters</application> package by running the following commands as the
|
---|
[89475857] | 261 | <systemitem class="username">root</systemitem> user:
|
---|
| 262 | </para>
|
---|
[536fac5] | 263 |
|
---|
[3a55bfe] | 264 | <screen role="root"><userinput>rm -rf /usr/share/cups/banners &&
|
---|
| 265 | rm -rf /usr/share/cups/data/testprint</userinput></screen>
|
---|
[89475857] | 266 |
|
---|
[3ce3eb5] | 267 | <note>
|
---|
| 268 | <para>
|
---|
| 269 | If you reinstall or update <application>Cups</application>, commands
|
---|
| 270 | above break <xref linkend="cups-filters"/>, which needs, therefore,
|
---|
| 271 | to be reinstalled.</para>
|
---|
| 272 | </note>
|
---|
| 273 |
|
---|
[2946338a] | 274 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 275 | href="../../xincludes/gtk-update-icon-cache.xml"/>
|
---|
[6d8f6dc] | 276 |
|
---|
[536fac5] | 277 | </sect2>
|
---|
| 278 |
|
---|
| 279 | <sect2 role="commands">
|
---|
| 280 | <title>Command Explanations</title>
|
---|
| 281 |
|
---|
[5618cdc] | 282 | <para>
|
---|
[2c1a7b7f] | 283 | <command>sed ... Makedefs.in</command>: Fix files and directories
|
---|
| 284 | permissions.
|
---|
[5618cdc] | 285 | </para>
|
---|
| 286 |
|
---|
| 287 | <para>
|
---|
[2c1a7b7f] | 288 | <command>sed ... cups-manpages.m4</command>: This sed prevents
|
---|
| 289 | compression of the man pages by default.
|
---|
[5618cdc] | 290 | </para>
|
---|
| 291 |
|
---|
[93343b6] | 292 | <para>
|
---|
[2c1a7b7f] | 293 | <command>sed ... cups-ssl.m4</command>: Prevent
|
---|
| 294 | <command>configure</command> script from searching
|
---|
| 295 | <command>libgcrypt-config</command>, because
|
---|
| 296 | <application>libgcrypt</application> is not used anywere else in the
|
---|
| 297 | package.
|
---|
[93343b6] | 298 | </para>
|
---|
| 299 |
|
---|
[a090d8b] | 300 | <para>
|
---|
| 301 | <command>sed ... test/ippserver.c</command>: This sed fixes a bug,
|
---|
| 302 | which shows up when <application>avahi</application> is not present.
|
---|
| 303 | </para>
|
---|
| 304 |
|
---|
[89475857] | 305 | <para>
|
---|
[5618cdc] | 306 | <parameter>--disable-systemd</parameter>: Systemd is not supported by
|
---|
| 307 | BLFS.
|
---|
| 308 | </para>
|
---|
| 309 |
|
---|
| 310 | <para>
|
---|
| 311 | <parameter>--with-rcdir=/tmp/cupsinit</parameter>: This switch tells the
|
---|
| 312 | build process to install the shipped bootscript into <filename
|
---|
| 313 | class="directory">/tmp</filename> instead of <filename
|
---|
| 314 | class="directory">/etc/rc.d</filename>.
|
---|
[89475857] | 315 | </para>
|
---|
| 316 |
|
---|
| 317 | <para>
|
---|
| 318 | <parameter>--with-system-groups=lpadmin</parameter>: This switch ensures
|
---|
[5618cdc] | 319 | that only <systemitem class="groupname">lpadmin</systemitem> will be used
|
---|
| 320 | as the <application>Cups</application> administrative group.
|
---|
[89475857] | 321 | </para>
|
---|
[47dc0bf] | 322 |
|
---|
[89475857] | 323 | <para>
|
---|
| 324 | <option>--disable-libusb</option>: Use this switch if you have installed
|
---|
| 325 | <xref linkend="libusb"/>, but wish to use the kernel usblp driver.
|
---|
| 326 | </para>
|
---|
[47dc0bf] | 327 |
|
---|
[89475857] | 328 | <para>
|
---|
| 329 | <option>--enable-libpaper</option>: Use this switch if you have installed
|
---|
| 330 | <application>libpaper</application> and wish to use it with
|
---|
| 331 | <application>Cups</application>.
|
---|
| 332 | </para>
|
---|
[47dc0bf] | 333 |
|
---|
[536fac5] | 334 | </sect2>
|
---|
| 335 |
|
---|
| 336 | <sect2 role="configuration">
|
---|
[47dc0bf] | 337 | <title>Configuring Cups</title>
|
---|
[536fac5] | 338 |
|
---|
[2cf3f8a] | 339 | <sect3 id="cups-config">
|
---|
| 340 | <title>Config Files</title>
|
---|
[89475857] | 341 |
|
---|
[2cf3f8a] | 342 | <para><filename>/etc/cups/*</filename></para>
|
---|
| 343 |
|
---|
| 344 | <indexterm zone="cups cups-config">
|
---|
| 345 | <primary sortas="e-etc-cups">/etc/cups/*</primary>
|
---|
| 346 | </indexterm>
|
---|
| 347 |
|
---|
| 348 | </sect3>
|
---|
| 349 |
|
---|
| 350 | <sect3>
|
---|
| 351 | <title>Configuration Information</title>
|
---|
| 352 |
|
---|
[5f83175] | 353 | <para>
|
---|
| 354 | Normally, printers are set up via a web browser. The
|
---|
| 355 | <application>Cups</application> server will normally connect via
|
---|
| 356 | the url http://localhost:631. From there printers, print
|
---|
| 357 | jobs, and the server configuration can be set up and managed.
|
---|
| 358 | Remote system administration can also be set up. Configuration
|
---|
| 359 | can also be done from the command line via the
|
---|
| 360 | <command>lpadmin</command>, <command>lpoptions</command>,
|
---|
| 361 | and <command>lpstat</command> commands.
|
---|
| 362 | </para>
|
---|
| 363 |
|
---|
[2cf3f8a] | 364 | <para>
|
---|
| 365 | Configuration of <application>Cups</application> is dependent on
|
---|
| 366 | the type of printer and can be complex. Generally, PostScript printers
|
---|
| 367 | are easier. For detailed instructions on configuration and use of
|
---|
| 368 | <application>Cups</application>, see <ulink
|
---|
[5f83175] | 369 | url="http://www.cups.org/documentation.php"/>.
|
---|
[2cf3f8a] | 370 | </para>
|
---|
| 371 |
|
---|
| 372 | <para>
|
---|
| 373 | For non-PostScript printers to print with
|
---|
[5618cdc] | 374 | <application>Cups</application>, you need to install <xref
|
---|
| 375 | linkend="gs"/> to convert PostScript to raster images and a driver
|
---|
[5f83175] | 376 | (e.g. from <xref linkend="gutenprint"/>) to convert the resulting
|
---|
[5618cdc] | 377 | raster images to a form that the printer understands. <ulink
|
---|
| 378 | url="http://www.linuxprinting.org/foomatic.html">Foomatic</ulink>
|
---|
[5f83175] | 379 | drivers use <xref linkend="gs"/> to convert PostScript to a printable
|
---|
| 380 | form directly, but this is considered suboptimal by
|
---|
[5618cdc] | 381 | <application>Cups</application> developers.
|
---|
[2cf3f8a] | 382 | </para>
|
---|
| 383 |
|
---|
| 384 | </sect3>
|
---|
[89475857] | 385 |
|
---|
[2c1a7b7f] | 386 | <sect3>
|
---|
| 387 | <title>Linux PAM Configuration</title>
|
---|
| 388 |
|
---|
| 389 | <para>
|
---|
| 390 | If <application>CUPS</application> has been built with
|
---|
| 391 | <application>Linux PAM</application> support, you need to create a
|
---|
[5f83175] | 392 | <application>PAM</application> configuration file to get it working
|
---|
[2c1a7b7f] | 393 | correctly with BLFS.
|
---|
| 394 | </para>
|
---|
| 395 |
|
---|
| 396 | <para>
|
---|
| 397 | Issue the following command as the <systemitem
|
---|
| 398 | class="username">root</systemitem> user to create the configuration
|
---|
| 399 | file for <application>Linux PAM</application>:
|
---|
| 400 | </para>
|
---|
| 401 |
|
---|
[3503806d] | 402 | <screen role="root"><userinput>cat > /etc/pam.d/cups << "EOF"
|
---|
[2c1a7b7f] | 403 | <literal># Begin /etc/pam.d/cups
|
---|
| 404 |
|
---|
| 405 | auth include system-auth
|
---|
| 406 | account include system-account
|
---|
| 407 | session include system-session
|
---|
| 408 |
|
---|
| 409 | # End /etc/pam.d/cups</literal>
|
---|
| 410 | EOF</userinput></screen>
|
---|
| 411 |
|
---|
| 412 | </sect3>
|
---|
| 413 |
|
---|
[32d0e29] | 414 | <sect3 id="cups-init">
|
---|
[536fac5] | 415 | <title>Boot Script</title>
|
---|
| 416 |
|
---|
[89475857] | 417 | <para>
|
---|
[2946338a] | 418 | If you want the <application>Cups</application> print service to start
|
---|
[89475857] | 419 | automatically when the system is booted, install the init
|
---|
| 420 | script included in the <xref linkend="bootscripts"/>
|
---|
| 421 | package:
|
---|
| 422 | </para>
|
---|
[536fac5] | 423 |
|
---|
| 424 | <indexterm zone="cups cups-init">
|
---|
| 425 | <primary sortas="f-cups">cups</primary>
|
---|
| 426 | </indexterm>
|
---|
| 427 |
|
---|
| 428 | <screen role="root"><userinput>make install-cups</userinput></screen>
|
---|
| 429 |
|
---|
| 430 | </sect3>
|
---|
| 431 |
|
---|
| 432 | </sect2>
|
---|
| 433 |
|
---|
| 434 | <sect2 role="content">
|
---|
| 435 | <title>Contents</title>
|
---|
| 436 |
|
---|
| 437 | <segmentedlist>
|
---|
| 438 | <segtitle>Installed Programs</segtitle>
|
---|
| 439 | <segtitle>Installed Libraries</segtitle>
|
---|
| 440 | <segtitle>Installed Directories</segtitle>
|
---|
| 441 |
|
---|
| 442 | <seglistitem>
|
---|
[89475857] | 443 | <seg>
|
---|
[5618cdc] | 444 | accept, cancel, cupsaccept, cupsaddsmb, cups-config, cupsctl, cupsd,
|
---|
| 445 | cupsdisable, cupsenable, cupsfilter, cupsreject, cupstestdsc,
|
---|
| 446 | cupstestppd, ippfind, ipptool, lp, lpadmin, lpc, lpinfo, lpmove,
|
---|
| 447 | lpoptions, lpq, lpr, lprm, lpstat, ppdc, ppdhtml, ppdi, ppdmerge,
|
---|
| 448 | ppdpo, and reject
|
---|
[89475857] | 449 | </seg>
|
---|
| 450 | <seg>
|
---|
| 451 | libcupscgi.so, libcupsimage.so, libcupsmime.so,
|
---|
[5618cdc] | 452 | libcupsppdc.so, and libcups.so
|
---|
[89475857] | 453 | </seg>
|
---|
| 454 | <seg>
|
---|
| 455 | /etc/cups,
|
---|
| 456 | /usr/include/cups,
|
---|
| 457 | /usr/lib/cups,
|
---|
| 458 | /usr/share/cups,
|
---|
| 459 | /usr/share/doc/cups-&cups-version;,
|
---|
| 460 | /var/cache/cups,
|
---|
| 461 | /var/log/cups,
|
---|
[5618cdc] | 462 | /var/run/cups, and
|
---|
[89475857] | 463 | /var/spool/cups
|
---|
| 464 | </seg>
|
---|
[536fac5] | 465 | </seglistitem>
|
---|
| 466 | </segmentedlist>
|
---|
| 467 |
|
---|
| 468 | <variablelist>
|
---|
| 469 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 470 | <?dbfo list-presentation="list"?>
|
---|
| 471 | <?dbhtml list-presentation="table"?>
|
---|
| 472 |
|
---|
| 473 | <varlistentry id="accept">
|
---|
| 474 | <term><command>accept</command></term>
|
---|
| 475 | <listitem>
|
---|
[89475857] | 476 | <para>
|
---|
| 477 | instructs the printing system to accept print jobs to the
|
---|
| 478 | specified destinations.
|
---|
| 479 | </para>
|
---|
[536fac5] | 480 | <indexterm zone="cups accept">
|
---|
| 481 | <primary sortas="b-accept">accept</primary>
|
---|
| 482 | </indexterm>
|
---|
| 483 | </listitem>
|
---|
| 484 | </varlistentry>
|
---|
| 485 |
|
---|
| 486 | <varlistentry id="cancel-cups">
|
---|
| 487 | <term><command>cancel</command></term>
|
---|
| 488 | <listitem>
|
---|
[89475857] | 489 | <para>
|
---|
| 490 | cancels existing print jobs from the print queues.
|
---|
| 491 | </para>
|
---|
[536fac5] | 492 | <indexterm zone="cups cancel-cups">
|
---|
| 493 | <primary sortas="b-cancel">cancel</primary>
|
---|
| 494 | </indexterm>
|
---|
| 495 | </listitem>
|
---|
| 496 | </varlistentry>
|
---|
| 497 |
|
---|
[89475857] | 498 | <varlistentry id="cupsaddsmb">
|
---|
| 499 | <term><command>cupsaddsmb</command></term>
|
---|
| 500 | <listitem>
|
---|
| 501 | <para>
|
---|
| 502 | exports printers to the <application>Samba</application>
|
---|
| 503 | software for use with Windows clients.
|
---|
| 504 | </para>
|
---|
| 505 | <indexterm zone="cups cupsaddsmb">
|
---|
| 506 | <primary sortas="b-cupsaddsmb">cupsaddsmb</primary>
|
---|
| 507 | </indexterm>
|
---|
| 508 | </listitem>
|
---|
| 509 | </varlistentry>
|
---|
| 510 |
|
---|
[2cf3f8a] | 511 | <varlistentry id="cups-config-prog">
|
---|
[536fac5] | 512 | <term><command>cups-config</command></term>
|
---|
| 513 | <listitem>
|
---|
[89475857] | 514 | <para>
|
---|
| 515 | is a <application>Cups</application>
|
---|
| 516 | program configuration utility.
|
---|
| 517 | </para>
|
---|
[2cf3f8a] | 518 | <indexterm zone="cups cups-config-prog">
|
---|
[536fac5] | 519 | <primary sortas="b-cups-config">cups-config</primary>
|
---|
| 520 | </indexterm>
|
---|
| 521 | </listitem>
|
---|
| 522 | </varlistentry>
|
---|
| 523 |
|
---|
[89475857] | 524 | <varlistentry id="cupsctl">
|
---|
| 525 | <term><command>cupsctl</command></term>
|
---|
[536fac5] | 526 | <listitem>
|
---|
[89475857] | 527 | <para>
|
---|
| 528 | updates or queries the cupsd.conf file for a server.
|
---|
| 529 | </para>
|
---|
| 530 | <indexterm zone="cups cupsctl">
|
---|
| 531 | <primary sortas="b-cupsctl">cupsctl</primary>
|
---|
[536fac5] | 532 | </indexterm>
|
---|
| 533 | </listitem>
|
---|
| 534 | </varlistentry>
|
---|
| 535 |
|
---|
| 536 | <varlistentry id="cupsd">
|
---|
| 537 | <term><command>cupsd</command></term>
|
---|
| 538 | <listitem>
|
---|
[89475857] | 539 | <para>
|
---|
| 540 | is the scheduler for the Common Unix Printing System.
|
---|
| 541 | </para>
|
---|
[536fac5] | 542 | <indexterm zone="cups cupsd">
|
---|
| 543 | <primary sortas="b-cupsd">cupsd</primary>
|
---|
| 544 | </indexterm>
|
---|
| 545 | </listitem>
|
---|
| 546 | </varlistentry>
|
---|
| 547 |
|
---|
[89475857] | 548 | <varlistentry id="cupsfilter">
|
---|
| 549 | <term><command>cupsfilter</command></term>
|
---|
[536fac5] | 550 | <listitem>
|
---|
[89475857] | 551 | <para>
|
---|
[0d7900a] | 552 | is a front-end to the <application>Cups</application>
|
---|
[89475857] | 553 | filter subsystem which allows you to convert a file
|
---|
| 554 | to a specific format.
|
---|
| 555 | </para>
|
---|
| 556 | <indexterm zone="cups cupsfilter">
|
---|
| 557 | <primary sortas="b-cupsfilter">cupsfilter</primary>
|
---|
[536fac5] | 558 | </indexterm>
|
---|
| 559 | </listitem>
|
---|
| 560 | </varlistentry>
|
---|
| 561 |
|
---|
[89475857] | 562 | <varlistentry id="cupstestdsc">
|
---|
| 563 | <term><command>cupstestdsc</command></term>
|
---|
[536fac5] | 564 | <listitem>
|
---|
[89475857] | 565 | <para>
|
---|
| 566 | tests the conformance of PostScript files.
|
---|
| 567 | </para>
|
---|
| 568 | <indexterm zone="cups cupstestdsc">
|
---|
| 569 | <primary sortas="b-cupstestdsc">cupstestdsc</primary>
|
---|
| 570 | </indexterm>
|
---|
| 571 | </listitem>
|
---|
| 572 | </varlistentry>
|
---|
| 573 |
|
---|
| 574 | <varlistentry id="cupstestppd">
|
---|
| 575 | <term><command>cupstestppd</command></term>
|
---|
| 576 | <listitem>
|
---|
| 577 | <para>
|
---|
| 578 | tests the conformance of PPD files.
|
---|
| 579 | </para>
|
---|
| 580 | <indexterm zone="cups cupstestppd">
|
---|
| 581 | <primary sortas="b-cupstestppd">cupstestppd</primary>
|
---|
[536fac5] | 582 | </indexterm>
|
---|
| 583 | </listitem>
|
---|
| 584 | </varlistentry>
|
---|
| 585 |
|
---|
[95a4ee3] | 586 | <varlistentry id="ippfind">
|
---|
| 587 | <term><command>ippfind</command></term>
|
---|
| 588 | <listitem>
|
---|
| 589 | <para>
|
---|
| 590 | finds internet printing protocol printers.
|
---|
| 591 | </para>
|
---|
| 592 | <indexterm zone="cups ippfind">
|
---|
| 593 | <primary sortas="b-ippfind">ippfind</primary>
|
---|
| 594 | </indexterm>
|
---|
| 595 | </listitem>
|
---|
| 596 | </varlistentry>
|
---|
| 597 |
|
---|
[89475857] | 598 | <varlistentry id="ipptool">
|
---|
| 599 | <term><command>ipptool</command></term>
|
---|
[536fac5] | 600 | <listitem>
|
---|
[89475857] | 601 | <para>
|
---|
| 602 | sends IPP requests to the specified URI and tests
|
---|
| 603 | and/or displays the results.
|
---|
| 604 | </para>
|
---|
| 605 | <indexterm zone="cups ipptool">
|
---|
| 606 | <primary sortas="b-ipptool">ipptool</primary>
|
---|
[536fac5] | 607 | </indexterm>
|
---|
| 608 | </listitem>
|
---|
| 609 | </varlistentry>
|
---|
| 610 |
|
---|
| 611 | <varlistentry id="lp-cups">
|
---|
| 612 | <term><command>lp</command></term>
|
---|
| 613 | <listitem>
|
---|
[89475857] | 614 | <para>
|
---|
| 615 | submits files for printing or alters a pending job.
|
---|
| 616 | </para>
|
---|
[536fac5] | 617 | <indexterm zone="cups lp-cups">
|
---|
| 618 | <primary sortas="b-lp">lp</primary>
|
---|
| 619 | </indexterm>
|
---|
| 620 | </listitem>
|
---|
| 621 | </varlistentry>
|
---|
| 622 |
|
---|
| 623 | <varlistentry id="lpadmin">
|
---|
| 624 | <term><command>lpadmin</command></term>
|
---|
| 625 | <listitem>
|
---|
[89475857] | 626 | <para>
|
---|
| 627 | configures printer and class queues provided by
|
---|
| 628 | <application>Cups</application>.
|
---|
| 629 | </para>
|
---|
[536fac5] | 630 | <indexterm zone="cups lpadmin">
|
---|
| 631 | <primary sortas="b-lpadmin">lpadmin</primary>
|
---|
| 632 | </indexterm>
|
---|
| 633 | </listitem>
|
---|
| 634 | </varlistentry>
|
---|
| 635 |
|
---|
| 636 | <varlistentry id="lpc-cups">
|
---|
| 637 | <term><command>lpc</command></term>
|
---|
| 638 | <listitem>
|
---|
[89475857] | 639 | <para>
|
---|
| 640 | provides limited control over printer and class queues
|
---|
| 641 | provided by <application>Cups</application>.
|
---|
| 642 | </para>
|
---|
[536fac5] | 643 | <indexterm zone="cups lpc-cups">
|
---|
| 644 | <primary sortas="b-lpc">lpc</primary>
|
---|
| 645 | </indexterm>
|
---|
| 646 | </listitem>
|
---|
| 647 | </varlistentry>
|
---|
| 648 |
|
---|
| 649 | <varlistentry id="lpinfo">
|
---|
| 650 | <term><command>lpinfo</command></term>
|
---|
| 651 | <listitem>
|
---|
[89475857] | 652 | <para>
|
---|
| 653 | lists the available devices or drivers known to the
|
---|
| 654 | <application>Cups</application> server.
|
---|
| 655 | </para>
|
---|
[536fac5] | 656 | <indexterm zone="cups lpinfo">
|
---|
| 657 | <primary sortas="b-lpinfo">lpinfo</primary>
|
---|
| 658 | </indexterm>
|
---|
| 659 | </listitem>
|
---|
| 660 | </varlistentry>
|
---|
| 661 |
|
---|
| 662 | <varlistentry id="lpmove">
|
---|
| 663 | <term><command>lpmove</command></term>
|
---|
| 664 | <listitem>
|
---|
[89475857] | 665 | <para>
|
---|
| 666 | moves the specified job to a new destination.
|
---|
| 667 | </para>
|
---|
[536fac5] | 668 | <indexterm zone="cups lpmove">
|
---|
| 669 | <primary sortas="b-lpmove">lpmove</primary>
|
---|
| 670 | </indexterm>
|
---|
| 671 | </listitem>
|
---|
| 672 | </varlistentry>
|
---|
| 673 |
|
---|
| 674 | <varlistentry id="lpoptions">
|
---|
| 675 | <term><command>lpoptions</command></term>
|
---|
| 676 | <listitem>
|
---|
[89475857] | 677 | <para>
|
---|
| 678 | displays or sets printer options and defaults.
|
---|
| 679 | </para>
|
---|
[536fac5] | 680 | <indexterm zone="cups lpoptions">
|
---|
| 681 | <primary sortas="b-lpoptions">lpoptions</primary>
|
---|
| 682 | </indexterm>
|
---|
| 683 | </listitem>
|
---|
| 684 | </varlistentry>
|
---|
| 685 |
|
---|
| 686 | <varlistentry id="lpq-cups">
|
---|
| 687 | <term><command>lpq</command></term>
|
---|
| 688 | <listitem>
|
---|
[89475857] | 689 | <para>
|
---|
| 690 | shows the current print queue status on the named printer.
|
---|
| 691 | </para>
|
---|
[536fac5] | 692 | <indexterm zone="cups lpq-cups">
|
---|
| 693 | <primary sortas="b-lpq">lpq</primary>
|
---|
| 694 | </indexterm>
|
---|
| 695 | </listitem>
|
---|
| 696 | </varlistentry>
|
---|
| 697 |
|
---|
| 698 | <varlistentry id="lpr-cups">
|
---|
| 699 | <term><command>lpr</command></term>
|
---|
| 700 | <listitem>
|
---|
[89475857] | 701 | <para>
|
---|
| 702 | submits files for printing.
|
---|
| 703 | </para>
|
---|
[536fac5] | 704 | <indexterm zone="cups lpr-cups">
|
---|
| 705 | <primary sortas="b-lpr">lpr</primary>
|
---|
| 706 | </indexterm>
|
---|
| 707 | </listitem>
|
---|
| 708 | </varlistentry>
|
---|
| 709 |
|
---|
| 710 | <varlistentry id="lprm-cups">
|
---|
| 711 | <term><command>lprm</command></term>
|
---|
| 712 | <listitem>
|
---|
[89475857] | 713 | <para>
|
---|
| 714 | cancels print jobs that have been queued for printing.
|
---|
| 715 | </para>
|
---|
[536fac5] | 716 | <indexterm zone="cups lprm-cups">
|
---|
| 717 | <primary sortas="b-lprm">lprm</primary>
|
---|
| 718 | </indexterm>
|
---|
| 719 | </listitem>
|
---|
| 720 | </varlistentry>
|
---|
| 721 |
|
---|
| 722 | <varlistentry id="lpstat-cups">
|
---|
| 723 | <term><command>lpstat</command></term>
|
---|
| 724 | <listitem>
|
---|
[89475857] | 725 | <para>
|
---|
| 726 | displays status information about the current classes, jobs,
|
---|
| 727 | and printers.
|
---|
| 728 | </para>
|
---|
[536fac5] | 729 | <indexterm zone="cups lpstat-cups">
|
---|
| 730 | <primary sortas="b-lpstat">lpstat</primary>
|
---|
| 731 | </indexterm>
|
---|
| 732 | </listitem>
|
---|
| 733 | </varlistentry>
|
---|
| 734 |
|
---|
[89475857] | 735 | <varlistentry id="ppdc">
|
---|
| 736 | <term><command>ppdc</command></term>
|
---|
| 737 | <listitem>
|
---|
| 738 | <para>
|
---|
| 739 | compiles PPDC source files into one or more PPD files.
|
---|
| 740 | </para>
|
---|
| 741 | <indexterm zone="cups ppdc">
|
---|
| 742 | <primary sortas="b-ppdc">ppdc</primary>
|
---|
| 743 | </indexterm>
|
---|
| 744 | </listitem>
|
---|
| 745 | </varlistentry>
|
---|
| 746 |
|
---|
| 747 | <varlistentry id="ppdhtml">
|
---|
| 748 | <term><command>ppdhtml</command></term>
|
---|
| 749 | <listitem>
|
---|
| 750 | <para>
|
---|
| 751 | reads a driver information file and produces a HTML summary
|
---|
| 752 | page that lists all of the drivers in a file and the
|
---|
| 753 | supported options.
|
---|
| 754 | </para>
|
---|
| 755 | <indexterm zone="cups ppdhtml">
|
---|
| 756 | <primary sortas="b-ppdhtml">ppdhtml</primary>
|
---|
| 757 | </indexterm>
|
---|
| 758 | </listitem>
|
---|
| 759 | </varlistentry>
|
---|
| 760 |
|
---|
| 761 | <varlistentry id="ppdi">
|
---|
| 762 | <term><command>ppdi</command></term>
|
---|
| 763 | <listitem>
|
---|
| 764 | <para>
|
---|
| 765 | imports one or more PPD files into a PPD compiler source file.
|
---|
| 766 | </para>
|
---|
| 767 | <indexterm zone="cups ppdi">
|
---|
| 768 | <primary sortas="b-ppdi">ppdi</primary>
|
---|
| 769 | </indexterm>
|
---|
| 770 | </listitem>
|
---|
| 771 | </varlistentry>
|
---|
| 772 |
|
---|
| 773 | <varlistentry id="ppdmerge">
|
---|
| 774 | <term><command>ppdmerge</command></term>
|
---|
| 775 | <listitem>
|
---|
| 776 | <para>
|
---|
| 777 | merges two or more PPD files into a single, multi-language
|
---|
| 778 | PPD file.
|
---|
| 779 | </para>
|
---|
| 780 | <indexterm zone="cups ppdmerge">
|
---|
| 781 | <primary sortas="b-ppdmerge">ppdmerge</primary>
|
---|
| 782 | </indexterm>
|
---|
| 783 | </listitem>
|
---|
| 784 | </varlistentry>
|
---|
| 785 |
|
---|
| 786 | <varlistentry id="ppdpo">
|
---|
| 787 | <term><command>ppdpo</command></term>
|
---|
| 788 | <listitem>
|
---|
| 789 | <para>
|
---|
| 790 | extracts UI strings from PPDC source files and
|
---|
| 791 | updates either a GNU gettext or Mac OS X strings
|
---|
| 792 | format message catalog source file for translation.
|
---|
| 793 | </para>
|
---|
| 794 | <indexterm zone="cups ppdpo">
|
---|
| 795 | <primary sortas="b-ppdpo">ppdpo</primary>
|
---|
| 796 | </indexterm>
|
---|
| 797 | </listitem>
|
---|
| 798 | </varlistentry>
|
---|
| 799 |
|
---|
[536fac5] | 800 | <varlistentry id="reject">
|
---|
| 801 | <term><command>reject</command></term>
|
---|
| 802 | <listitem>
|
---|
[89475857] | 803 | <para>
|
---|
| 804 | instructs the printing system to reject print jobs to the
|
---|
| 805 | specified destinations.
|
---|
| 806 | </para>
|
---|
[536fac5] | 807 | <indexterm zone="cups reject">
|
---|
| 808 | <primary sortas="b-reject">reject</primary>
|
---|
| 809 | </indexterm>
|
---|
| 810 | </listitem>
|
---|
| 811 | </varlistentry>
|
---|
| 812 |
|
---|
[89475857] | 813 | <varlistentry id="libcups">
|
---|
| 814 | <term><filename class="libraryfile">libcups.so</filename></term>
|
---|
| 815 | <listitem>
|
---|
| 816 | <para>
|
---|
| 817 | contains the <application>Cups</application> API functions.
|
---|
| 818 | </para>
|
---|
| 819 | <indexterm zone="cups libcups">
|
---|
| 820 | <primary sortas="c-libcups">libcups.so</primary>
|
---|
| 821 | </indexterm>
|
---|
| 822 | </listitem>
|
---|
| 823 | </varlistentry>
|
---|
| 824 |
|
---|
[536fac5] | 825 | </variablelist>
|
---|
| 826 |
|
---|
| 827 | </sect2>
|
---|
[c78533e] | 828 |
|
---|
| 829 | </sect1>
|
---|