Guix guided installer should set up printers and scanners

DoneSubmitted by Danny Milosavljevic.
Details
5 participants
  • Danny Milosavljevic
  • Efraim Flashner
  • Ludovic Courtès
  • Mathieu Othacehe
  • pelzflorian (Florian Pelz)
Owner
unassigned
Severity
normal
D
D
Danny Milosavljevic wrote on 10 Nov 2019 15:44
(address . bug-guix@gnu.org)
20191110154459.507093b4@scratchpost.org
Hi,

currently, the Guix guided installer does not set up printers and
scanners (see bug# 38064), making those not work after installation.

It would be good to extend the Guix installer to also install "cups" and
"sane-backends" services, just like it already does for networking services,
if applicable. Long term, we could also do the actual configuration, but
right now even just the services below would already be a big improvement:

The relevant operating-system config snippets are:

(services
(append
(list (service cups-service-type
(cups-configuration
(web-interface? #t)
(extensions
(list cups-filters escpr hplip-minimal))))
(simple-service 'custom-udev-rules udev-service-type
(list sane-backends))
[...]
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl3IImsACgkQ5xo1VCww
uqXHEAf+Ih7rX8f9wNsb3X5O3Tx1rNUAMYedwqtJNcTsrGI2VCqZbh0YM8sIPiKR
gJ6kSDnGKzQD8q2Docfbm5Yk7aw1v+upmnIOyuJ4ftsrawjX8hliq3chq3749u9F
B0InbhgbSRHjzrX/iaugMh9x58uy8XAZITbt/zXLGq4pUQRb+bw8P4NpauXd3mvG
Ao9m8vO3MZ5dID7Mi6SmGEuK+PnjtSSTqL3a4fbHckO7Uyo5h4WWd9mc/EC73LwK
Lmy7AIpN1B7kJpqOG4uvGgboQiXFZpJlXohzYP54gznzdJAWsqzrzX4r3pvQ76bQ
C0cOUOe/7NC430+Wa5TY50cehmcm7g==
=h2+S
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 11 Nov 2019 22:01
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 38161@debbugs.gnu.org)
87lfsmm8k3.fsf@gnu.org
Hi,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

Toggle quote (8 lines)
> (services
> (append
> (list (service cups-service-type
> (cups-configuration
> (web-interface? #t)
> (extensions
> (list cups-filters escpr hplip-minimal))))

This bit above would have to be opt-in, but…

Toggle quote (3 lines)
> (simple-service 'custom-udev-rules udev-service-type
> (list sane-backends))

… this one could perhaps be enabled by default for “desktop”
installations, since, I believe, it doesn’t increase the disk space used
by the resulting system.

WDYT?

Thanks,
Ludo’.
E
E
Efraim Flashner wrote on 12 Nov 2019 08:35
(name . Ludovic Courtès)(address . ludo@gnu.org)
20191112073530.GJ3954@E5400
On Mon, Nov 11, 2019 at 10:01:32PM +0100, Ludovic Courtès wrote:
Toggle quote (17 lines)
> Hi,
>
> Danny Milosavljevic <dannym@scratchpost.org> skribis:
>
> > (services
> > (append
> > (list (service cups-service-type
> > (cups-configuration
> > (web-interface? #t)
> > (extensions
> > (list cups-filters escpr hplip-minimal))))
>
> This bit above would have to be opt-in, but…
>
> > (simple-service 'custom-udev-rules udev-service-type
> > (list sane-backends))

This could be sane-backends-minimal. I checked the udev-rules in both of
them and they're identical.

Toggle quote (6 lines)
>
> … this one could perhaps be enabled by default for “desktop”
> installations, since, I believe, it doesn’t increase the disk space used
> by the resulting system.
>

At the very least I think the udev rules should be added to the cups
service.


--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl3KYL8ACgkQQarn3Mo9
g1HJcg//aJTvBWO5rc+Cz70PkgGNtZsrTVbwsGaewevnw8yuw91IVsE3Jqg0i/KI
DWOpqTddPsUhsT2mU4EKXPxQltZmirr04Oat6MoIPRoIGbbUcnSbNP65XiMnW5oT
zUaIqZUbD2osVW7XqVAr9+aWP58HPO9K0MVdw41atW6+viIwgbbP8wFgY+4ooWyK
e3UbnaLjaDQ5PeAVGPLL+5zkSidNl/D5VvaoLVyOpRrfo4zHGEnR83DcvFJuBKSL
/LkHIdPcjNUE3hIVNUCdzcy6FqH/svLqhd31XXGuGkh7zrC1cI1rrLaaJUFkslT6
/9GMq2TgNUJa3tUxfia+UjIVlC0HYBh0RDfElb1lTZfbEEpy/IMvPEreaHoGCc4t
h/PdewVXSgCbDgtGTUrDJ2Gy+GvItjyRKg3b/tP5DcBwooLnFAXXYX7FYMBZSi2v
FXFYvQlvk4KPb07f9NubokWPQYXw6zGMAZnOn2cHF8f2VFFfk9fQ+vy/s89DgIsy
Q7T82wxZwFYXg1ql2hq94PHkCTifL++LCIOexkz4Y9boj/b5Qi0lPXBI/sA9ag7j
kO8xfXZon01PMwXVe9vBBJ3F76riCd55mDWdA8DrY6F99gL6CVN5+M/WK+wAuvEw
+rSL1AlFxB5HlsPsT6wWjmmTjBhmy74hTIlurN68MghJrJNdY7U=
=cXAr
-----END PGP SIGNATURE-----


D
D
Danny Milosavljevic wrote on 12 Nov 2019 14:49
(name . Efraim Flashner)(address . efraim@flashner.co.il)
20191112144944.580c9bcf@scratchpost.org
Hi,

On Tue, 12 Nov 2019 09:35:30 +0200
Efraim Flashner <efraim@flashner.co.il> wrote:

Toggle quote (3 lines)
> At the very least I think the udev rules should be added to the cups
> service.

Hmm, does cups have anything to do with scanning?

Long term, people will not print things anymore but will scan things
(until such time where that stops, too), so "cups" will be way less
important that "sane" in the long run--and, if optional, it can easily
be that a user has "sane" but not "cups" in the system.

I'd prefer to just add

(simple-service 'custom-udev-rules udev-service-type
(list sane-backends-minimal))

unconditionally (if it doesn't increase the size anyway).
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl3KuHgACgkQ5xo1VCww
uqUeeggAlNASrIYckvJ/bk9dn5pIJpMoTdoKN/dWRRKKhtl3mX585ahsj9TJEJdQ
F0X0AMDUpKvts24QN7+gEb057uotte+Fv+V2uLZodKa0/MX/utnsZnhYVIdUmQ3q
+dYyVUbBKZcD9yfCYRqnm7BAQ61i7HrxJqG7hKy5ytVfSo2KH31kRLr8hvDmudhu
SV64ZJRSqrWKymbdtK/wkPScYhH8GTbcvJsMaNyotvjhIOvpYtWFQab50styveoQ
qq3MxfSyY5w2upvyMds3byiuqCZiWFgQ/qMd9c8OdNt55FCukBXImitz2O4l399S
++s36+L2iNc5C3F3PCybMfV82kPxGQ==
=IzoO
-----END PGP SIGNATURE-----


P
P
pelzflorian (Florian Pelz) wrote on 12 Nov 2019 15:35
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)
20191112143556.b7v5v4fdcixoht7z@pelzflorian.localdomain
On Tue, Nov 12, 2019 at 02:49:44PM +0100, Danny Milosavljevic wrote:
Toggle quote (2 lines)
> Long term, people will not print things anymore but will scan things

This does not match my experience. Printing things at university for
free (up to a quota) is very popular with students. Many prefer
reading on paper or making notes. Paper is like a cheap extra screen.

Nonetheless, instead of making hplip a default, I would prefer having
a video on how to install and configure printing services among top
Web search results. This sounds like much work, but I’m not sure how
much work it really is. Installing services is really easy on Guix.

Regards,
Florian
L
L
Ludovic Courtès wrote on 12 Nov 2019 16:44
(name . pelzflorian (Florian Pelz))(address . pelzflorian@pelzflorian.de)
87mud1p0a0.fsf@gnu.org
Hi!

"pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> skribis:

Toggle quote (6 lines)
> On Tue, Nov 12, 2019 at 02:49:44PM +0100, Danny Milosavljevic wrote:
>> Long term, people will not print things anymore but will scan things
>
> This does not match my experience. Printing things at university for
> free (up to a quota) is very popular with students.

In this context, students to not need to run the CUPS daemon on their
laptop though: they just need to fill out ~/.cups/client.conf so that it
talks to the right pool server, and then everything should “just work.”

Ludo’.
M
M
Mathieu Othacehe wrote on 14 Jan 14:41 +0100
(name . Ludovic Courtès)(address . ludo@gnu.org)
87h7a6fn8y.fsf@gnu.org
The installer is now proposing to install the cups service.

Closing, thanks.

Mathieu
Closed
?
Your comment

This issue is archived.

To comment on this conversation send email to 38161@debbugs.gnu.org