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