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 eM8vH9r/wl7eEgAA0tVLHw (envelope-from ) for ; Mon, 18 May 2020 21:36:26 +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 eBkSG9r/wl4ufgAAbx9fmQ (envelope-from ) for ; Mon, 18 May 2020 21:36:26 +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 C5114940428 for ; Mon, 18 May 2020 21:36:25 +0000 (UTC) Received: from localhost ([::1]:55448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1janQu-0000JU-Fu for larch@yhetil.org; Mon, 18 May 2020 17:36:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1janQW-0000JN-W1 for help-guix@gnu.org; Mon, 18 May 2020 17:36:01 -0400 Received: from mail1.fsfe.org ([217.69.89.151]:55482) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1janQV-00018V-Hl for help-guix@gnu.org; Mon, 18 May 2020 17:36:00 -0400 Message-ID: <29d9930252d6e0c028816fcca5bc529469316a92.camel@fsfe.org> Subject: Re: How to configure a printer on Guix System From: Christophe Pisteur To: Marius Bakke , Tobias Geerinckx-Rice Date: Mon, 18 May 2020 23:35:55 +0200 In-Reply-To: <878shst3g6.fsf@devup.no> References: <25916d1e0db98b12dc5d631cd7c03e28e11410a4.camel@fsfe.org> <87eerljjqr.fsf@nckx> <88cd379a43f606eedd3eba50f726718eb0f346d1.camel@fsfe.org> <878shst3g6.fsf@devup.no> Content-Type: multipart/mixed; boundary="=-STWdYu+9o68koC6jQmWX" User-Agent: Evolution 3.36.2-1 MIME-Version: 1.0 Received-SPF: pass client-ip=217.69.89.151; envelope-from=christophe.pisteur@fsfe.org; helo=mail1.fsfe.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/18 17:35:56 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=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.19 X-TUID: mxROEoLR1mqz --=-STWdYu+9o68koC6jQmWX Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Le samedi 16 mai 2020 à 15:27 +0200, Marius Bakke a écrit : > Christophe Pisteur writes: > > > Le vendredi 15 mai 2020 à 17:33 +0200, Tobias Geerinckx-Rice a > > écrit : > > > Christophe, > > > > > > (...) > > > (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.). > > Guix is deceptively simple. This goes in your /etc/config.scm, like > any other system-level change. You probably already have a (services > ...) in there: the challenge is to sew in the stanza provided by > Tobias with your existing configuration. > > Afterwards you need to run 'guix system reconfigure /etc/config.scm'. > > > 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. > > You should not need a computer background to use Guix. In fact _no_ > background may be better, as Guix is radically different from any > other operating system you may have used (unless you come from > NixOS). > > The only thing required is patience to read the manual, and the > courage to ask on IRC or mailing lists if you get stuck. :-) Hello, Thank you for the detailed explanations. I'm almost there: - I modified the file /etc/config.scm according to the indications of Tobias G-R, added (gnu packages cups) in "use-modules", then performed "guix reconfigure /etc/config.scm" and after restarting, I was able to access the web interface of cups (http://localhost:631/). - I added my network printer, used the ppd file from openprinting.org, and the printer is recognized. - when I print the test page, the cups web interface says that the connection with the printer is established, but the printing fails due to the error: "Filter failed". In attached document, my config.scm file to know if it contains an error and which filters are installed. Any idea? Christophe --=-STWdYu+9o68koC6jQmWX Content-Disposition: attachment; filename="config.scm" Content-Type: text/x-scheme; name="config.scm"; charset="UTF-8" Content-Transfer-Encoding: base64 OzsgVGhpcyBpcyBhbiBvcGVyYXRpbmcgc3lzdGVtIGNvbmZpZ3VyYXRpb24gZ2VuZXJhdGVkCjs7 IGJ5IHRoZSBncmFwaGljYWwgaW5zdGFsbGVyLgoKKHVzZS1tb2R1bGVzIChnbnUpIChnbnUgcGFj a2FnZXMgY3VwcykpCih1c2Utc2VydmljZS1tb2R1bGVzIGRlc2t0b3AgbmV0d29ya2luZyBzc2gg eG9yZyBjdXBzKQoKKG9wZXJhdGluZy1zeXN0ZW0KICAobG9jYWxlICJmcl9DSC51dGY4IikKICAo dGltZXpvbmUgIkV1cm9wZS9adXJpY2giKQogIChrZXlib2FyZC1sYXlvdXQgKGtleWJvYXJkLWxh eW91dCAiY2giICJmciIpKQogIChob3N0LW5hbWUgInQ0MDAiKQogICh1c2VycyAoY29ucyogKHVz ZXItYWNjb3VudAogICAgICAgICAgICAgICAgICAobmFtZSAiY2hyaXN0b3BoZSIpCiAgICAgICAg ICAgICAgICAgIChjb21tZW50ICJDaHJpc3RvcGhlIFBpc3RldXIiKQogICAgICAgICAgICAgICAg ICAoZ3JvdXAgInVzZXJzIikKICAgICAgICAgICAgICAgICAgKGhvbWUtZGlyZWN0b3J5ICIvaG9t ZS9jaHJpc3RvcGhlIikKICAgICAgICAgICAgICAgICAgKHN1cHBsZW1lbnRhcnktZ3JvdXBzCiAg ICAgICAgICAgICAgICAgICAgJygid2hlZWwiICJuZXRkZXYiICJhdWRpbyIgInZpZGVvIikpKQog ICAgICAgICAgICAgICAgJWJhc2UtdXNlci1hY2NvdW50cykpCiAgKHBhY2thZ2VzCiAgICAoYXBw ZW5kCiAgICAgIChsaXN0IChzcGVjaWZpY2F0aW9uLT5wYWNrYWdlICJuc3MtY2VydHMiKSkKICAg ICAgJWJhc2UtcGFja2FnZXMpKQogIChzZXJ2aWNlcwogICAgKGFwcGVuZAogICAgICAobGlzdCAo c2VydmljZSBnbm9tZS1kZXNrdG9wLXNlcnZpY2UtdHlwZSkKICAgICAgICAgICAgKHNlcnZpY2Ug b3BlbnNzaC1zZXJ2aWNlLXR5cGUpCiAgICAgICAgICAgIChzZXQteG9yZy1jb25maWd1cmF0aW9u CiAgICAgICAgICAgICAgKHhvcmctY29uZmlndXJhdGlvbgogICAgICAgICAgICAgICAgKGtleWJv YXJkLWxheW91dCBrZXlib2FyZC1sYXlvdXQpKSkKICAgICAgICAgICAgKHNlcnZpY2UgY3Vwcy1z ZXJ2aWNlLXR5cGUKICAgICAgICAgICAgICAoY3Vwcy1jb25maWd1cmF0aW9uCiAgICAgICAgICAg ICAgICAoZXh0ZW5zaW9ucwogICAgICAgICAgICAgICAgICAobGlzdCBjdXBzLWZpbHRlcnMgaHBs aXAtbWluaW1hbCkpCiAgICAgICAgICAgICAgICAoc2VydmVyLW5hbWUgaG9zdC1uYW1lKQogICAg ICAgICAgICAgICAgKGhvc3QtbmFtZS1sb29rdXBzICN0KQogICAgICAgICAgICAgICAgKHdlYi1p bnRlcmZhY2U/ICN0KQogICAgICAgICAgICAgICAgKGRlZmF1bHQtcGFwZXItc2l6ZSAiQTQiKSkp KSAgICAgICAgICAgICAgIAogICAgICAlZGVza3RvcC1zZXJ2aWNlcykpCiAgKGJvb3Rsb2FkZXIK ICAgIChib290bG9hZGVyLWNvbmZpZ3VyYXRpb24KICAgICAgKGJvb3Rsb2FkZXIgZ3J1Yi1ib290 bG9hZGVyKQogICAgICAodGFyZ2V0ICIvZGV2L3NkYSIpCiAgICAgIChrZXlib2FyZC1sYXlvdXQg a2V5Ym9hcmQtbGF5b3V0KSkpCiAgKHN3YXAtZGV2aWNlcyAobGlzdCAiL2Rldi9zZGExIikpCiAg KGZpbGUtc3lzdGVtcwogICAgKGNvbnMqIChmaWxlLXN5c3RlbQogICAgICAgICAgICAgKG1vdW50 LXBvaW50ICIvIikKICAgICAgICAgICAgIChkZXZpY2UKICAgICAgICAgICAgICAgKHV1aWQgImJm YmVlNThlLTQ5NmMtNGYwMS04YjhhLTI5NTljNTA1YzkzNiIKICAgICAgICAgICAgICAgICAgICAg J2V4dDQpKQogICAgICAgICAgICAgKHR5cGUgImV4dDQiKSkKICAgICAgICAgICAlYmFzZS1maWxl LXN5c3RlbXMpKSkK --=-STWdYu+9o68koC6jQmWX--