From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Using cups Date: Tue, 15 Mar 2016 21:05:12 +0100 Message-ID: <20160315210512.23989245@scratchpost.org> References: <20160312191233.48a661ca@scratchpost.org> <8737ruuj0l.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afvDZ-0007nG-VN for guix-devel@gnu.org; Tue, 15 Mar 2016 16:05:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afvDU-0008Gq-Ac for guix-devel@gnu.org; Tue, 15 Mar 2016 16:05:25 -0400 In-Reply-To: <8737ruuj0l.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?UTF-8?B?Q291cnTDqHM=?= Cc: guix-devel@gnu.org Hi, On Sun, 13 Mar 2016 23:10:02 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > There=E2=80=99s currently no CUPS service for GuixSD=E2=80=94i.e., nothin= g you could > directly add to the =E2=80=98services=E2=80=99 field of your =E2=80=98ope= rating-system=E2=80=99 > configuration. >=20 > If you would like to contribute one such service, that=E2=80=99d be welco= me! > The relevant documentation starts at: >=20 > 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/d= oc/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.=20 What do we do with these file paths? Should I hard-code the /var paths? Sho= uld we ship the cups-files.conf as above in /gnu/store (there's one current= ly in /gnu/store, but it also specifies SystemGroup "lpadmin sys system roo= t" 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 specif= y "Group lp" in the cups-files.conf it finds it. There's no PPD for my HP p= rinter so I guess I'll package hplip next. Hplip has weird binary blobs for= some stuff. Should we scrape them out?