unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Using cups
Date: Tue, 15 Mar 2016 21:05:12 +0100	[thread overview]
Message-ID: <20160315210512.23989245@scratchpost.org> (raw)
In-Reply-To: <8737ruuj0l.fsf@gnu.org>

Hi,

On Sun, 13 Mar 2016 23:10:02 +0100
ludo@gnu.org (Ludovic Courtès) wrote:

> There’s currently no CUPS service for GuixSD—i.e., nothing you could
> directly add to the ‘services’ field of your ‘operating-system’
> configuration.
> 
> If you would like to contribute one such service, that’d be welcome!
> The relevant documentation starts at:
> 
>   http://www.gnu.org/software/guix/manual/html_node/Defining-Services.html

Thanks.

I'm trying to get cups to work at all right now...

Currently, I found it needs (mostly to write) the following directories and regular files:

----------
(goes into /etc/cups/cups-files.conf)

DataDir /gnu/store/1h53jmsx7gm7b2sfk0h0k6bgmp8fhv0i-cups-2.1.0/share/cups # read-only
DocumentRoot /gnu/store/1h53jmsx7gm7b2sfk0h0k6bgmp8fhv0i-cups-2.1.0/share/doc/cups # read-only

CacheDir /var/cache/cups
StateDir /var/run/cups

#FIXME FontPath /zzz

Printcap /etc/printcap # written
RequestRoot /var/spool/cups # written
ServerBin /gnu/store/1h53jmsx7gm7b2sfk0h0k6bgmp8fhv0i-cups-2.1.0/lib/cups # read-only
ServerRoot /etc/cups # ???
----------

It starts up with that. 

What do we do with these file paths? Should I hard-code the /var paths? Should we ship the cups-files.conf as above in /gnu/store (there's one currently in /gnu/store, but it also specifies SystemGroup "lpadmin sys system root" and so cupsd startup fails - I tried removing it, then it starts up).

For the USB printer, there's /dev/usb/lp0 with group "lp". So when I specify "Group lp" in the cups-files.conf it finds it. There's no PPD for my HP printer so I guess I'll package hplip next. Hplip has weird binary blobs for some stuff. Should we scrape them out?

  reply	other threads:[~2016-03-15 20:05 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-12 18:12 Using cups Danny Milosavljevic
2016-03-13 22:10 ` Ludovic Courtès
2016-03-15 20:05   ` Danny Milosavljevic [this message]
2016-03-15 21:19     ` hplip package (work in progress) Danny Milosavljevic
2016-03-16  8:19       ` Andy Wingo
2016-03-16  8:45         ` Andy Wingo
2016-03-20  0:19           ` Danny Milosavljevic
2016-03-21 22:07             ` [PATCH v2] Add hplip Danny Milosavljevic
2016-03-22  8:28               ` Andy Wingo
2016-03-22 10:30                 ` [PATCH v3] " Danny Milosavljevic
2016-03-22 10:56                   ` Andy Wingo
2016-03-22 19:12                     ` [PATCH v4] " Danny Milosavljevic
2016-03-22 23:51                       ` cups-service Danny Milosavljevic
2016-03-23  0:40                         ` cups-service Danny Milosavljevic
2016-03-23  9:07                           ` cups-service v2 Danny Milosavljevic
2016-04-29 15:09                             ` Ludovic Courtès
2016-03-23  8:45                       ` [PATCH v4] Add hplip Andy Wingo
2016-03-23  9:39                         ` [PATCH v5] " Danny Milosavljevic
2016-03-23 11:36                           ` [PATCH v6] " Danny Milosavljevic
2016-03-23 20:46                             ` Efraim Flashner
2016-03-23 23:56                               ` [PATCH v7] " Danny Milosavljevic
2016-04-04 21:45                                 ` Ludovic Courtès
2016-04-10 20:57                                   ` Danny Milosavljevic
2016-04-29 15:07                                   ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20160315210512.23989245@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).