Re: How to configure a printer on Guix System

2020-05-16 Thread Marius Bakke
Christophe Pisteur  writes:

> 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.).

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.  :-)


signature.asc
Description: PGP signature


Re: How to configure a printer on Guix System

2020-05-16 Thread Christophe Pisteur
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