unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Printer configuration
@ 2020-06-26  2:11 Kyle Andrews
  2020-06-26  3:06 ` Kyle Andrews
  2020-06-26  7:32 ` Wiktor Żelazny
  0 siblings, 2 replies; 11+ messages in thread
From: Kyle Andrews @ 2020-06-26  2:11 UTC (permalink / raw)
  To: help-guix


Dear Guix,

Could you help me get my printer working?

I setup my cups service:

...
(use-modules ...
	     (gnu packages cups)
             ...)
(use-service-modules ... cups ...)
...
  (service cups-service-type
		   (cups-configuration
		    (extensions
		     (list hplip-minimal cups-filters splix))
		    (server-name host-name)
		    (host-name-lookups #t)
		    (web-interface? #t)))
...

Then I reconfigured my system and restarted. Now I can access the CUPS
page on localhost:631. However, I could not figure out that interface
for the life of me. Instead, I found out I could install the
`system-config-printer' package which provided a setup utility that
actually made sense, giving me hope of falling into a "pit of
success". It detected my printer, great! Unfortunately, it failed to
print a test page, popping up a warning box with the text:

Printer 'SCX-4200' requires the '/gnu/store/.../cups/filter/rastertoqpdl'
program but it is not currently installed.

I'm not sure what to do now. Thanks in advance for any suggestions on
how to resolve this.

Best Regards,
Kyle


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Printer configuration
  2020-06-26  2:11 Printer configuration Kyle Andrews
@ 2020-06-26  3:06 ` Kyle Andrews
  2020-06-26  7:32 ` Wiktor Żelazny
  1 sibling, 0 replies; 11+ messages in thread
From: Kyle Andrews @ 2020-06-26  3:06 UTC (permalink / raw)
  To: help-guix


Kyle Andrews writes:

> Dear Guix,
>
> Could you help me get my printer working?
>
> I setup my cups service:
>
> ...
> (use-modules ...
> 	     (gnu packages cups)
>              ...)
> (use-service-modules ... cups ...)
> ...
>   (service cups-service-type
> 		   (cups-configuration
> 		    (extensions
> 		     (list hplip-minimal cups-filters splix))
> 		    (server-name host-name)
> 		    (host-name-lookups #t)
> 		    (web-interface? #t)))
> ...
>
> Then I reconfigured my system and restarted. Now I can access the CUPS
> page on localhost:631. However, I could not figure out that interface
> for the life of me. Instead, I found out I could install the
> `system-config-printer' package which provided a setup utility that
> actually made sense, giving me hope of falling into a "pit of
> success". It detected my printer, great! Unfortunately, it failed to
> print a test page, popping up a warning box with the text:
>
> Printer 'SCX-4200' requires the '/gnu/store/.../cups/filter/rastertoqpdl'
> program but it is not currently installed.
>
> I'm not sure what to do now. Thanks in advance for any suggestions on
> how to resolve this.
>
> Best Regards,
> Kyle

After sending I realized there were two pieces of information I forgot
to include that might be of interest towards diagnosing the difficulty:

1.) The printer is a SCX-4200 and is listed as working on
openprinting.org.

2.) the slice of the error message I showed was incomplete: the guix
package where rastertoqpdl is being searched for is in cups, yet the
tool is clearly available in the splix package. Why is
system-config-printer looking in the wrong package? How can I make the
service see both?

Thanks,
Kyle



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Printer configuration
  2020-06-26  2:11 Printer configuration Kyle Andrews
  2020-06-26  3:06 ` Kyle Andrews
@ 2020-06-26  7:32 ` Wiktor Żelazny
  2020-06-26 16:56   ` Kyle Andrews
  1 sibling, 1 reply; 11+ messages in thread
From: Wiktor Żelazny @ 2020-06-26  7:32 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

On Thu, Jun 25, 2020 at 10:11:36PM -0400, Kyle Andrews wrote:

> (use-modules ...
> 	     (gnu packages cups)
>              ...)

>   (service cups-service-type
> 		   (cups-configuration
> 		    (extensions
> 		     (list hplip-minimal cups-filters splix))
> 		    (server-name host-name)
> 		    (host-name-lookups #t)
> 		    (web-interface? #t)))

Hi Kyle,

Just a wild guess, but how about declaring cups and splix in the
`packages` part of your config.scm?

WŻ

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Printer configuration
  2020-06-26  7:32 ` Wiktor Żelazny
@ 2020-06-26 16:56   ` Kyle Andrews
  2020-06-26 17:27     ` Wiktor Żelazny
  0 siblings, 1 reply; 11+ messages in thread
From: Kyle Andrews @ 2020-06-26 16:56 UTC (permalink / raw)
  To: Wiktor Żelazny; +Cc: help-guix


Wiktor Żelazny writes:

> On Thu, Jun 25, 2020 at 10:11:36PM -0400, Kyle Andrews wrote:
>
>> (use-modules ...
>> 	     (gnu packages cups)
>>              ...)
>
>>   (service cups-service-type
>> 		   (cups-configuration
>> 		    (extensions
>> 		     (list hplip-minimal cups-filters splix))
>> 		    (server-name host-name)
>> 		    (host-name-lookups #t)
>> 		    (web-interface? #t)))
>
> Hi Kyle,
>
> Just a wild guess, but how about declaring cups and splix in the
> `packages` part of your config.scm?
>
> WŻ

Thanks for the suggestion, WZ! I gave it a shot adding cups and splix
into my default packages. Unfortunately, even after completely
restarting the computer I observed no change in the error I get when
trying to print a test page.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Printer configuration
  2020-06-26 16:56   ` Kyle Andrews
@ 2020-06-26 17:27     ` Wiktor Żelazny
  2020-06-26 18:13       ` Kyle Andrews
  0 siblings, 1 reply; 11+ messages in thread
From: Wiktor Żelazny @ 2020-06-26 17:27 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

On Fri, Jun 26, 2020 at 12:56:08PM -0400, Kyle Andrews wrote:

> I observed no change in the error I get when trying to print a test
> page.

Does /gnu/store/.../cups/filter/rastertoqpdl exist?

Is the user printing the test page a member of the lp group (lpadmin
might also help)?

WŻ

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Printer configuration
  2020-06-26 17:27     ` Wiktor Żelazny
@ 2020-06-26 18:13       ` Kyle Andrews
  2020-06-26 19:42         ` Wiktor Żelazny
  2020-06-26 20:19         ` Tobias Geerinckx-Rice
  0 siblings, 2 replies; 11+ messages in thread
From: Kyle Andrews @ 2020-06-26 18:13 UTC (permalink / raw)
  To: Wiktor Żelazny; +Cc: help-guix


Wiktor Żelazny writes:

> On Fri, Jun 26, 2020 at 12:56:08PM -0400, Kyle Andrews wrote:
>
>> I observed no change in the error I get when trying to print a test
>> page.
>
> Does /gnu/store/.../cups/filter/rastertoqpdl exist?
>
> Is the user printing the test page a member of the lp group (lpadmin
> might also help)?
>
> WŻ

Hi WZ,

Thanks for following up.

> Does /gnu/store/.../cups/filter/rastertoqpdl exist?

Yes, it exists in the splix package, but not in the cups
package. Looking at the Guix source code I saw that
~system-config-printer~ (in ~guix/gnu/packages/gnome.scm~) takes input
from cups on build, but not from splix or other print drivers. Could
that be part of the problem?

> Is the user printing the test page a member of the lp group (lpadmin
> might also help)?

The user is in the lp group. I didn't know about lpadmin. I will add
that group as well and see if it changes anything. The CUPS localhost
page was behaving strangely (stalling on load) when I tried to click the
administration tab. Thanks for the tip!

Kyle



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Printer configuration
  2020-06-26 18:13       ` Kyle Andrews
@ 2020-06-26 19:42         ` Wiktor Żelazny
  2020-06-26 22:12           ` Kyle Andrews
  2020-06-26 20:19         ` Tobias Geerinckx-Rice
  1 sibling, 1 reply; 11+ messages in thread
From: Wiktor Żelazny @ 2020-06-26 19:42 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1174 bytes --]

On Fri, Jun 26, 2020 at 02:13:14PM -0400, Kyle Andrews wrote:
>
> Wiktor Żelazny writes:
>
> > Does /gnu/store/.../cups/filter/rastertoqpdl exist?
>
> Yes, it exists in the splix package, but not in the cups package.
> Looking at the Guix source code I saw that ~system-config-printer~ (in
> ~guix/gnu/packages/gnome.scm~) takes input from cups on build, but not
> from splix or other print drivers. Could that be part of the problem?

I wouldn’t be surprised. On the other hand, it does not import other
extensions, such as hplip and foomatic-filters, either.

Did you run guix system reconfigure after adding the packages to
config.scm? Did you try removing and adding the printer again
afterwards?

Does a /var/guix/profiles/system/profile/lib/cups/filter/rastertoqpdl
symlink exist in your filesystem? I think you could try changing the
rastertoqpdl path defined in the system-config-printer configuration (or
CUPS configuration, assuming it’s just a CUPS GUI frontend) from
/gnu/store/… to that path. /gnu/store/ contents are volatile. Again,
just guessing; perhaps the path is hardcoded into the CUPS/splix build
and uneditable.

WŻ

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Printer configuration
  2020-06-26 18:13       ` Kyle Andrews
  2020-06-26 19:42         ` Wiktor Żelazny
@ 2020-06-26 20:19         ` Tobias Geerinckx-Rice
  1 sibling, 0 replies; 11+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-06-26 20:19 UTC (permalink / raw)
  To: Kyle Andrews; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 454 bytes --]

Kyle,

I'd strongly recommend using the ‘real’ CUPS interface at 
localhost:631 over any third-party helper, but…

Kyle Andrews 写道:
> The CUPS localhost page was behaving strangely (stalling on 
> load)
> when I tried to click the administration tab.

I can confirm that the Administration tab freezes on my laptop and 
print server (CUPS proxied through nginx).  That's new :-/  I'll 
report a bug for that.

Thanks,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Printer configuration
  2020-06-26 19:42         ` Wiktor Żelazny
@ 2020-06-26 22:12           ` Kyle Andrews
  2020-06-27  7:02             ` Wiktor Żelazny
  0 siblings, 1 reply; 11+ messages in thread
From: Kyle Andrews @ 2020-06-26 22:12 UTC (permalink / raw)
  To: Wiktor Żelazny; +Cc: help-guix


Wiktor Żelazny writes:

> On Fri, Jun 26, 2020 at 02:13:14PM -0400, Kyle Andrews wrote:
>>
>> Wiktor Żelazny writes:
>>
>> > Does /gnu/store/.../cups/filter/rastertoqpdl exist?
>>
>> Yes, it exists in the splix package, but not in the cups package.
>> Looking at the Guix source code I saw that ~system-config-printer~ (in
>> ~guix/gnu/packages/gnome.scm~) takes input from cups on build, but not
>> from splix or other print drivers. Could that be part of the problem?
>
> I wouldn’t be surprised. On the other hand, it does not import other
> extensions, such as hplip and foomatic-filters, either.
>
> Did you run guix system reconfigure after adding the packages to
> config.scm? Did you try removing and adding the printer again
> afterwards?
>
> Does a /var/guix/profiles/system/profile/lib/cups/filter/rastertoqpdl
> symlink exist in your filesystem? I think you could try changing the
> rastertoqpdl path defined in the system-config-printer configuration (or
> CUPS configuration, assuming it’s just a CUPS GUI frontend) from
> /gnu/store/… to that path. /gnu/store/ contents are volatile. Again,
> just guessing; perhaps the path is hardcoded into the CUPS/splix build
> and uneditable.
>
> WŻ

Hi WZ,

> Did you run guix system reconfigure after adding the packages to
> config.scm? Did you try removing and adding the printer again
> afterwards?

I did reconfigure, but I didn't try removing and adding the printer
again.

> Does a /var/guix/profiles/system/profile/lib/cups/filter/rastertoqpdl
> symlink exist in your filesystem? I think you could try changing the
> rastertoqpdl path defined in the system-config-printer configuration (or
> CUPS configuration, assuming it’s just a CUPS GUI frontend) from
> /gnu/store/… to that path. /gnu/store/ contents are volatile. Again,
> just guessing; perhaps the path is hardcoded into the CUPS/splix build
> and uneditable.

It does appear to exist. Actually, I figured out how to successfully
print a document using ~libreoffice --headless -p test.odt~. So, I think
my printer problem is actually reflecting a problem with
system-config-printer.

Kyle



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Printer configuration
  2020-06-26 22:12           ` Kyle Andrews
@ 2020-06-27  7:02             ` Wiktor Żelazny
  2020-06-27 16:02               ` Kyle Andrews
  0 siblings, 1 reply; 11+ messages in thread
From: Wiktor Żelazny @ 2020-06-27  7:02 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 564 bytes --]

On Fri, Jun 26, 2020 at 06:12:23PM -0400, Kyle Andrews wrote:

> I figured out how to successfully print a document using ~libreoffice
> --headless -p test.odt~. So, I think my printer problem is actually
> reflecting a problem with system-config-printer.

Or perhaps the difference is that that print job did not have to involve
rastertoqpdl. Have you tried something like

   lpr a-simple-text-file.txt

?

Of course, I second Tobias in advising you to try localhost:631. CUPS
may figure out some smart configuration for you.

Good luck,

WŻ

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Printer configuration
  2020-06-27  7:02             ` Wiktor Żelazny
@ 2020-06-27 16:02               ` Kyle Andrews
  0 siblings, 0 replies; 11+ messages in thread
From: Kyle Andrews @ 2020-06-27 16:02 UTC (permalink / raw)
  To: Wiktor Żelazny; +Cc: help-guix


Wiktor Żelazny writes:

> On Fri, Jun 26, 2020 at 06:12:23PM -0400, Kyle Andrews wrote:
>
>> I figured out how to successfully print a document using ~libreoffice
>> --headless -p test.odt~. So, I think my printer problem is actually
>> reflecting a problem with system-config-printer.
>
> Or perhaps the difference is that that print job did not have to involve
> rastertoqpdl. Have you tried something like
>
>    lpr a-simple-text-file.txt
>
> ?
>

Yes, I did. That worked too!

> Of course, I second Tobias in advising you to try localhost:631. CUPS
> may figure out some smart configuration for you.

I was able to print a test page through the CUPS web interface as
well. So, this further points to system-config-printer being buggy.

> Good luck,
>
> WŻ

Thanks for all your help.

Kyle


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-06-27 16:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-26  2:11 Printer configuration Kyle Andrews
2020-06-26  3:06 ` Kyle Andrews
2020-06-26  7:32 ` Wiktor Żelazny
2020-06-26 16:56   ` Kyle Andrews
2020-06-26 17:27     ` Wiktor Żelazny
2020-06-26 18:13       ` Kyle Andrews
2020-06-26 19:42         ` Wiktor Żelazny
2020-06-26 22:12           ` Kyle Andrews
2020-06-27  7:02             ` Wiktor Żelazny
2020-06-27 16:02               ` Kyle Andrews
2020-06-26 20:19         ` Tobias Geerinckx-Rice

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).