Browse Source

cups-config, cupsd, lpinfo: add page (#6623)

Reinhart Previano Koentjoro 3 years ago
parent
commit
79591fecf6
3 changed files with 76 additions and 0 deletions
  1. 24 0
      pages/common/cups-config.md
  2. 36 0
      pages/common/cupsd.md
  3. 16 0
      pages/common/lpinfo.md

+ 24 - 0
pages/common/cups-config.md

@@ -0,0 +1,24 @@
+# cups-config
+
+> Show technical information about your CUPS print server installation.
+> More information: <https://www.cups.org/doc/man-cups-config.html>.
+
+- Show the currently installed version of CUPS:
+
+`cups-config --version`
+
+- Show where CUPS is currently installed:
+
+`cups-config --serverbin`
+
+- Show the location of CUPS' configuration directory:
+
+`cups-config --serverroot`
+
+- Show the location of CUPS' data directory:
+
+`cups-config --datadir`
+
+- Display all available options:
+
+`cups-config --help`

+ 36 - 0
pages/common/cupsd.md

@@ -0,0 +1,36 @@
+# cupsd
+
+> Server daemon for the CUPS print server.
+> More information: <https://www.cups.org/doc/man-cupsd.html>.
+
+- Start `cupsd` in the background, aka. as a daemon:
+
+`cupsd`
+
+- Start `cupsd` on the [f]oreground:
+
+`cupsd -f`
+
+- [l]aunch `cupsd` on-demand (commonly used by `launchd` or `systemd`):
+
+`cupsd -l`
+
+- Start `cupsd` using the specified [`c`]`upsd.conf` configuration file:
+
+`cupsd -c {{path/to/cupsd.conf}}`
+
+- Start `cupsd` using the specified `cups-file`[`s`]`.conf` configuration file:
+
+`cupsd -s {{path/to/cups-files.conf}}`
+
+- [t]est the [`c`]`upsd.conf` configuration file for errors:
+
+`cupsd -t -c {{path/to/cupsd.conf}}`
+
+- [t]est the `cups-file`[`s`]`.conf` configuration file for errors:
+
+`cupsd -t -s {{path/to/cups-files.conf}}`
+
+- Display all available options:
+
+`cupsd -h`

+ 16 - 0
pages/common/lpinfo.md

@@ -0,0 +1,16 @@
+# lpinfo
+
+> List connected printers and installed drivers for the CUPS print server.
+> More information: <https://www.cups.org/doc/man-lpinfo.html>.
+
+- List all the currently connected printers:
+
+`lpinfo -v`
+
+- List all the currently installed printer drivers:
+
+`lpinfo -m`
+
+- Search installed printer drivers by make and model:
+
+`lpinfo --make-and-model "{{printer_model}}" -m`