Printing: Difference between revisions

imported>Jiltq
m formatting
imported>IgorM
m Fixed highlighting in console examples
Line 31: Line 31:
* <tt>pkgs.gutenprintBin</tt> &mdash; Additional, binary-only drivers for some printers.
* <tt>pkgs.gutenprintBin</tt> &mdash; Additional, binary-only drivers for some printers.
* <tt>pkgs.hplip</tt> &mdash; Drivers for HP printers.
* <tt>pkgs.hplip</tt> &mdash; Drivers for HP printers.
* <tt>pkgs.hplipWithPlugin</tt> &mdash; Drivers for HP printers, with the proprietary plugin. Use <syntaxhighlight lang="console">NIXPKGS_ALLOW_UNFREE=1 nix-shell -p hplipWithPlugin --run 'sudo -E hp-setup'</syntaxhighlight> to add the printer, regular CUPS UI doesn't seem to work.
* <tt>pkgs.hplipWithPlugin</tt> &mdash; Drivers for HP printers, with the proprietary plugin. Use <syntaxhighlight lang="console">$ NIXPKGS_ALLOW_UNFREE=1 nix-shell -p hplipWithPlugin --run 'sudo -E hp-setup'</syntaxhighlight> to add the printer, regular CUPS UI doesn't seem to work.
* <tt>pkgs.postscript-lexmark</tt> &mdash; Postscript drivers for Lexmark
* <tt>pkgs.postscript-lexmark</tt> &mdash; Postscript drivers for Lexmark
* <tt>pkgs.samsung-unified-linux-driver</tt> &mdash; Proprietary Samsung Drivers
* <tt>pkgs.samsung-unified-linux-driver</tt> &mdash; Proprietary Samsung Drivers
Line 253: Line 253:
Watch the cups logs
Watch the cups logs


<pre>
<syntaxhighlight lang=console>
journalctl --follow --unit=cups
$ journalctl --follow --unit=cups
 
</syntaxhighlight>
# or
or
journalctl --follow --unit=cups | grep -C10 --color=always -i -e 'No such file or directory' -e 'error:'
<syntaxhighlight lang=console>
</pre>
$ journalctl --follow --unit=cups | grep -C10 --color=always -i -e 'No such file or directory' -e 'error:'
</syntaxhighlight>


Start a print job
Start a print job


Now watch the cups logs for errors like <code>No such file or directory</code>
Now watch the cups logs for errors like <code>No such file or directory</code>