unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Christophe Pisteur <christophe.pisteur@fsfe.org>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: help-guix@gnu.org
Subject: Re: How to configure a printer on Guix System
Date: Sat, 16 May 2020 15:17:15 +0200	[thread overview]
Message-ID: <88cd379a43f606eedd3eba50f726718eb0f346d1.camel@fsfe.org> (raw)
In-Reply-To: <87eerljjqr.fsf@nckx>

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



  reply	other threads:[~2020-05-16 13:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-15  9:22 How to configure a printer on Guix System Christophe Pisteur
2020-05-15 15:33 ` Tobias Geerinckx-Rice
2020-05-16 13:17   ` Christophe Pisteur [this message]
2020-05-16 13:27     ` Marius Bakke
2020-05-18 21:35       ` Christophe Pisteur
  -- strict thread matches above, loose matches on Subject: below --
2021-01-09 18:13 Christophe Pisteur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=88cd379a43f606eedd3eba50f726718eb0f346d1.camel@fsfe.org \
    --to=christophe.pisteur@fsfe.org \
    --cc=help-guix@gnu.org \
    --cc=me@tobias.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).