]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add information on printer options, sharing, and debug logging.
authorMichael Sweet <michael.r.sweet@gmail.com>
Thu, 7 Dec 2017 04:50:36 +0000 (23:50 -0500)
committerMichael Sweet <michael.r.sweet@gmail.com>
Thu, 7 Dec 2017 04:50:36 +0000 (23:50 -0500)
Add admin.html to installed help files.

Fix CSS bug.

doc/Makefile
doc/cups-printable.css
doc/cups.css
doc/help/admin.html

index 6f8075db05cbcba593ad55b86a7342d52de84f74..735dfdb26d620f2f3cd3b6a19f9e8160c2d801b0 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Documentation makefile for CUPS.
 #
-# Copyright 2007-2016 by Apple Inc.
+# Copyright 2007-2017 by Apple Inc.
 # Copyright 1997-2007 by Easy Software Products.
 #
 # Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
@@ -40,6 +40,7 @@ HELPIMAGES    =       \
                        images/smiley.jpg
 HELPFILES      =       \
                        help/accounting.html \
+                       help/admin.html \
                        help/api-admin.html \
                        help/api-filter.html \
                        help/api-ppd.html \
index ec08fbc3263a7db68795fa41f996a4efc104a9bf..e9cf6286d875ffeec06236cdba9d22aaf098e4f5 100644 (file)
@@ -61,12 +61,6 @@ P.formula {
   margin-left: 36pt;
 }
 
-BLOCKQUOTE {
-  background: #eeeeee;
-  border: solid thin #999999;
-  padding: 10pt;
-}
-
 A IMG {
   border: none;
 }
index 46fac54cc790a8a9081c29a86b64da0e7df48c42..7c5c623cdecafad3a39ba528d0e0b4b5b99a69af 100644 (file)
@@ -164,15 +164,6 @@ P.formula {
   margin-left: 36pt;
 }
 
-BLOCKQUOTE {
-  background: #f0f0f0;
-  border: inset 1px #eeeeee;
-  padding: 10px;
-  /* These are not implemented by all browsers, but that's OK */
-  border-radius: 5px;
-  -moz-border-radius: 5px;
-}
-
 A IMG {
   border: none;
 }
index ffe9fdca3b34979766ff7bdaa0de727de00b8930..ca523ddd78fbf439e5876ed4554c858d719a8387 100644 (file)
@@ -17,7 +17,7 @@
 
     <p><a href="#CLASSES">Classes</a> are associated with one or more printers and are typically used to distribute print jobs amongst a group of printers or provide redundancy or high availability when printing. Print jobs sent to a class are forwarded to the next available printer in the class.</p>
 
-    <p>The <a href="man-lpadmin.html"><code>lpadmin(8)</code></a> program is used to add, modify, or delete destinations, while the <a href="man-lpinfo.html"><code>lpinfo(8)</code></a> command is used to list the available printer drivers and backends. The CUPS web interface ("http://localhost:631" or "https://servername:631") can also be used, and most operating systems provide their own GUI administration tools.</p>
+    <p>The <a href="man-lpadmin.html"><code>lpadmin(8)</code></a> program is used to add, modify, or delete destinations, while the <a href="man-lpinfo.html"><code>lpinfo(8)</code></a> command is used to list the available printer drivers and backends. The <a href="man-cupsctl.html"><code>cupsctl(8)</code></a> program is used to manage the printing system as a whole, including things like <a href="#DEBUG">debug logging</a> and <a href="#SHARING">printer sharing</a>. The CUPS web interface ("http://localhost:631" or "https://servername:631") can also be used, and most operating systems provide their own GUI administration tools.</p>
 
 
     <h2 class="title" id="PRINTERS">Managing Printers</h2>
@@ -49,7 +49,7 @@
 
     </dl>
 
-    <p>The <code>-x<code> option deletes the named printer:</p>
+    <p>The <code>-x</code> option deletes the named printer:</p>
 
     <pre class="command">lpadmin -x printername</pre>
 
@@ -125,6 +125,67 @@ direct usb://ZP/LazerJet%20MFP?serial=42</pre>
     <pre class="command">lpadmin -p printername -v device-uri</pre>
 
 
