From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KHK/GWvvD2QPpwAASxT56A (envelope-from ) for ; Tue, 14 Mar 2023 04:52:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gNniGGvvD2QyxQAAG6o9tA (envelope-from ) for ; Tue, 14 Mar 2023 04:52:11 +0100 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 A800B992A for ; Tue, 14 Mar 2023 04:52:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbvhS-0001z5-E6; Mon, 13 Mar 2023 23:51:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbvhL-0001yh-BW for help-guix@gnu.org; Mon, 13 Mar 2023 23:51:39 -0400 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbvhI-0006mz-VS for help-guix@gnu.org; Mon, 13 Mar 2023 23:51:38 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 4042444551; Tue, 14 Mar 2023 04:51:32 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mfW3ZFcwDLMD; Tue, 14 Mar 2023 04:51:30 +0100 (CET) References: <87r0tv1xbm.fsf@kitej> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1678765890; bh=DTu9C/ra25A7zBUFj5sxytclw8TJZmuVOPk+MoI71YA=; h=References:Date:From:To:Cc:Subject:In-reply-to; b=OzOzJ9CLxA24N1Qwv9Ttv9QRTofmaRZAL0NLHTCs1i/VksyAm4HJ35tJejdFIRW7z 8ce6MFaReuWMUmL3Ns7bkhMkXrPLwHwHMTrczV+It+DG9Etm5Apkccuv1t6mwytm8+ uATKejM5NhfKscZKCMgi0cH4I1BR8brECPR7/KYQhN2E+dc2GOZn95yc1tg859EBZK yNxuei62rcnbrHyVVNeiikTW6sLOdXA35gzLrB8NWN16PmrGg/VbzjaPdTPjwq0SlZ akLWEFJHWJwpOsn5WcLxoI4J/yW/MTK3TEvLMxPWw+r9MpJdDH5Cn7phYRegqxfsgA 5T+oFJLWepJ6Q== Date: Mon, 13 Mar 2023 23:30:27 -0400 From: Gary Johnson To: Luigi Salamone Cc: Guillaume Le Vaillant , help-guix@gnu.org Subject: Re: Unable to find wireless printer/scanner (Canon Pixma MG2950) on Guix. In-reply-to: Message-ID: <87jzzkat33.fsf@disroot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=178.21.23.139; envelope-from=lambdatronic@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=OzOzJ9CL; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=disroot.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678765931; a=rsa-sha256; cv=none; b=AuvLlVKlEOe+ABc8WVRFtZVpeOJbbl+9/T+IdXqVSYvKG2Cwje2JHa9GK6Jk6nQaAUN4ox ReQVC+slSxZXE724dmGa421fusB0sA/+pt4Jz6Uqms37L5sjbRELBW/wfCmHn+OBtWglSZ RJGBmOIF9XCTzk6l5hEQ46IAUsoZdWnnzB272ypbxd2xpLWbKNQW7xi5ksixB6A8ZunK+g CqSN/p5sCjQE7TOuJ7A5aI0D3H+Fv5agtGXnKbBVHDp9wpjsYXM3BU8G73VsnopOyWMt82 ReBknuIhOoSgRRHOr2kqjIbm+NUeVaX1hNktxewIcl1MVfNkAnLXtI/ewfzyvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678765931; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Kt32o5MfL5fwB/bJ3gzJPNSiuDojPY7BBh7TPAp7wlM=; b=jsR35V+VLrpd1c26gqpYWojVMLJ07clidsithvJ6Q2p5Vae+H6z6OBvHr32GY6iFxmJvp5 9sClHgiS1VnZiDsSqTJl5XmL90rnooWogxTnFPQEZfwKHQlbcy1SbXcmjKquMaz25eq7zB BM2JMELVRLfF7xUCIqisj08Z8WmgMEyLp7LJZgddRYWBpTDsp241/NTTjY7ZqpD/STrZ46 9k1Yf4Ou7fBIXFDhXjJsjTOthiwyK8xa4mrMtH7HiGqxeLkTi1QMbB+7az9ww7mttb2lm6 L41psqJbH9WA5IveCVXeGm74qOwRSS8ARsG+C/+wl6WQ6tDw6eZmBTJ8yBgvaQ== X-Migadu-Spam-Score: -6.45 X-Spam-Score: -6.45 X-Migadu-Queue-Id: A800B992A X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=OzOzJ9CL; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=disroot.org X-TUID: MW77MVi6vhf4 Hi Luigi, If you need to edit files under /etc, the first place to look is in the configuration settings for the service you expect to read/write those files. However, if those settings don't exist, a possible fallback is to use Guix's `etc-service`. ```scheme (use-modules ((gnu services) #:select (etc-service)) ((guix gexp) #:select (plain-file))) (define my-resolv.conf "nameserver 192.168.foo.bar") ... (operating-system ... (services (cons* ;; Add files under /etc (etc-service `(("resolv.conf" ,(plain-file "resolv.conf" my-res= olv.conf))))))) ``` Happy hacking! Gary Luigi Salamone writes: > Thanks! > > Yes, I have '(name-service-switch %mdns-host-lookup-nss)' in my > /etc/config.scm. > > Now...as for the scanner: > On Parabola I need to edit the file /etc/sane/pixma.conf (not present in > Guix) to add such a line: bjnp://MyPixmaPrinter.local. See > https://wiki.archlinux.org/title/SANE/Scanner-specific_problems#Canon > I also edit the file /etc/nsswitch.conf as indicated here: > https://wiki.archlinux.org/title/Avahi#Using_Avahi. > > As for the printer: > I need the gutenprint drivers, which are not packaged for Guix. I've seen= a > patch for this: https://issues.guix.gnu.org/45725 > But unfortunately I have no idea which file to patch. > > Greetings! > Luigi > > On Sat, Mar 11, 2023 at 8:55=E2=80=AFAM Guillaume Le Vaillant > wrote: > >> Luigi Salamone skribis: >> >> > Hi! >> > >> > My Canon Pixma MG2950 works fine on Parabola, after configuring avahi >> with >> > nss-mdns. But on Guix I can't find neither the printer nor the scanner. >> > Tried with "system-config-printer" and via "lpinfo". What can I do? He= re >> > the salient lines of my /etc/config.scm: >> > >> > ... >> > (use-package-modules cups scanner) >> > .... >> > >> > (packages (append (list (specification->package "cups") >> > (specification->package "cups-filters") >> > (specification->package "cups-filters") >> > (specification->package "cups-pk-helper") >> > (specification->package "foomatic-filters") >> > (specification->package "ghostscript") >> > (specification->package "sane-backends") >> > (specification->package "simple-scan") >> > (specification->package "nss-mdns") >> > (specification->package "avahi") >> > .... >> > (services >> > (const* (service cups-service-type >> > (cups-configuration >> > (extensions >> > (list cups-filters foomatic-filters hplip)) >> > (web-interface? #t) >> > (default-paper-size "A4"))) >> > (modify-services %desktop-services >> > (sane-service-type _ =3D> >> > sane-backends) >> > >> > Thanks! >> > >> > Luigi >> >> Hi, >> >> Did you put '(name-service-switch %mdns-host-lookup-nss)' in your >> 'operating-system' definition to activate name resolution using mDNS? >> >> There's a chapter about it in the manual: >> https://guix.gnu.org/manual/en/html_node/Name-Service-Switch.html >> --=20 GPG Key ID: C4FBEDBD Use `gpg --search-keys tracker@disroot.org' to find me Protect yourself from surveillance: https://emailselfdefense.fsf.org =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Why is HTML email a security nightmare? See https://useplaintext.email/ Please avoid sending me MS-Office attachments. See http://www.gnu.org/philosophy/no-word-attachments.html