all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: myglc2 <myglc2@gmail.com>
To: help-guix@gnu.org
Subject: Re: Setting up plug and print on GuixSD?
Date: Sat, 23 Jul 2016 19:35:52 -0400	[thread overview]
Message-ID: <cu7y44skjvr.fsf@gmail.com> (raw)
In-Reply-To: 8737tbi81y.fsf@gnu.org


I installed cups package on my headless GuixSD server. lpr works fine as
long as the config is specified on the command line,e.g.,

/run/current-system/profile/bin/lpr -H 192.168.1.6 -P C5200n

I don't need cupsd for my purposes, but I looked at it a bit. Notes on
what I discovered on the chance it could be useful to others...

ludo@gnu.org (Ludovic Courtès) writes:

> swedebugia@riseup.net skribis:
>
>> On 2016-02-02 11:45, swedebugia@riseup.net wrote:
>>> On 2016-02-01 14:43, ludo@gnu.org wrote:
>>>> swedebugia@riseup.net skribis:
[...]
>>> The package installs corrupt config-files according to
>>> $ cupsd -t
>>> "/gnu/store/qs3xymcsgxa68i8m188261rhxsszx7za-cups-2.1.0/etc/cups/cups-files.conf"
>>> contains errors.
>
> Yeah, I have the same error, which is interesting given that this file
> comes straight from upstream.
>

This is because the cups-files.conf file contains the line ...

SystemGroup lpadmin sys system root

... w/ groups that don't exist.

> I see that our CUPS is *not* built with --localstatedir=/var, so it will
> try to access and maybe modify stuff in /gnu/store/…-cups-2.1.0, which
> is not good.  We should fix it.
>
> In the meantime, you can run:
>
>   cupsd -c /path/to/your/cupsd.conf
>

Things I did ...

cp -R /gnu/store/1mffhgz5xdrn3ylb5hfqx3vq45jqf8q1-cups-minimal-2.1.0/etc/cups /etc

### replace "/gnu/store/1mffhgz5xdrn3ylb5hfqx3vq45jqf8q1-cups-minimal-2.1.0" with "" 
### in 
### /etc/cups/cupsd.conf &
### /etc/cups/cups-files.conf

mkdir /var/log/cups

### remove unknown Groups from /etc/cups/cupsd.conf

cupsd -t -f -c /etc/cups/cupsd.conf
"/etc/cups/cups-files.conf" is OK.
"/etc/cups/cupsd.conf" is OK.

cupsd -f -c /etc/cups/cupsd.conf

### produced the attached /var/log/cups/error_log

The bottom line is that it looks to me like this might work if the
--localstatedir=/var problem is fixed.

HTH - George


E [23/Jul/2016:19:06:30 -0400] Unable to change ownership of "/gnu/store/nzn63rp7vzzgy85vnxrcj70a9xiz96h1-cups-2.1.0/var/spool/cups" - Read-only file system
E [23/Jul/2016:19:06:30 -0400] Unable to change ownership of "/gnu/store/nzn63rp7vzzgy85vnxrcj70a9xiz96h1-cups-2.1.0/var/cache/cups" - Read-only file system
E [23/Jul/2016:19:06:30 -0400] Unable to change ownership of "/gnu/store/nzn63rp7vzzgy85vnxrcj70a9xiz96h1-cups-2.1.0/var/cache/cups/rss" - Read-only file system
E [23/Jul/2016:19:06:30 -0400] Unable to change ownership of "/gnu/store/nzn63rp7vzzgy85vnxrcj70a9xiz96h1-cups-2.1.0/var/run/cups" - Read-only file system
E [23/Jul/2016:19:06:30 -0400] Unable to change ownership of "/gnu/store/nzn63rp7vzzgy85vnxrcj70a9xiz96h1-cups-2.1.0/var/run/cups/certs" - Read-only file system
E [23/Jul/2016:19:06:30 -0400] Unable to change ownership of "/gnu/store/nzn63rp7vzzgy85vnxrcj70a9xiz96h1-cups-2.1.0/var/spool/cups/tmp" - Read-only file system
E [23/Jul/2016:19:06:30 -0400] Filter "pstopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "pdftopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "texttopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "texttopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "texttopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "texttopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "texttopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "texttopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "rastertopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "bannertopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "urftopdf" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "pdftops" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "gstoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "gstoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "pdftoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Filter "imagetoraster" not found.
E [23/Jul/2016:19:06:30 -0400] Unable to create certificate file /gnu/store/nzn63rp7vzzgy85vnxrcj70a9xiz96h1-cups-2.1.0/var/run/cups/certs/0 - Read-only file system

  reply	other threads:[~2016-07-23 23:38 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
2016-02-02 12:57       ` Ludovic Courtès
2016-07-23 23:35         ` myglc2 [this message]
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=cu7y44skjvr.fsf@gmail.com \
    --to=myglc2@gmail.com \
    --cc=help-guix@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.