[Top][All Lists]

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

Re: printer installed, now scanner ?

From: Gottfried
Subject: Re: printer installed, now scanner ?
Date: Sun, 20 Feb 2022 15:13:45 +0000

I found the printing documentation in the manual already, but I didn´t understand exactly what I have to do practically.
That´s why, I wrote this email.

I tried several times to configure /etc/config.scm according to your email, but it failed. I have problems to understand yet the manual (It seems to me the manual is written for people who have already a degree in computers)

this is my config.scm file:
what do I have to add exactly and where?

;; This is an operating system configuration generated
;; by the graphical installer.

(use-modules (gnu))
(use-package-modules cups)
(use-service-modules cups desktop networking ssh xorg)

  (locale "de_DE.utf8")
  (timezone "Europe/Berlin")
  (keyboard-layout (keyboard-layout "de"))
  (host-name "Tuxedo")
  (users (cons* (user-account
                  (name "gfp")
                  (comment "Gfp")
                  (group "users")
                  (home-directory "/home/gfp")
                    '("wheel" "netdev" "audio" "video")))
      (list (specification->package "awesome")
            (specification->package "nss-certs"))                  
      (list (service mate-desktop-service-type)
            (service enlightenment-desktop-service-type)
                        (service cups-service-type
                                        (web-interface? #t)
                                        (extensions (list cups-filters 
                        (service openssh-service-type)
            (service tor-service-type)
                (keyboard-layout keyboard-layout))))
      (bootloader grub-efi-bootloader)
      (target "/boot/efi")
      (keyboard-layout keyboard-layout)))
    (list (uuid "51d5cd20-4513-4a02-9e35-df4338eccaa0")))
    (cons* (file-system
             (mount-point "/boot/efi")
             (device (uuid "BB77-FE3B" 'fat32))
             (type "vfat"))
             (mount-point "/")
               (uuid "4fb0ed7c-61ab-45eb-be0b-ff527b320e6d"
             (type "ext4"))


Am 19.02.22 um 23:34 schrieb Gary Johnson:
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!


reply via email to

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