* Unable to find wireless printer/scanner (Canon Pixma MG2950) on Guix.
@ 2023-03-07 20:49 Luigi Salamone
2023-03-11 8:47 ` Guillaume Le Vaillant
0 siblings, 1 reply; 5+ messages in thread
From: Luigi Salamone @ 2023-03-07 20:49 UTC (permalink / raw)
To: help-guix
Hi!
My Canon Pixma MG2950 works fine on Parabola, after configuring avahi with
nss-mdns. But on Guix I can't find neither the printer nor the scanner.
Tried with "system-config-printer" and via "lpinfo". What can I do? Here
the salient lines of my /etc/config.scm:
...
(use-package-modules cups scanner)
....
(packages (append (list (specification->package "cups")
(specification->package "cups-filters")
(specification->package "cups-filters")
(specification->package "cups-pk-helper")
(specification->package "foomatic-filters")
(specification->package "ghostscript")
(specification->package "sane-backends")
(specification->package "simple-scan")
(specification->package "nss-mdns")
(specification->package "avahi")
....
(services
(const* (service cups-service-type
(cups-configuration
(extensions
(list cups-filters foomatic-filters hplip))
(web-interface? #t)
(default-paper-size "A4")))
(modify-services %desktop-services
(sane-service-type _ =>
sane-backends)
Thanks!
Luigi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Unable to find wireless printer/scanner (Canon Pixma MG2950) on Guix.
2023-03-07 20:49 Unable to find wireless printer/scanner (Canon Pixma MG2950) on Guix Luigi Salamone
@ 2023-03-11 8:47 ` Guillaume Le Vaillant
2023-03-11 11:26 ` Luigi Salamone
0 siblings, 1 reply; 5+ messages in thread
From: Guillaume Le Vaillant @ 2023-03-11 8:47 UTC (permalink / raw)
To: Luigi Salamone; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 1763 bytes --]
Luigi Salamone <lg.salamone@gmail.com> skribis:
> Hi!
>
> My Canon Pixma MG2950 works fine on Parabola, after configuring avahi with
> nss-mdns. But on Guix I can't find neither the printer nor the scanner.
> Tried with "system-config-printer" and via "lpinfo". What can I do? Here
> the salient lines of my /etc/config.scm:
>
> ...
> (use-package-modules cups scanner)
> ....
>
> (packages (append (list (specification->package "cups")
> (specification->package "cups-filters")
> (specification->package "cups-filters")
> (specification->package "cups-pk-helper")
> (specification->package "foomatic-filters")
> (specification->package "ghostscript")
> (specification->package "sane-backends")
> (specification->package "simple-scan")
> (specification->package "nss-mdns")
> (specification->package "avahi")
> ....
> (services
> (const* (service cups-service-type
> (cups-configuration
> (extensions
> (list cups-filters foomatic-filters hplip))
> (web-interface? #t)
> (default-paper-size "A4")))
> (modify-services %desktop-services
> (sane-service-type _ =>
> sane-backends)
>
> Thanks!
>
> Luigi
Hi,
Did you put '(name-service-switch %mdns-host-lookup-nss)' in your
'operating-system' definition to activate name resolution using mDNS?
There's a chapter about it in the manual:
https://guix.gnu.org/manual/en/html_node/Name-Service-Switch.html
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Unable to find wireless printer/scanner (Canon Pixma MG2950) on Guix.
2023-03-11 8:47 ` Guillaume Le Vaillant
@ 2023-03-11 11:26 ` Luigi Salamone
2023-03-12 14:10 ` Felix Lechner via
2023-03-14 3:30 ` Gary Johnson
0 siblings, 2 replies; 5+ messages in thread
From: Luigi Salamone @ 2023-03-11 11:26 UTC (permalink / raw)
To: Guillaume Le Vaillant, help-guix
Thanks!
Yes, I have '(name-service-switch %mdns-host-lookup-nss)' in my
/etc/config.scm.
Now...as for the scanner:
On Parabola I need to edit the file /etc/sane/pixma.conf (not present in
Guix) to add such a line: bjnp://MyPixmaPrinter.local. See
https://wiki.archlinux.org/title/SANE/Scanner-specific_problems#Canon
I also edit the file /etc/nsswitch.conf as indicated here:
https://wiki.archlinux.org/title/Avahi#Using_Avahi.
As for the printer:
I need the gutenprint drivers, which are not packaged for Guix. I've seen a
patch for this: https://issues.guix.gnu.org/45725
But unfortunately I have no idea which file to patch.
Greetings!
Luigi
On Sat, Mar 11, 2023 at 8:55 AM Guillaume Le Vaillant <glv@posteo.net>
wrote:
> Luigi Salamone <lg.salamone@gmail.com> skribis:
>
> > Hi!
> >
> > My Canon Pixma MG2950 works fine on Parabola, after configuring avahi
> with
> > nss-mdns. But on Guix I can't find neither the printer nor the scanner.
> > Tried with "system-config-printer" and via "lpinfo". What can I do? Here
> > the salient lines of my /etc/config.scm:
> >
> > ...
> > (use-package-modules cups scanner)
> > ....
> >
> > (packages (append (list (specification->package "cups")
> > (specification->package "cups-filters")
> > (specification->package "cups-filters")
> > (specification->package "cups-pk-helper")
> > (specification->package "foomatic-filters")
> > (specification->package "ghostscript")
> > (specification->package "sane-backends")
> > (specification->package "simple-scan")
> > (specification->package "nss-mdns")
> > (specification->package "avahi")
> > ....
> > (services
> > (const* (service cups-service-type
> > (cups-configuration
> > (extensions
> > (list cups-filters foomatic-filters hplip))
> > (web-interface? #t)
> > (default-paper-size "A4")))
> > (modify-services %desktop-services
> > (sane-service-type _ =>
> > sane-backends)
> >
> > Thanks!
> >
> > Luigi
>
> Hi,
>
> Did you put '(name-service-switch %mdns-host-lookup-nss)' in your
> 'operating-system' definition to activate name resolution using mDNS?
>
> There's a chapter about it in the manual:
> https://guix.gnu.org/manual/en/html_node/Name-Service-Switch.html
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Unable to find wireless printer/scanner (Canon Pixma MG2950) on Guix.
2023-03-11 11:26 ` Luigi Salamone
@ 2023-03-12 14:10 ` Felix Lechner via
2023-03-14 3:30 ` Gary Johnson
1 sibling, 0 replies; 5+ messages in thread
From: Felix Lechner via @ 2023-03-12 14:10 UTC (permalink / raw)
To: Luigi Salamone; +Cc: Guillaume Le Vaillant, help-guix
Hi Luigi,
On Sat, Mar 11, 2023 at 3:27 AM Luigi Salamone <lg.salamone@gmail.com> wrote:
>
> I need the gutenprint drivers, which are not packaged for Guix.
I'd also love to have Gutenprint, but my understanding was that it is
unlikely to be packaged anytime soon.
If I recall correctly, Gutenprint ships many small executables in each
driver. They have to be patched individually with absolute paths. A
dedicated individual could make a great difference there.
Kind regards
Felix Lechner
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Unable to find wireless printer/scanner (Canon Pixma MG2950) on Guix.
2023-03-11 11:26 ` Luigi Salamone
2023-03-12 14:10 ` Felix Lechner via
@ 2023-03-14 3:30 ` Gary Johnson
1 sibling, 0 replies; 5+ messages in thread
From: Gary Johnson @ 2023-03-14 3:30 UTC (permalink / raw)
To: Luigi Salamone; +Cc: Guillaume Le Vaillant, help-guix
Hi Luigi,
If you need to edit files under /etc, the first place to look is in
the configuration settings for the service you expect to read/write
those files.
However, if those settings don't exist, a possible fallback is to use
Guix's `etc-service`.
```scheme
(use-modules ((gnu services) #:select (etc-service))
((guix gexp) #:select (plain-file)))
(define my-resolv.conf "nameserver 192.168.foo.bar")
...
(operating-system
...
(services (cons*
;; Add files under /etc
(etc-service `(("resolv.conf" ,(plain-file "resolv.conf" my-resolv.conf)))))))
```
Happy hacking!
Gary
Luigi Salamone <lg.salamone@gmail.com> writes:
> Thanks!
>
> Yes, I have '(name-service-switch %mdns-host-lookup-nss)' in my
> /etc/config.scm.
>
> Now...as for the scanner:
> On Parabola I need to edit the file /etc/sane/pixma.conf (not present in
> Guix) to add such a line: bjnp://MyPixmaPrinter.local. See
> https://wiki.archlinux.org/title/SANE/Scanner-specific_problems#Canon
> I also edit the file /etc/nsswitch.conf as indicated here:
> https://wiki.archlinux.org/title/Avahi#Using_Avahi.
>
> As for the printer:
> I need the gutenprint drivers, which are not packaged for Guix. I've seen a
> patch for this: https://issues.guix.gnu.org/45725
> But unfortunately I have no idea which file to patch.
>
> Greetings!
> Luigi
>
> On Sat, Mar 11, 2023 at 8:55 AM Guillaume Le Vaillant <glv@posteo.net>
> wrote:
>
>> Luigi Salamone <lg.salamone@gmail.com> skribis:
>>
>> > Hi!
>> >
>> > My Canon Pixma MG2950 works fine on Parabola, after configuring avahi
>> with
>> > nss-mdns. But on Guix I can't find neither the printer nor the scanner.
>> > Tried with "system-config-printer" and via "lpinfo". What can I do? Here
>> > the salient lines of my /etc/config.scm:
>> >
>> > ...
>> > (use-package-modules cups scanner)
>> > ....
>> >
>> > (packages (append (list (specification->package "cups")
>> > (specification->package "cups-filters")
>> > (specification->package "cups-filters")
>> > (specification->package "cups-pk-helper")
>> > (specification->package "foomatic-filters")
>> > (specification->package "ghostscript")
>> > (specification->package "sane-backends")
>> > (specification->package "simple-scan")
>> > (specification->package "nss-mdns")
>> > (specification->package "avahi")
>> > ....
>> > (services
>> > (const* (service cups-service-type
>> > (cups-configuration
>> > (extensions
>> > (list cups-filters foomatic-filters hplip))
>> > (web-interface? #t)
>> > (default-paper-size "A4")))
>> > (modify-services %desktop-services
>> > (sane-service-type _ =>
>> > sane-backends)
>> >
>> > Thanks!
>> >
>> > Luigi
>>
>> Hi,
>>
>> Did you put '(name-service-switch %mdns-host-lookup-nss)' in your
>> 'operating-system' definition to activate name resolution using mDNS?
>>
>> There's a chapter about it in the manual:
>> https://guix.gnu.org/manual/en/html_node/Name-Service-Switch.html
>>
--
GPG Key ID: C4FBEDBD
Use `gpg --search-keys tracker@disroot.org' to find me
Protect yourself from surveillance: https://emailselfdefense.fsf.org
=======================================================================
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
Why is HTML email a security nightmare? See https://useplaintext.email/
Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-03-14 3:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-07 20:49 Unable to find wireless printer/scanner (Canon Pixma MG2950) on Guix Luigi Salamone
2023-03-11 8:47 ` Guillaume Le Vaillant
2023-03-11 11:26 ` Luigi Salamone
2023-03-12 14:10 ` Felix Lechner via
2023-03-14 3:30 ` Gary Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).