From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eCg7MzRzTGEekQAAgWs5BA (envelope-from ) for ; Thu, 23 Sep 2021 14:29:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cO3mLjRzTGF5RAAAbx9fmQ (envelope-from ) for ; Thu, 23 Sep 2021 12:29:40 +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 1FE7AE3A7 for ; Thu, 23 Sep 2021 14:29:40 +0200 (CEST) Received: from localhost ([::1]:47084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTNr8-0005tq-Rg for larch@yhetil.org; Thu, 23 Sep 2021 08:29:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTNqf-0005rn-7l for help-guix@gnu.org; Thu, 23 Sep 2021 08:29:09 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:59860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTNqc-0005qV-UX for help-guix@gnu.org; Thu, 23 Sep 2021 08:29:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=t5lR8Gn3aZQl1 NhIGgtG/P1wlKsGGFq0h36MFeSADZE=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=B57A6WO6dNVAIU84CFNewVo8O2aQBBd3S22h36 2MoVqtvJWhshmi8Sip6ea3JTBIrEmU0F5ppxhV+YGVvl3DmgFlpJ0tv4LOQHM9rognsu/b 9J6H8iQ/pigkHQ8gV7W8thcaGLxvRQC0u6tWLJVtClOoo5HqJwFiaEJ0BooE888voHjPxg o1aKptrwINBabuouJ/nV4uSwBlipPnesrWL61iK+pmZGGNzKe1nfaxfECA2wrJ3jp+5Y0z +rvOTsPhXCx5oQoAIAsRM2/RVTqdks2VfO6sE8ttUjajkDW4ufQpGxFCf7xwxaCpIAA/Th JGjxQrKQthrfmL6T0SGqCOkA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 5460a232 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 23 Sep 2021 12:28:59 +0000 (UTC) References: From: Tobias Geerinckx-Rice To: Peter Cc: help-guix@gnu.org Subject: Re: Guix Printing Problems Date: Thu, 23 Sep 2021 14:11:37 +0200 In-reply-to: BIMI-Selector: v=BIMI1; s=default; Message-ID: <871r5f8ohg.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr 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_PASS=-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.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632400180; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=t5lR8Gn3aZQl1NhIGgtG/P1wlKsGGFq0h36MFeSADZE=; b=bxPAqqYqLtTmXs5BgJyX+4ZdPWeqypEN+x4eUr6uUNHJF3tcohWd6tPInwAUnaYF7tf5S5 lmNeNfvSDfpDQHTOQacgYC84ilWs48ztu57ydRNZF4dBTTlLgixUNjJR2w4I6O7SzAjRme e4fjN7ie/WWa6XVpRD/2hY48umMZ0Ok/uPwiYguREClpY93GHwSmBbBZ963pmvSW0Io7Mj Y6DFLPuUZMg+0Jgj0ZDhsFvTrGFv+SBz80BMVYL08vtCksbCMkFO8cr0n74riBJ6HUUfX+ Sq4uZWZ2C4y/SNrrw0h4IXaFqDL+cvTOvFCil5zo/+V9ZD3tzmbxQ5ocKn85fw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632400180; a=rsa-sha256; cv=none; b=E7r1T20Wvsr4jAog4nXUaLMSM64VuIp4pNTev+3qIGe7JjkcdDP9yrGuCT9AwyXvLb3oI7 65Ma3eeLApa3oMkXRVWdB2eDr0a6fhAbQk+y7eHIj4Is2HIUHPA8kNm9uj/ZArgpxYVew0 xUIb42V7Opn/w71pZW1dvlr0AA+iefDwFaIzQJqT74GIa4dOvywSGjnErjUc0o8BbClJRl K2JV7W8baVP/T5cY+fmXcyN1cDMAXA0ialVjGfNQKark4xvAlHh0tPuXnJ2v1jMUsMaY3M IFmRIYFrzHPg254G0I41mTi7uPT5vA3sL4Xq8N0zcTLWNsYgaDzyj2v072WS4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=B57A6WO6; 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-Migadu-Spam-Score: -4.69 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=B57A6WO6; dmarc=pass (policy=reject) header.from=tobias.gr; 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-Migadu-Queue-Id: 1FE7AE3A7 X-Spam-Score: -4.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: pAyTzj8qbrMV --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Peter, Peter =E5=86=99=E9=81=93=EF=BC=9A > Greetings! This is my first post. I hope I'm doing it right, and=20 > please forgive me if I'm not. Welcome! You absolutely are. > http//:localhost:631 brings up a CUPS interface, but produces an=20 > error > message: "The web interface is currently disabled. Run "cupsctl > WebInterface=3Dyes" to enable it." Ah, that wouldn't work anyway: Guix uses read-only configuration=20 files. $ sudo cupsctl WebInterface=3Dyes Password for root on localhost? *** cupsctl: Internal Server Error > I try that but "command not found". Aside from it not working, you can make cupsctl (along with the=20 other cups commands like lp) available for your user with $ guix install cups or for all users by adding it to the (packages =E2=80=A6) field in your=20 system configuration. > Commands I have used like 'systemctl start cups.service' etc > don't work on Guix either. Is there a Guix equivalent? Guix doesn't have systemd. The equivalent service manager is the=20 GNU Shepherd: $ sudo herd restart cups > Attempts to enable the Web interface via the config.scm (GNU=20 > Guix > Reference Manual 10.8.7) have also failed. Now that's odd, because it definitely should. Could you edit your=20 system configuration to read: (service cups-service-type (cups-configuration (web-interface? #t))) and then apply it by running: $ sudo guix system reconfigure [your system .scm] $ sudo herd restart cups and confirm that you still get the same error? > This ought to be encouraging, but when I attempt to print a=20 > working > text document (e.g. via Gedit) although the printer is listed=20 > (along > with IP address and all usual data) it says "Processing - Not > connected?", despite the system clearly knowing the address etc. Yeah, this should work even without a Web interface and with zero=20 configuration. Or so I thought=E2=80=A6 Are you a member of the =E2=80=98lp=E2=80=99 group? IIRC printing is only = allowed=20 to its members. Try: (supplementary-groups '("wheel" "lp" "netdev" "audio" "video"))) > I set the printer up normally in Gnome Print Settings, but if I=20 > look > at the View Print Queue, it says "Document Print Status:=20 > Processing - > Not connected?". If I go into Server Settings to check the=20 > 'Publish > shared printers connected to this system' setting the=20 > troubleshooter > recommended, I get "CUPS server error: There was an error during=20 > CUPS > operation: 'Failed to set settings'". Troubleshooting's final=20 > verdict > is "There is no obvious solution to this problem." Heh :-) As you've probably guessed by now this is due to the read-only=20 configuration file. Only Guix can change CUPS settings through=20 your cups-service-type; not any other helpful programmes. However, =E2=80=98Publish shared printers=E2=80=99 shouldn't need to be on = to=20 print from the local host. It controls whether known printers are=20 further advertised to others over DNS-SD. The upstream Boolean=20 =E2=80=98Browsing=E2=80=99 (exposed by Guix as cups-configuration's =E2=80= =98browsing?=E2=80=99)=20 is exceptionally poorly named in this regard. > I'm foxed, and frustrated, and as a desperate work-round I have=20 > to ssh > the file to another machine to be printed. By the way, I have > successfully set up printing for MacOS, nixOS, Debian, and Arch,=20 > but > GUIX (alone) fails to find the printer, except via the Brother > utility. Thanks for so clearly describing your problem and attempted=20 solutions. Let's hope we can unfox you and get you hooked. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYUxzDA0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15kK8A/j8fIOKPmUp/S3f0ONysUYYJpJM92X0BFD6Fu1sF +v3SAQCtLKic7EPYDbI1mBanPlsMf6ZnwKbQv3SD2brnkjyqCg== =RU2z -----END PGP SIGNATURE----- --=-=-=--