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