Skip to content

Instantly share code, notes, and snippets.

@artiebits
Created December 3, 2021 07:35
Show Gist options
  • Save artiebits/85b306e331e0edd8abf84a544692379e to your computer and use it in GitHub Desktop.
Save artiebits/85b306e331e0edd8abf84a544692379e to your computer and use it in GitHub Desktop.
How to add dummy printer in CUPS

Create a dummy printer:

lpadmin -p myDummyPrinter -E -v file:///dev/null

Make it the default printer:

lpoptions -d myDummyPrinter

Delete your dummy printer:

lpadmin -x myDummyPrinter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment