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... [email protected] (Ludovic Courtès) writes: > [email protected] skribis: > >> On 2016-02-02 11:45, [email protected] wrote: >>> On 2016-02-01 14:43, [email protected] wrote: >>>> [email protected] 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
