From 6ce3a0d25a3dadcfc8f1dfa873d48865d557de71 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 7 Apr 2024 14:13:19 +0200 Subject: Page on command line printing --- source/desktop/command_line_printing/index.rst | 48 ++++++++++++++++++++++++++ source/desktop/index.rst | 9 +++++ source/index.rst | 1 + 3 files changed, 58 insertions(+) create mode 100644 source/desktop/command_line_printing/index.rst create mode 100644 source/desktop/index.rst (limited to 'source') 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 ] -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 + +.. + vim: set filetype=rst: diff --git a/source/desktop/index.rst b/source/desktop/index.rst new file mode 100644 index 0000000..ed85ece --- /dev/null +++ b/source/desktop/index.rst @@ -0,0 +1,9 @@ +######### + Desktop +######### + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + command_line_printing/index diff --git a/source/index.rst b/source/index.rst index d70e647..c176293 100644 --- a/source/index.rst +++ b/source/index.rst @@ -65,6 +65,7 @@ Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. :maxdepth: 2 :caption: Contents: + desktop/index self_hosting/index bibliography/index -- cgit v1.2.3