all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tobias Geerinckx-Rice <me@tobias.gr>
To: Peter <stuffbox@tpg.com.au>
Cc: help-guix@gnu.org
Subject: Re: Guix Printing Problems
Date: Thu, 23 Sep 2021 14:11:37 +0200	[thread overview]
Message-ID: <871r5f8ohg.fsf@nckx> (raw)
In-Reply-To: <A1089AC0-3721-4B73-8280-EDCA902D35EB@tpg.com.au>

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

Peter,

Peter 写道:
> Greetings! This is my first post. I hope I'm doing it right, and 
> please forgive me if I'm not.

Welcome!  You absolutely are.

> http//:localhost:631 brings up a CUPS interface, but produces an 
> error
> message: "The web interface is currently disabled. Run "cupsctl
> WebInterface=yes" to enable it."

Ah, that wouldn't work anyway: Guix uses read-only configuration 
files.

  $ sudo cupsctl WebInterface=yes
  Password for root on localhost? ***
  cupsctl: Internal Server Error

> I try that but "command not found".

Aside from it not working, you can make cupsctl (along with the 
other cups commands like lp) available for your user with

  $ guix install cups

or for all users by adding it to the (packages …) field in your 
system configuration.

> Commands I have used like 'systemctl start cups.service' etc
> don't work on Guix either. Is there a Guix equivalent?

Guix doesn't have systemd.  The equivalent service manager is the 
GNU Shepherd:

  $ sudo herd restart cups

> Attempts to enable the Web interface via the config.scm (GNU 
> Guix
> Reference Manual 10.8.7) have also failed.

Now that's odd, because it definitely should.  Could you edit your 
system configuration to read:

     (service cups-service-type
              (cups-configuration
                (web-interface? #t)))

and then apply it by running:

  $ sudo guix system reconfigure [your system .scm]
  $ sudo herd restart cups

and confirm that you still get the same error?

> This ought to be encouraging, but when I attempt to print a 
> working
> text document (e.g. via Gedit) although the printer is listed 
> (along
> with IP address and all usual data) it says "Processing - Not
> connected?", despite the system clearly knowing the address etc.

Yeah, this should work even without a Web interface and with zero 
configuration.  Or so I thought…

Are you a member of the ‘lp’ group?  IIRC printing is only allowed 
to its members.  Try:

    (supplementary-groups
     '("wheel" "lp" "netdev" "audio" "video")))

> I set the printer up normally in Gnome Print Settings, but if I 
> look
> at the View Print Queue, it says "Document Print Status: 
> Processing -
> Not connected?". If I go into Server Settings to check the 
> 'Publish
> shared printers connected to this system' setting the 
> troubleshooter
> recommended, I get "CUPS server error: There was an error during 
> CUPS
> operation: 'Failed to set settings'". Troubleshooting's final 
> verdict
> is "There is no obvious solution to this problem."

Heh :-)

As you've probably guessed by now this is due to the read-only 
configuration file.  Only Guix can change CUPS settings through 
your cups-service-type; not any other helpful programmes.

However, ‘Publish shared printers’ shouldn't need to be on to 
print from the local host.  It controls whether known printers are 
further advertised to others over DNS-SD.  The upstream Boolean 
‘Browsing’ (exposed by Guix as cups-configuration's ‘browsing?’) 
is exceptionally poorly named in this regard.

> I'm foxed, and frustrated, and as a desperate work-round I have 
> to ssh
> the file to another machine to be printed. By the way, I have
> successfully set up printing for MacOS, nixOS, Debian, and Arch, 
> but
> GUIX (alone) fails to find the printer, except via the Brother
> utility.

Thanks for so clearly describing your problem and attempted 
solutions.  Let's hope we can unfox you and get you hooked.

Kind regards,

T G-R

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

  reply	other threads:[~2021-09-23 12:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23 11:30 Guix Printing Problems Peter
2021-09-23 12:11 ` Tobias Geerinckx-Rice [this message]
2021-09-23 18:50   ` Peter
2021-09-23 12:16 ` Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871r5f8ohg.fsf@nckx \
    --to=me@tobias.gr \
    --cc=help-guix@gnu.org \
    --cc=stuffbox@tpg.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.