From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QICSIPPnv16/BQAA0tVLHw (envelope-from ) for ; Sat, 16 May 2020 13:17:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eMUZHPPnv14REAAAbx9fmQ (envelope-from ) for ; Sat, 16 May 2020 13:17:39 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 18656940428 for ; Sat, 16 May 2020 13:17:39 +0000 (UTC) Received: from localhost ([::1]:37996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZwh7-0003WL-Uf for larch@yhetil.org; Sat, 16 May 2020 09:17:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZwgy-0003UE-90 for help-guix@gnu.org; Sat, 16 May 2020 09:17:28 -0400 Received: from mail1.fsfe.org ([2001:aa8:ffed:f5f3::151]:35870) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZwgw-0002bj-Vg for help-guix@gnu.org; Sat, 16 May 2020 09:17:27 -0400 Message-ID: <88cd379a43f606eedd3eba50f726718eb0f346d1.camel@fsfe.org> Subject: Re: How to configure a printer on Guix System From: Christophe Pisteur To: Tobias Geerinckx-Rice Date: Sat, 16 May 2020 15:17:15 +0200 In-Reply-To: <87eerljjqr.fsf@nckx> References: <25916d1e0db98b12dc5d631cd7c03e28e11410a4.camel@fsfe.org> <87eerljjqr.fsf@nckx> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:aa8:ffed:f5f3::151; envelope-from=christophe.pisteur@fsfe.org; helo=mail1.fsfe.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=fsfe.org (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -0.91 X-TUID: EzuxotH6foO1 Le vendredi 15 mai 2020 à 17:33 +0200, Tobias Geerinckx-Rice a écrit : > Christophe, > > Christophe Pisteur 写道: > > Since now, I installed the following packages: cups, > > cups-filters, > > fomatics-filters. > > When I launch http: // localhost: 631 / in my browser > > So the important thing to (un)learn here is that installing Guix > packages will never start random software in the background. This > is by design. > > (Guix) System software is started by services that are part of > your OPERATING-SYSTEM. Here's part of my laptop's CUPS > configuration: > > (use-service-modules ··· > cups > ···) > (operating-system > (services > (cons* ··· > (service cups-service-type > (cups-configuration > (extensions > (list hplip-minimal > ;; Required to display printer options, > ;; even with IPP Everywhere everywhere. > cups-filters > ;; Other possible legacy drivers: > ;; escpr foo2zjs foomatic-filters > ;; hplip-minimal splix > )) > (server-name host-name) > (host-name-lookups #t) > (web-interface? #t) > (default-paper-size "A4") > ;; You get the idea. > ···)) > ··· > %base-services-or-whatever))) Thank you for the explanation and for sharing this configuration. My problem is that I still don't understand guix well enough: I don't know in which file to write this configuration of cups (name and path), nor with what tool to define it (nano, terminal, etc.). Perhaps I do not have enough computer background to use guix to date. It does not matter, I will eventually learn over time, not to mention that some functions will be automated with the evolution of the project, as is the case for the graphic installation. Christophe > Adapt & add this to your system, run ‘sudo guix system > reconfigure’, and you should be able to ‘herd start cups’ if it > isn't automatically. It will certainly be started at boot. > > You should probably uninstall cups and the filter packages since > they don't do what you thought they did, unless you want to keep > them available in $PATH. > > Kind regards, > > T G-R