+    <h3 id="OPTIONS">Printer Options</h3>
+
+    <p>The <code>lpadmin</code> command allows you to set various options for a printer:</p>
+
+    <dl>
+      <dt><code>-o cupsIPPSupplies=false</code></dt>
+      <dd>Turns off IPP supply level reporting for a printer.</dd>
+
+      <dt><code>-o cupsSNMPSupplies=false</code></dt>
+      <dd>Turns off SNMP supply level reporting for a printer.</dd>
+
+      <dt><code>-o name=value</code></dt>
+      <dd>Sets the default value for the named PPD option. For example, <code>-o PageSize=Legal</code> sets the default page size to US Legal.</dd>
+
+      <dt><code>-o printer-error-policy=name</code></dt>
+      <dd>Sets the error handling policy:<dl>
+        <dt><code>abort-job</code></dt>
+        <dd>Aborts the job on error.</dd>
+        <dt><code>retry-job</code></dt>
+        <dd>Retries the job at a future time.</dd>
+        <dt><code>retry-current-job</code></dt>
+        <dd>Retries the current job immediately.</dd>
+        <dt><code>stop-printer</code></dt>
+        <dd>Stops the printer on error.</dd>
+      </dl></dd>
+
+      <dt><code>-o printer-is-shared=true/false</code></dt>
+      <dd>Enables/disables per-printer sharing. See the section on <a href="#SHARING">Printer Sharing</a> for more information.</dd>
+
+      <dt><code>-o printer-op-policy=name</code></dt>
+      <dd>Sets the operation policy associated with the printer. See the <a href="policies.html">Managing Operation Policies</a> help document for more information.</dd>
+
+      <dt><code>-u allow:{user|@group}{,user|,@group}*</code></dt>
+      <dt><code>-u allow:all</code></dt>
+      <dt><code>-u deny:{user|@group}{,user|,@group}*</code></dt>
+      <dt><code>-u deny:none</code></dt>
+      <dd>Sets user-level access control for the printer. The <code>allow:</code> list defines a whitelist of users and groups while the <code>deny:</code> list defines a blacklist of users and groups.</dd>
+    </dl>
+
+
+    <h2 class="title" id="SHARING">Printer Sharing</h2>
+
+    <p>CUPS supports sharing of printers with other computers and mobile devices. Two <code>cupsctl</code> options control the general printer sharing features:</p>
+
+    <dl>
+      <dt><code>--share-printers</code></dt>
+      <dd>Enables sharing of printers with other computers and mobile devices on your local network.</dd>
+
+      <dt><code>--remote-any</code></dt>
+      <dd>Expands printer sharing to any network that can reach your server.</dd>
+    </dl>
+
+    <p>Once you have enabled printer sharing, you then must select which printers will be shared using the <code>lpadmin</code> command and the <code>-o printer-is-shared=true</code> option.</p>
+
+    <p>For example, to share two printers ("foo" and "bar") on the local network, run the following commands:</p>
+
+    <pre class="command">cupsctl --share-printers
+lpadmin -p foo -o printer-is-shared=true
+lpadmin -p bar -o printer-is-shared=true</pre>
+
+
     <h2 class="title" id="CLASSES">Managing Classes</h2>
 
     <p>The <code>lpadmin</code> command is used to create, modify, or delete a class. The <code>-c</code> option specifies a class to create or modify and is combined with the <code>-p</code> option:</p>
@@ -135,9 +196,19 @@ direct usb://ZP/LazerJet%20MFP?serial=42</pre>
 
     <pre class="command">lpadmin -p printername -r classname</pre>
 
-    <p>The <code>-x<code> option deletes the named class:</p>
+    <p>The <code>-x</code> option deletes the named class:</p>
 
     <pre class="command">lpadmin -x classname</pre>
 
+
+    <h2 class="title" id="DEBUG">Debug Logging and Troubleshooting</h2>
+
+    <p>The <a href="man-cupsd-logs.html">printing system log files</a> track the activity of the scheduler, printer drivers, and backends. If problems occur and the log files do not provide sufficient details to diagnose the problem, you can enable debug logging using the <code>cupsctl</code> command:</p>
+
+    <pre class="command">cupsctl --debug-logging</pre>
+
+    <p>To disable debug logging, run the same command with the <code>--no-debug-logging</code> option:</p>
+
+    <pre class="command">cupsctl --no-debug-logging</pre>
   </body>
 </html>