all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: swedebugia@riseup.net
To: ludo@gnu.org
Cc: help-guix <help-guix@gnu.org>,
	help-guix-bounces+swedebugia=riseup.net@gnu.org
Subject: Re: Setting up plug and print on GuixSD?
Date: Tue, 02 Feb 2016 12:03:17 +0100	[thread overview]
Message-ID: <bf3a2f2c5d93c3e86a3ae04f383f271f@riseup.net> (raw)
In-Reply-To: <c9a016d0aa566c51aa09371ceea8b788@riseup.net>

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

On 2016-02-02 11:45, swedebugia@riseup.net wrote:
> On 2016-02-01 14:43, ludo@gnu.org wrote:
>> swedebugia@riseup.net skribis:
>> 
>>> I installed cups and xfce. What more do I need?
>> 
>> For printers available on the network as in a typical “enterprise”
>> setup, nothing more: the “print” dialog in Evince and similar tools 
>> will
>> discover it and do the right thing.
>> 
>>> In
>>> https://gnu.org/software/guix/manual/html_node/Services.html#Services
>>> I did not find a service declaration for CUPS.
>>> 
>>> What is the next step?
>> 
>> For a locally-connected printer you’ll certainly need a CUPS daemon
>> running, indeed.  I’m not sure exactly what it takes, but it would
>> clearly be a worthwhile addition!
> 
> OK. I gave it a try and this is how far I got:
> The manpages and documentation on cups.org is rather useless regarding
> installation and formatting of the config-files.
> 
> The package installs corrupt config-files according to
> $ cupsd -t
> "/gnu/store/qs3xymcsgxa68i8m188261rhxsszx7za-cups-2.1.0/etc/cups/cups-files.conf"
> contains errors.
> 
> I have a running working installation of cups 1.7 on my trisquel 7
> machine. I tried copying the working (very similar) configs from there
> which the trisquel-cupsd report as 'OK'.
> => It did not help and the error is not as detailed as I would like
> and there is no debug option is seems.
> 
> Is there a good free non-apple-owned alternative to CUPS I could try 
> instead?

The cupsd.conf I tried is attached. I now also tried this as root and 
testing with cupsd afterward without any succes:
cp -r /gnu/store/qs3xymcsgxa68i8m188261rhxsszx7za-cups-2.1.0/var/* /var/

Maybe the error is that the socket referenced in cupsd.conf is missing:
"# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock"

The socket is missing in the store and from the path above. I have no 
idea yet how to create it manually.

cheers
sdb

[-- Attachment #2: cupsd.conf --]
[-- Type: text/plain, Size: 4373 bytes --]

#
# Configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn
#PageLogFormat

# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing Off
BrowseLocalProtocols dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...
WebInterface Yes

# Restrict access to the server...
<Location />
  Order allow,deny
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

  reply	other threads:[~2016-02-02 11:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-29 11:06 Setting up plug and print on GuixSD? swedebugia
2016-02-01 13:43 ` Ludovic Courtès
2016-02-02 10:45   ` swedebugia
2016-02-02 11:03     ` swedebugia [this message]
2016-02-02 12:57       ` Ludovic Courtès
2016-07-23 23:35         ` myglc2
2016-07-23 23:47           ` Tobias Geerinckx-Rice
2016-07-24  0:30           ` Leo Famulari
2016-07-24 19:27             ` Leo Famulari
2016-07-25  3:08               ` myglc2
2016-07-25 15:19                 ` Leo Famulari
2016-07-25 18:37                   ` myglc2

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=bf3a2f2c5d93c3e86a3ae04f383f271f@riseup.net \
    --to=swedebugia@riseup.net \
    --cc=help-guix-bounces+swedebugia=riseup.net@gnu.org \
    --cc=help-guix@gnu.org \
    --cc=ludo@gnu.org \
    /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.