From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Setting up plug and print on GuixSD? Date: Tue, 02 Feb 2016 13:57:29 +0100 Message-ID: <8737tbi81y.fsf@gnu.org> References: <87h9hs5ywn.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]:58611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQaWZ-0007MW-4i for help-guix@gnu.org; Tue, 02 Feb 2016 07:57:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQaWY-00055t-4M for help-guix@gnu.org; Tue, 02 Feb 2016 07:57:39 -0500 In-Reply-To: (swedebugia@riseup.net's message of "Tue, 02 Feb 2016 12:03:17 +0100") 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-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: swedebugia@riseup.net Cc: help-guix , help-guix-bounces+swedebugia=riseup.net@gnu.org 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: >>> >>>> I installed cups and xfce. What more do I need? >>> >>> For printers available on the network as in a typical =E2=80=9Centerpri= se=E2=80=9D >>> setup, nothing more: the =E2=80=9Cprint=E2=80=9D dialog in Evince and s= imilar tools >>> will >>> discover it and do the right thing. >>> >>>> In >>>> https://gnu.org/software/guix/manual/html_node/Services.html#Services >>>> I did not find a service declaration for CUPS. >>>> >>>> What is the next step? >>> >>> For a locally-connected printer you=E2=80=99ll certainly need a CUPS da= emon >>> running, indeed. I=E2=80=99m not sure exactly what it takes, but it wo= uld >>> clearly be a worthwhile addition! >> >> OK. I gave it a try and this is how far I got: >> The manpages and documentation on cups.org is rather useless regarding >> installation and formatting of the config-files. >> >> The package installs corrupt config-files according to >> $ cupsd -t >> "/gnu/store/qs3xymcsgxa68i8m188261rhxsszx7za-cups-2.1.0/etc/cups/cups-fi= les.conf" >> contains errors. Yeah, I have the same error, which is interesting given that this file comes straight from upstream. >> I have a running working installation of cups 1.7 on my trisquel 7 >> machine. I tried copying the working (very similar) configs from there >> which the trisquel-cupsd report as 'OK'. >> =3D> It did not help and the error is not as detailed as I would like >> and there is no debug option is seems. >> >> Is there a good free non-apple-owned alternative to CUPS I could try >> instead? > > The cupsd.conf I tried is attached. I now also tried this as root and > testing with cupsd afterward without any succes: > cp -r /gnu/store/qs3xymcsgxa68i8m188261rhxsszx7za-cups-2.1.0/var/* /var/ I see that our CUPS is *not* built with --localstatedir=3D/var, so it will try to access and maybe modify stuff in /gnu/store/=E2=80=A6-cups-2.1.0, wh= ich is not good. We should fix it. In the meantime, you can run: cupsd -c /path/to/your/cupsd.conf (It=E2=80=99s still won=E2=80=99t be able to write its log files, though, s= ince it=E2=80=99ll want to write them to /gnu/store, which is immutable on GuixSD.) > Maybe the error is that the socket referenced in cupsd.conf is missing: > "# Only listen for connections from the local machine. > Listen localhost:631 > Listen /var/run/cups/cups.sock" > > The socket is missing in the store and from the path above. I have no > idea yet how to create it manually. It=E2=80=99s probably enough to do =E2=80=9Cmkdir -p /var/run/cups=E2=80=9D= , but I=E2=80=99m not sure this named socket is actually used. HTH, Ludo=E2=80=99.