summaryrefslogtreecommitdiff
path: root/source/desktop/command_line_printing/index.rst
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-04-07 14:13:19 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-04-07 14:13:19 +0200
commit6ce3a0d25a3dadcfc8f1dfa873d48865d557de71 (patch)
tree0546c8f78c2177ee45b21f1690ffb50b43c154b1 /source/desktop/command_line_printing/index.rst
parent90d7c5f40f49497a4b78e00a29c1601982c4d3ff (diff)
Page on command line printing
Diffstat (limited to 'source/desktop/command_line_printing/index.rst')
-rw-r--r--source/desktop/command_line_printing/index.rst48
1 files changed, 48 insertions, 0 deletions
diff --git a/source/desktop/command_line_printing/index.rst b/source/desktop/command_line_printing/index.rst
new file mode 100644
index 0000000..f0da0c9
--- /dev/null
+++ b/source/desktop/command_line_printing/index.rst
@@ -0,0 +1,48 @@
+***********************
+ Command Line Printing
+***********************
+
+A list of useful commands and options to interface with a common CUPS
+server from the command line.
+
+.. only:: html
+
+ .. contents::
+
+HOWTOs
+======
+
+Get a list of available printers
+--------------------------------
+
+To get a list of all printers, with details::
+
+ $ lpstat -p
+
+just the list of all available destinations on the local network::
+
+ $ lpstat -e
+
+the current default one::
+
+ $ lpstat -d
+
+Printing in greyscale
+---------------------
+
+To get the list of options available for your printer use::
+
+ $ lpoptions [-p <printer_name>] -l
+
+there will be a line like (note that different printers may have a more
+specific option that you need to enable)::
+
+ ColorModel/Print Color Mode: Gray *RGB
+
+and then you'll have to add ``-o ColorModel=Gray`` to the ``lpr``
+command line, e.g.::
+
+ $ lpr -o ColorModel=Gray <filename>
+
+..
+ vim: set filetype=rst: