[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printer installed, now scanner ?

From: Gary Johnson
Subject: Re: printer installed, now scanner ?
Date: Sat, 19 Feb 2022 17:34:57 -0500

Gottfried <> writes:

> Next step:
> How can I install a scanner, because my printer can also scan.
> I installed a scanning program: "simple scan" "xsane" "gimp"  in
> hoping to be able to scan. But it doesn't.

Scanning is also a service in Guix, so you will need to configure it in
your config.scm. The Guix info manual is very helpful in answering
questions like this. Here, it looks like the solution is in the manual
on the page called "Printing Services".

The service that you need for scanning is called "sane-service-type". It
looks like it is included by default in the "%desktop-services" list, so
you should already have it installed. However, it looks like you may
need to configure the `sane-backends` variable in your config.scm to
activate scanning for your printer.

Here is the relevant documentation from the manual:


 -- Scheme Variable: sane-service-type
     This service provides access to scanners via SANE
     ( by installing the necessary udev
     rules.  It is included in ‘%desktop-services’ (*note Desktop
     Services::) and relies by default on ‘sane-backends-minimal’
     package (see below) for hardware support.

 -- Scheme Variable: sane-backends-minimal
     The default package which the ‘sane-service-type’ installs.  It
     supports many recent scanners.

 -- Scheme Variable: sane-backends
     This package includes support for all scanners that
     ‘sane-backends-minimal’ supports, plus older Hewlett-Packard
     scanners supported by ‘hplip’ package.  In order to use this on a
     system which relies on ‘%desktop-services’, you may use
     ‘modify-services’ (*note ‘modify-services’: Service Reference.) as
     illustrated below:

          (use-modules (gnu))

          (define %my-desktop-services
            ;; List of desktop services that supports a broader range of 
            (modify-services %desktop-services
              (sane-service-type _ => sane-backends)))

            (services %my-desktop-services))


You should follow the steps in the "sane-backends" example to update
your config.scm file and then rebuild your OS by running this command as
your regular (non-root) user:

$ sudo guix system reconfigure config.scm

Good luck and happy hacking!

GPG Key ID: 7BC158ED
Use `gpg --search-keys lambdatronic' to find me
Protect yourself from surveillance:
()  ascii ribbon campaign - against html e-mail
/\   - against proprietary attachments

Why is HTML email a security nightmare? See

Please avoid sending me MS-Office attachments.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]