From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: Re: Setting up plug and print on GuixSD? Date: Sat, 23 Jul 2016 19:35:52 -0400 Message-ID: References: <87h9hs5ywn.fsf@gnu.org> <8737tbi81y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bR6Ug-0007SV-4e for help-guix@gnu.org; Sat, 23 Jul 2016 19:38:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bR6Ub-0008Dw-Rr for help-guix@gnu.org; Sat, 23 Jul 2016 19:38:05 -0400 Received: from plane.gmane.org ([80.91.229.3]:52396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bR6Ub-0008Dp-Gv for help-guix@gnu.org; Sat, 23 Jul 2016 19:38:01 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bR6UZ-0008JY-7G for help-guix@gnu.org; Sun, 24 Jul 2016 01:37:59 +0200 Received: from c-73-167-118-254.hsd1.ma.comcast.net ([73.167.118.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Jul 2016 01:37:59 +0200 Received: from myglc2 by c-73-167-118-254.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Jul 2016 01:37:59 +0200 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@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