[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 " ">
|
---|
[a92a3a9] | 9 | <!ENTITY cups-md5sum "6e0ea72dbafcf5baaa1cf4178e71096d">
|
---|
[95a4ee3] | 10 | <!ENTITY cups-size "8.4 MB">
|
---|
[a92a3a9] | 11 | <!ENTITY cups-buildsize "61 MB (additional 28 MB for the tests)">
|
---|
[5618cdc] | 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 |
|
---|
[f89fc45] | 39 | &lfs77_checked; &gcc5_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 --->
|
---|
[38155d1] | 138 | [*] USB support ---> [CONFIG_USB_SUPPORT]
|
---|
| 139 | <*/M> OHCI HCD (USB 1.1) support [CONFIG_USB_OHCI_HCD]
|
---|
| 140 | <*/M> UHCI HCD (most Intel and VIA) support [CONFIG_USB_UHCI_HCD]
|
---|
| 141 | <*/M> USB Printer support [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 --->
|
---|
[38155d1] | 149 | <*/M> Parallel port support ---> [CONFIG_PARPORT]
|
---|
| 150 | <*/M> PC-style hardware [CONFIG_PARPORT_PC]
|
---|
[89475857] | 151 | Character devices --->
|
---|
[38155d1] | 152 | <*/M> Parallel printer support [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 |
|
---|
[a92a3a9] | 217 | <screen><userinput>sed -i 's:555:755:g;s:444:644:g' Makedefs.in &&
|
---|
| 218 | sed -i '/MAN.EXT/s:.gz::g' configure config-scripts/cups-manpages.m4 &&
|
---|
| 219 | sed -i '/LIBGCRYPTCONFIG/d' config-scripts/cups-ssl.m4 &&
|
---|
| 220 | sed -i 's@else /\* HAVE_AVAHI \*/@elif defined(HAVE_AVAHI)@' test/ippserver.c &&
|
---|
[5618cdc] | 221 |
|
---|
| 222 | aclocal -I config-scripts &&
|
---|
[abc1ddb] | 223 | autoconf -I config-scripts &&
|
---|
[93343b6] | 224 |
|
---|
[5618cdc] | 225 | ./configure --libdir=/usr/lib \
|
---|
| 226 | --disable-systemd \
|
---|
| 227 | --with-rcdir=/tmp/cupsinit \
|
---|
| 228 | --with-system-groups=lpadmin \
|
---|
[2c1a7b7f] | 229 | --with-docdir=/usr/share/cups/doc-&cups-version; &&
|
---|
[536fac5] | 230 | make</userinput></screen>
|
---|
| 231 |
|
---|
[a92a3a9] | 232 | <para>
|
---|
| 233 | To test the results, issue: <command>make -k check</command>. An already
|
---|
| 234 | active graphical session with bus address is necessary to run the tests.
|
---|
| 235 | A small number of tests fail for unknown reasons.
|
---|
| 236 | </para>
|
---|
[24962f9] | 237 |
|
---|
[89475857] | 238 | <para>
|
---|
[5f83175] | 239 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[89475857] | 240 | </para>
|
---|
[536fac5] | 241 |
|
---|
[2cf3f8a] | 242 | <!-- dev note: make BUILDROOT=<DESTDIR> install -->
|
---|
| 243 |
|
---|
[5c52c23] | 244 | <screen role="root"><userinput>make install &&
|
---|
[89475857] | 245 | rm -rf /tmp/cupsinit &&
|
---|
[2c1a7b7f] | 246 | ln -svnf ../cups/doc-&cups-version; /usr/share/doc/cups-&cups-version;</userinput></screen>
|
---|
[89475857] | 247 |
|
---|
| 248 | <para>
|
---|
[5618cdc] | 249 | Create a basic <application>Cups</application> client configuration file
|
---|
| 250 | by running the following command as the <systemitem
|
---|
| 251 | class="username">root</systemitem> user:
|
---|
[3a55bfe] | 252 | </para>
|
---|
| 253 |
|
---|
| 254 | <screen role="root"><userinput>echo "ServerName /var/run/cups/cups.sock" > /etc/cups/client.conf</userinput></screen>
|
---|
| 255 |
|
---|
| 256 | <para>
|
---|
[5618cdc] | 257 | Remove filters that are now part of the <application>Cups
|
---|
| 258 | Filters</application> package by running the following commands as the
|
---|
[89475857] | 259 | <systemitem class="username">root</systemitem> user:
|
---|
| 260 | </para>
|
---|
[536fac5] | 261 |
|
---|
[3a55bfe] | 262 | <screen role="root"><userinput>rm -rf /usr/share/cups/banners &&
|
---|
| 263 | rm -rf /usr/share/cups/data/testprint</userinput></screen>
|
---|
[89475857] | 264 |
|
---|
[3ce3eb5] | 265 | <note>
|
---|
| 266 | <para>
|
---|
| 267 | If you reinstall or update <application>Cups</application>, commands
|
---|
| 268 | above break <xref linkend="cups-filters"/>, which needs, therefore,
|
---|
| 269 | to be reinstalled.</para>
|
---|
| 270 | </note>
|
---|
| 271 |
|
---|
[2946338a] | 272 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 273 | href="../../xincludes/gtk-update-icon-cache.xml"/>
|
---|
[6d8f6dc] | 274 |
|
---|
[536fac5] | 275 | </sect2>
|
---|
| 276 |
|
---|
| 277 | <sect2 role="commands">
|
---|
| 278 | <title>Command Explanations</title>
|
---|
| 279 |
|
---|
[5618cdc] | 280 | <para>
|
---|
[2c1a7b7f] | 281 | <command>sed ... Makedefs.in</command>: Fix files and directories
|
---|
| 282 | permissions.
|
---|
[5618cdc] | 283 | </para>
|
---|
| 284 |
|
---|
| 285 | <para>
|
---|
[2c1a7b7f] | 286 | <command>sed ... cups-manpages.m4</command>: This sed prevents
|
---|
| 287 | compression of the man pages by default.
|
---|
[5618cdc] | 288 | </para>
|
---|
| 289 |
|
---|
[93343b6] | 290 | <para>
|
---|
[2c1a7b7f] | 291 | <command>sed ... cups-ssl.m4</command>: Prevent
|
---|
| 292 | <command>configure</command> script from searching
|
---|
| 293 | <command>libgcrypt-config</command>, because
|
---|
| 294 | <application>libgcrypt</application> is not used anywere else in the
|
---|
| 295 | package.
|
---|
[93343b6] | 296 | </para>
|
---|
| 297 |
|
---|
[a090d8b] | 298 | <para>
|
---|
| 299 | <command>sed ... test/ippserver.c</command>: This sed fixes a bug,
|
---|
| 300 | which shows up when <application>avahi</application> is not present.
|
---|
| 301 | </para>
|
---|
| 302 |
|
---|
[89475857] | 303 | <para>
|
---|
[5618cdc] | 304 | <parameter>--disable-systemd</parameter>: Systemd is not supported by
|
---|
| 305 | BLFS.
|
---|
| 306 | </para>
|
---|
| 307 |
|
---|
| 308 | <para>
|
---|
| 309 | <parameter>--with-rcdir=/tmp/cupsinit</parameter>: This switch tells the
|
---|
| 310 | build process to install the shipped bootscript into <filename
|
---|
| 311 | class="directory">/tmp</filename> instead of <filename
|
---|
| 312 | class="directory">/etc/rc.d</filename>.
|
---|
[89475857] | 313 | </para>
|
---|
| 314 |
|
---|
| 315 | <para>
|
---|
| 316 | <parameter>--with-system-groups=lpadmin</parameter>: This switch ensures
|
---|
[5618cdc] | 317 | that only <systemitem class="groupname">lpadmin</systemitem> will be used
|
---|
| 318 | as the <application>Cups</application> administrative group.
|
---|
[89475857] | 319 | </para>
|
---|
[47dc0bf] | 320 |
|
---|
[89475857] | 321 | <para>
|
---|
| 322 | <option>--disable-libusb</option>: Use this switch if you have installed
|
---|
| 323 | <xref linkend="libusb"/>, but wish to use the kernel usblp driver.
|
---|
| 324 | </para>
|
---|
[47dc0bf] | 325 |
|
---|
[89475857] | 326 | <para>
|
---|
| 327 | <option>--enable-libpaper</option>: Use this switch if you have installed
|
---|
| 328 | <application>libpaper</application> and wish to use it with
|
---|
| 329 | <application>Cups</application>.
|
---|
| 330 | </para>
|
---|
[47dc0bf] | 331 |
|
---|
[536fac5] | 332 | </sect2>
|
---|
| 333 |
|
---|
| 334 | <sect2 role="configuration">
|
---|
[47dc0bf] | 335 | <title>Configuring Cups</title>
|
---|
[536fac5] | 336 |
|
---|
[2cf3f8a] | 337 | <sect3 id="cups-config">
|
---|
| 338 | <title>Config Files</title>
|
---|
[89475857] | 339 |
|
---|
[2cf3f8a] | 340 | <para><filename>/etc/cups/*</filename></para>
|
---|
| 341 |
|
---|
| 342 | <indexterm zone="cups cups-config">
|
---|
| 343 | <primary sortas="e-etc-cups">/etc/cups/*</primary>
|
---|
| 344 | </indexterm>
|
---|
| 345 |
|
---|
| 346 | </sect3>
|
---|
| 347 |
|
---|
| 348 | <sect3>
|
---|
| 349 | <title>Configuration Information</title>
|
---|
| 350 |
|
---|
[5f83175] | 351 | <para>
|
---|
| 352 | Normally, printers are set up via a web browser. The
|
---|
| 353 | <application>Cups</application> server will normally connect via
|
---|
| 354 | the url http://localhost:631. From there printers, print
|
---|
| 355 | jobs, and the server configuration can be set up and managed.
|
---|
| 356 | Remote system administration can also be set up. Configuration
|
---|
| 357 | can also be done from the command line via the
|
---|
| 358 | <command>lpadmin</command>, <command>lpoptions</command>,
|
---|
| 359 | and <command>lpstat</command> commands.
|
---|
| 360 | </para>
|
---|
| 361 |
|
---|
[2cf3f8a] | 362 | <para>
|
---|
| 363 | Configuration of <application>Cups</application> is dependent on
|
---|
| 364 | the type of printer and can be complex. Generally, PostScript printers
|
---|
| 365 | are easier. For detailed instructions on configuration and use of
|
---|
| 366 | <application>Cups</application>, see <ulink
|
---|
[5f83175] | 367 | url="http://www.cups.org/documentation.php"/>.
|
---|
[2cf3f8a] | 368 | </para>
|
---|
| 369 |
|
---|
| 370 | <para>
|
---|
| 371 | For non-PostScript printers to print with
|
---|
[5618cdc] | 372 | <application>Cups</application>, you need to install <xref
|
---|
| 373 | linkend="gs"/> to convert PostScript to raster images and a driver
|
---|
[5f83175] | 374 | (e.g. from <xref linkend="gutenprint"/>) to convert the resulting
|
---|
[5618cdc] | 375 | raster images to a form that the printer understands. <ulink
|
---|
| 376 | url="http://www.linuxprinting.org/foomatic.html">Foomatic</ulink>
|
---|
[5f83175] | 377 | drivers use <xref linkend="gs"/> to convert PostScript to a printable
|
---|
| 378 | form directly, but this is considered suboptimal by
|
---|
[5618cdc] | 379 | <application>Cups</application> developers.
|
---|
[2cf3f8a] | 380 | </para>
|
---|
| 381 |
|
---|
| 382 | </sect3>
|
---|
[89475857] | 383 |
|
---|
[2c1a7b7f] | 384 | <sect3>
|
---|
| 385 | <title>Linux PAM Configuration</title>
|
---|
| 386 |
|
---|
| 387 | <para>
|
---|
| 388 | If <application>CUPS</application> has been built with
|
---|
| 389 | <application>Linux PAM</application> support, you need to create a
|
---|
[5f83175] | 390 | <application>PAM</application> configuration file to get it working
|
---|
[2c1a7b7f] | 391 | correctly with BLFS.
|
---|
| 392 | </para>
|
---|
| 393 |
|
---|
| 394 | <para>
|
---|
| 395 | Issue the following command as the <systemitem
|
---|
| 396 | class="username">root</systemitem> user to create the configuration
|
---|
| 397 | file for <application>Linux PAM</application>:
|
---|
| 398 | </para>
|
---|
| 399 |
|
---|
[3503806d] | 400 | <screen role="root"><userinput>cat > /etc/pam.d/cups << "EOF"
|
---|
[2c1a7b7f] | 401 | <literal># Begin /etc/pam.d/cups
|
---|
| 402 |
|
---|
| 403 | auth include system-auth
|
---|
| 404 | account include system-account
|
---|
| 405 | session include system-session
|
---|
| 406 |
|
---|
| 407 | # End /etc/pam.d/cups</literal>
|
---|
| 408 | EOF</userinput></screen>
|
---|
| 409 |
|
---|
| 410 | </sect3>
|
---|
| 411 |
|
---|
[32d0e29] | 412 | <sect3 id="cups-init">
|
---|
[536fac5] | 413 | <title>Boot Script</title>
|
---|
| 414 |
|
---|
[89475857] | 415 | <para>
|
---|
[2946338a] | 416 | If you want the <application>Cups</application> print service to start
|
---|
[89475857] | 417 | automatically when the system is booted, install the init
|
---|
| 418 | script included in the <xref linkend="bootscripts"/>
|
---|
| 419 | package:
|
---|
| 420 | </para>
|
---|
[536fac5] | 421 |
|
---|
| 422 | <indexterm zone="cups cups-init">
|
---|
| 423 | <primary sortas="f-cups">cups</primary>
|
---|
| 424 | </indexterm>
|
---|
| 425 |
|
---|
| 426 | <screen role="root"><userinput>make install-cups</userinput></screen>
|
---|
| 427 |
|
---|
| 428 | </sect3>
|
---|
| 429 |
|
---|
| 430 | </sect2>
|
---|
| 431 |
|
---|
| 432 | <sect2 role="content">
|
---|
| 433 | <title>Contents</title>
|
---|
| 434 |
|
---|
| 435 | <segmentedlist>
|
---|
| 436 | <segtitle>Installed Programs</segtitle>
|
---|
| 437 | <segtitle>Installed Libraries</segtitle>
|
---|
| 438 | <segtitle>Installed Directories</segtitle>
|
---|
| 439 |
|
---|
| 440 | <seglistitem>
|
---|
[89475857] | 441 | <seg>
|
---|
[5618cdc] | 442 | accept, cancel, cupsaccept, cupsaddsmb, cups-config, cupsctl, cupsd,
|
---|
| 443 | cupsdisable, cupsenable, cupsfilter, cupsreject, cupstestdsc,
|
---|
| 444 | cupstestppd, ippfind, ipptool, lp, lpadmin, lpc, lpinfo, lpmove,
|
---|
| 445 | lpoptions, lpq, lpr, lprm, lpstat, ppdc, ppdhtml, ppdi, ppdmerge,
|
---|
| 446 | ppdpo, and reject
|
---|
[89475857] | 447 | </seg>
|
---|
| 448 | <seg>
|
---|
| 449 | libcupscgi.so, libcupsimage.so, libcupsmime.so,
|
---|
[5618cdc] | 450 | libcupsppdc.so, and libcups.so
|
---|
[89475857] | 451 | </seg>
|
---|
| 452 | <seg>
|
---|
| 453 | /etc/cups,
|
---|
| 454 | /usr/include/cups,
|
---|
| 455 | /usr/lib/cups,
|
---|
| 456 | /usr/share/cups,
|
---|
| 457 | /usr/share/doc/cups-&cups-version;,
|
---|
| 458 | /var/cache/cups,
|
---|
| 459 | /var/log/cups,
|
---|
[5618cdc] | 460 | /var/run/cups, and
|
---|
[89475857] | 461 | /var/spool/cups
|
---|
| 462 | </seg>
|
---|
[536fac5] | 463 | </seglistitem>
|
---|
| 464 | </segmentedlist>
|
---|
| 465 |
|
---|
| 466 | <variablelist>
|
---|
| 467 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 468 | <?dbfo list-presentation="list"?>
|
---|
| 469 | <?dbhtml list-presentation="table"?>
|
---|
| 470 |
|
---|
| 471 | <varlistentry id="accept">
|
---|
| 472 | <term><command>accept</command></term>
|
---|
| 473 | <listitem>
|
---|
[89475857] | 474 | <para>
|
---|
| 475 | instructs the printing system to accept print jobs to the
|
---|
| 476 | specified destinations.
|
---|
| 477 | </para>
|
---|
[536fac5] | 478 | <indexterm zone="cups accept">
|
---|
| 479 | <primary sortas="b-accept">accept</primary>
|
---|
| 480 | </indexterm>
|
---|
| 481 | </listitem>
|
---|
| 482 | </varlistentry>
|
---|
| 483 |
|
---|
| 484 | <varlistentry id="cancel-cups">
|
---|
| 485 | <term><command>cancel</command></term>
|
---|
| 486 | <listitem>
|
---|
[89475857] | 487 | <para>
|
---|
| 488 | cancels existing print jobs from the print queues.
|
---|
| 489 | </para>
|
---|
[536fac5] | 490 | <indexterm zone="cups cancel-cups">
|
---|
| 491 | <primary sortas="b-cancel">cancel</primary>
|
---|
| 492 | </indexterm>
|
---|
| 493 | </listitem>
|
---|
| 494 | </varlistentry>
|
---|
| 495 |
|
---|
[89475857] | 496 | <varlistentry id="cupsaddsmb">
|
---|
| 497 | <term><command>cupsaddsmb</command></term>
|
---|
| 498 | <listitem>
|
---|
| 499 | <para>
|
---|
| 500 | exports printers to the <application>Samba</application>
|
---|
| 501 | software for use with Windows clients.
|
---|
| 502 | </para>
|
---|
| 503 | <indexterm zone="cups cupsaddsmb">
|
---|
| 504 | <primary sortas="b-cupsaddsmb">cupsaddsmb</primary>
|
---|
| 505 | </indexterm>
|
---|
| 506 | </listitem>
|
---|
| 507 | </varlistentry>
|
---|
| 508 |
|
---|
[2cf3f8a] | 509 | <varlistentry id="cups-config-prog">
|
---|
[536fac5] | 510 | <term><command>cups-config</command></term>
|
---|
| 511 | <listitem>
|
---|
[89475857] | 512 | <para>
|
---|
| 513 | is a <application>Cups</application>
|
---|
| 514 | program configuration utility.
|
---|
| 515 | </para>
|
---|
[2cf3f8a] | 516 | <indexterm zone="cups cups-config-prog">
|
---|
[536fac5] | 517 | <primary sortas="b-cups-config">cups-config</primary>
|
---|
| 518 | </indexterm>
|
---|
| 519 | </listitem>
|
---|
| 520 | </varlistentry>
|
---|
| 521 |
|
---|
[89475857] | 522 | <varlistentry id="cupsctl">
|
---|
| 523 | <term><command>cupsctl</command></term>
|
---|
[536fac5] | 524 | <listitem>
|
---|
[89475857] | 525 | <para>
|
---|
| 526 | updates or queries the cupsd.conf file for a server.
|
---|
| 527 | </para>
|
---|
| 528 | <indexterm zone="cups cupsctl">
|
---|
| 529 | <primary sortas="b-cupsctl">cupsctl</primary>
|
---|
[536fac5] | 530 | </indexterm>
|
---|
| 531 | </listitem>
|
---|
| 532 | </varlistentry>
|
---|
| 533 |
|
---|
| 534 | <varlistentry id="cupsd">
|
---|
| 535 | <term><command>cupsd</command></term>
|
---|
| 536 | <listitem>
|
---|
[89475857] | 537 | <para>
|
---|
| 538 | is the scheduler for the Common Unix Printing System.
|
---|
| 539 | </para>
|
---|
[536fac5] | 540 | <indexterm zone="cups cupsd">
|
---|
| 541 | <primary sortas="b-cupsd">cupsd</primary>
|
---|
| 542 | </indexterm>
|
---|
| 543 | </listitem>
|
---|
| 544 | </varlistentry>
|
---|
| 545 |
|
---|
[89475857] | 546 | <varlistentry id="cupsfilter">
|
---|
| 547 | <term><command>cupsfilter</command></term>
|
---|
[536fac5] | 548 | <listitem>
|
---|
[89475857] | 549 | <para>
|
---|
[0d7900a] | 550 | is a front-end to the <application>Cups</application>
|
---|
[89475857] | 551 | filter subsystem which allows you to convert a file
|
---|
| 552 | to a specific format.
|
---|
| 553 | </para>
|
---|
| 554 | <indexterm zone="cups cupsfilter">
|
---|
| 555 | <primary sortas="b-cupsfilter">cupsfilter</primary>
|
---|
[536fac5] | 556 | </indexterm>
|
---|
| 557 | </listitem>
|
---|
| 558 | </varlistentry>
|
---|
| 559 |
|
---|
[89475857] | 560 | <varlistentry id="cupstestdsc">
|
---|
| 561 | <term><command>cupstestdsc</command></term>
|
---|
[536fac5] | 562 | <listitem>
|
---|
[89475857] | 563 | <para>
|
---|
| 564 | tests the conformance of PostScript files.
|
---|
| 565 | </para>
|
---|
| 566 | <indexterm zone="cups cupstestdsc">
|
---|
| 567 | <primary sortas="b-cupstestdsc">cupstestdsc</primary>
|
---|
| 568 | </indexterm>
|
---|
| 569 | </listitem>
|
---|
| 570 | </varlistentry>
|
---|
| 571 |
|
---|
| 572 | <varlistentry id="cupstestppd">
|
---|
| 573 | <term><command>cupstestppd</command></term>
|
---|
| 574 | <listitem>
|
---|
| 575 | <para>
|
---|
| 576 | tests the conformance of PPD files.
|
---|
| 577 | </para>
|
---|
| 578 | <indexterm zone="cups cupstestppd">
|
---|
| 579 | <primary sortas="b-cupstestppd">cupstestppd</primary>
|
---|
[536fac5] | 580 | </indexterm>
|
---|
| 581 | </listitem>
|
---|
| 582 | </varlistentry>
|
---|
| 583 |
|
---|
[95a4ee3] | 584 | <varlistentry id="ippfind">
|
---|
| 585 | <term><command>ippfind</command></term>
|
---|
| 586 | <listitem>
|
---|
| 587 | <para>
|
---|
| 588 | finds internet printing protocol printers.
|
---|
| 589 | </para>
|
---|
| 590 | <indexterm zone="cups ippfind">
|
---|
| 591 | <primary sortas="b-ippfind">ippfind</primary>
|
---|
| 592 | </indexterm>
|
---|
| 593 | </listitem>
|
---|
| 594 | </varlistentry>
|
---|
| 595 |
|
---|
[89475857] | 596 | <varlistentry id="ipptool">
|
---|
| 597 | <term><command>ipptool</command></term>
|
---|
[536fac5] | 598 | <listitem>
|
---|
[89475857] | 599 | <para>
|
---|
| 600 | sends IPP requests to the specified URI and tests
|
---|
| 601 | and/or displays the results.
|
---|
| 602 | </para>
|
---|
| 603 | <indexterm zone="cups ipptool">
|
---|
| 604 | <primary sortas="b-ipptool">ipptool</primary>
|
---|
[536fac5] | 605 | </indexterm>
|
---|
| 606 | </listitem>
|
---|
| 607 | </varlistentry>
|
---|
| 608 |
|
---|
| 609 | <varlistentry id="lp-cups">
|
---|
| 610 | <term><command>lp</command></term>
|
---|
| 611 | <listitem>
|
---|
[89475857] | 612 | <para>
|
---|
| 613 | submits files for printing or alters a pending job.
|
---|
| 614 | </para>
|
---|
[536fac5] | 615 | <indexterm zone="cups lp-cups">
|
---|
| 616 | <primary sortas="b-lp">lp</primary>
|
---|
| 617 | </indexterm>
|
---|
| 618 | </listitem>
|
---|
| 619 | </varlistentry>
|
---|
| 620 |
|
---|
| 621 | <varlistentry id="lpadmin">
|
---|
| 622 | <term><command>lpadmin</command></term>
|
---|
| 623 | <listitem>
|
---|
[89475857] | 624 | <para>
|
---|
| 625 | configures printer and class queues provided by
|
---|
| 626 | <application>Cups</application>.
|
---|
| 627 | </para>
|
---|
[536fac5] | 628 | <indexterm zone="cups lpadmin">
|
---|
| 629 | <primary sortas="b-lpadmin">lpadmin</primary>
|
---|
| 630 | </indexterm>
|
---|
| 631 | </listitem>
|
---|
| 632 | </varlistentry>
|
---|
| 633 |
|
---|
| 634 | <varlistentry id="lpc-cups">
|
---|
| 635 | <term><command>lpc</command></term>
|
---|
| 636 | <listitem>
|
---|
[89475857] | 637 | <para>
|
---|
| 638 | provides limited control over printer and class queues
|
---|
| 639 | provided by <application>Cups</application>.
|
---|
| 640 | </para>
|
---|
[536fac5] | 641 | <indexterm zone="cups lpc-cups">
|
---|
| 642 | <primary sortas="b-lpc">lpc</primary>
|
---|
| 643 | </indexterm>
|
---|
| 644 | </listitem>
|
---|
| 645 | </varlistentry>
|
---|
| 646 |
|
---|
| 647 | <varlistentry id="lpinfo">
|
---|
| 648 | <term><command>lpinfo</command></term>
|
---|
| 649 | <listitem>
|
---|
[89475857] | 650 | <para>
|
---|
| 651 | lists the available devices or drivers known to the
|
---|
| 652 | <application>Cups</application> server.
|
---|
| 653 | </para>
|
---|
[536fac5] | 654 | <indexterm zone="cups lpinfo">
|
---|
| 655 | <primary sortas="b-lpinfo">lpinfo</primary>
|
---|
| 656 | </indexterm>
|
---|
| 657 | </listitem>
|
---|
| 658 | </varlistentry>
|
---|
| 659 |
|
---|
| 660 | <varlistentry id="lpmove">
|
---|
| 661 | <term><command>lpmove</command></term>
|
---|
| 662 | <listitem>
|
---|
[89475857] | 663 | <para>
|
---|
| 664 | moves the specified job to a new destination.
|
---|
| 665 | </para>
|
---|
[536fac5] | 666 | <indexterm zone="cups lpmove">
|
---|
| 667 | <primary sortas="b-lpmove">lpmove</primary>
|
---|
| 668 | </indexterm>
|
---|
| 669 | </listitem>
|
---|
| 670 | </varlistentry>
|
---|
| 671 |
|
---|
| 672 | <varlistentry id="lpoptions">
|
---|
| 673 | <term><command>lpoptions</command></term>
|
---|
| 674 | <listitem>
|
---|
[89475857] | 675 | <para>
|
---|
| 676 | displays or sets printer options and defaults.
|
---|
| 677 | </para>
|
---|
[536fac5] | 678 | <indexterm zone="cups lpoptions">
|
---|
| 679 | <primary sortas="b-lpoptions">lpoptions</primary>
|
---|
| 680 | </indexterm>
|
---|
| 681 | </listitem>
|
---|
| 682 | </varlistentry>
|
---|
| 683 |
|
---|
| 684 | <varlistentry id="lpq-cups">
|
---|
| 685 | <term><command>lpq</command></term>
|
---|
| 686 | <listitem>
|
---|
[89475857] | 687 | <para>
|
---|
| 688 | shows the current print queue status on the named printer.
|
---|
| 689 | </para>
|
---|
[536fac5] | 690 | <indexterm zone="cups lpq-cups">
|
---|
| 691 | <primary sortas="b-lpq">lpq</primary>
|
---|
| 692 | </indexterm>
|
---|
| 693 | </listitem>
|
---|
| 694 | </varlistentry>
|
---|
| 695 |
|
---|
| 696 | <varlistentry id="lpr-cups">
|
---|
| 697 | <term><command>lpr</command></term>
|
---|
| 698 | <listitem>
|
---|
[89475857] | 699 | <para>
|
---|
| 700 | submits files for printing.
|
---|
| 701 | </para>
|
---|
[536fac5] | 702 | <indexterm zone="cups lpr-cups">
|
---|
| 703 | <primary sortas="b-lpr">lpr</primary>
|
---|
| 704 | </indexterm>
|
---|
| 705 | </listitem>
|
---|
| 706 | </varlistentry>
|
---|
| 707 |
|
---|
| 708 | <varlistentry id="lprm-cups">
|
---|
| 709 | <term><command>lprm</command></term>
|
---|
| 710 | <listitem>
|
---|
[89475857] | 711 | <para>
|
---|
| 712 | cancels print jobs that have been queued for printing.
|
---|
| 713 | </para>
|
---|
[536fac5] | 714 | <indexterm zone="cups lprm-cups">
|
---|
| 715 | <primary sortas="b-lprm">lprm</primary>
|
---|
| 716 | </indexterm>
|
---|
| 717 | </listitem>
|
---|
| 718 | </varlistentry>
|
---|
| 719 |
|
---|
| 720 | <varlistentry id="lpstat-cups">
|
---|
| 721 | <term><command>lpstat</command></term>
|
---|
| 722 | <listitem>
|
---|
[89475857] | 723 | <para>
|
---|
| 724 | displays status information about the current classes, jobs,
|
---|
| 725 | and printers.
|
---|
| 726 | </para>
|
---|
[536fac5] | 727 | <indexterm zone="cups lpstat-cups">
|
---|
| 728 | <primary sortas="b-lpstat">lpstat</primary>
|
---|
| 729 | </indexterm>
|
---|
| 730 | </listitem>
|
---|
| 731 | </varlistentry>
|
---|
| 732 |
|
---|
[89475857] | 733 | <varlistentry id="ppdc">
|
---|
| 734 | <term><command>ppdc</command></term>
|
---|
| 735 | <listitem>
|
---|
| 736 | <para>
|
---|
| 737 | compiles PPDC source files into one or more PPD files.
|
---|
| 738 | </para>
|
---|
| 739 | <indexterm zone="cups ppdc">
|
---|
| 740 | <primary sortas="b-ppdc">ppdc</primary>
|
---|
| 741 | </indexterm>
|
---|
| 742 | </listitem>
|
---|
| 743 | </varlistentry>
|
---|
| 744 |
|
---|
| 745 | <varlistentry id="ppdhtml">
|
---|
| 746 | <term><command>ppdhtml</command></term>
|
---|
| 747 | <listitem>
|
---|
| 748 | <para>
|
---|
| 749 | reads a driver information file and produces a HTML summary
|
---|
| 750 | page that lists all of the drivers in a file and the
|
---|
| 751 | supported options.
|
---|
| 752 | </para>
|
---|
| 753 | <indexterm zone="cups ppdhtml">
|
---|
| 754 | <primary sortas="b-ppdhtml">ppdhtml</primary>
|
---|
| 755 | </indexterm>
|
---|
| 756 | </listitem>
|
---|
| 757 | </varlistentry>
|
---|
| 758 |
|
---|
| 759 | <varlistentry id="ppdi">
|
---|
| 760 | <term><command>ppdi</command></term>
|
---|
| 761 | <listitem>
|
---|
| 762 | <para>
|
---|
| 763 | imports one or more PPD files into a PPD compiler source file.
|
---|
| 764 | </para>
|
---|
| 765 | <indexterm zone="cups ppdi">
|
---|
| 766 | <primary sortas="b-ppdi">ppdi</primary>
|
---|
| 767 | </indexterm>
|
---|
| 768 | </listitem>
|
---|
| 769 | </varlistentry>
|
---|
| 770 |
|
---|
| 771 | <varlistentry id="ppdmerge">
|
---|
| 772 | <term><command>ppdmerge</command></term>
|
---|
| 773 | <listitem>
|
---|
| 774 | <para>
|
---|
| 775 | merges two or more PPD files into a single, multi-language
|
---|
| 776 | PPD file.
|
---|
| 777 | </para>
|
---|
| 778 | <indexterm zone="cups ppdmerge">
|
---|
| 779 | <primary sortas="b-ppdmerge">ppdmerge</primary>
|
---|
| 780 | </indexterm>
|
---|
| 781 | </listitem>
|
---|
| 782 | </varlistentry>
|
---|
| 783 |
|
---|
| 784 | <varlistentry id="ppdpo">
|
---|
| 785 | <term><command>ppdpo</command></term>
|
---|
| 786 | <listitem>
|
---|
| 787 | <para>
|
---|
| 788 | extracts UI strings from PPDC source files and
|
---|
| 789 | updates either a GNU gettext or Mac OS X strings
|
---|
| 790 | format message catalog source file for translation.
|
---|
| 791 | </para>
|
---|
| 792 | <indexterm zone="cups ppdpo">
|
---|
| 793 | <primary sortas="b-ppdpo">ppdpo</primary>
|
---|
| 794 | </indexterm>
|
---|
| 795 | </listitem>
|
---|
| 796 | </varlistentry>
|
---|
| 797 |
|
---|
[536fac5] | 798 | <varlistentry id="reject">
|
---|
| 799 | <term><command>reject</command></term>
|
---|
| 800 | <listitem>
|
---|
[89475857] | 801 | <para>
|
---|
| 802 | instructs the printing system to reject print jobs to the
|
---|
| 803 | specified destinations.
|
---|
| 804 | </para>
|
---|
[536fac5] | 805 | <indexterm zone="cups reject">
|
---|
| 806 | <primary sortas="b-reject">reject</primary>
|
---|
| 807 | </indexterm>
|
---|
| 808 | </listitem>
|
---|
| 809 | </varlistentry>
|
---|
| 810 |
|
---|
[89475857] | 811 | <varlistentry id="libcups">
|
---|
| 812 | <term><filename class="libraryfile">libcups.so</filename></term>
|
---|
| 813 | <listitem>
|
---|
| 814 | <para>
|
---|
| 815 | contains the <application>Cups</application> API functions.
|
---|
| 816 | </para>
|
---|
| 817 | <indexterm zone="cups libcups">
|
---|
| 818 | <primary sortas="c-libcups">libcups.so</primary>
|
---|
| 819 | </indexterm>
|
---|
| 820 | </listitem>
|
---|
| 821 | </varlistentry>
|
---|
| 822 |
|
---|
[536fac5] | 823 | </variablelist>
|
---|
| 824 |
|
---|
| 825 | </sect2>
|
---|
[c78533e] | 826 |
|
---|
| 827 | </sect1>
|
---|