Scanners: Difference between revisions

imported>Symphorien
usb case for driverless printing
imported>Jiltq
m syntax + wording + parity with manual
Line 1: Line 1:
==Installing scanner support==
==Installing scanner support==
Scanner support is provided by the SANE library. To enable scanner support, amend <tt>/etc/nixos/configuration.nix</tt>:
Scanner support is provided by the [http://www.sane-project.org SANE] library. To enable scanner support, amend your system configuration like so:
 
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
<syntaxhighlight lang="nix">
{
{
   ...
   ...
   hardware.sane.enable = true;
   hardware.sane.enable = true; # enables support for SANE scanners
   ...
   ...
}
}
</syntaxhighlight>
</nowiki>}}
 
Users in the <code>scanner</code> group will gain access to the scanner, or the <code>lp</code> group if it’s also a printer. To add yourself to these groups, amend your system configuration as follows:
It is also very likely that users will required to be in the following groups <tt>scanner</tt> and <tt>lp</tt>, so you can for example configure it as follow on NixOs (don't forget to login/logout after rebuilding NixOs):
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
 
<syntaxhighlight lang="nix">
{
{
   ...
   ...
    users.users.YOURUSERNAME.extraGroups = [ "scanner" "lp" ];
  users.users.YOURUSERNAME.extraGroups = [ "scanner" "lp" ];
   ...
   ...
}
}
</syntaxhighlight>
</nowiki>}}
 
{{evaluate}}
{{evaluate}}
{{Tip|The detection of installed backends by SANE depends on the <tt>LD_LIBRARY_PATH</tt> environment variable, which is set at login. You will need to '''logout''' and '''login''' again for backend changes to take effect after <tt>nixos-rebuild switch</tt>.}}
{{Tip|The detection of installed backends by SANE depends on the <code>LD_LIBRARY_PATH</code> environment variable, which is set at login. You will need to '''logout''' and '''login''' again for backend changes to take effect after evaluation.}}
 
==Testing scanner support==
==Testing scanner support==