From: Julien Lepiller <julien@lepiller.eu>
To: help-guix@gnu.org, Gottfried <gottfried@posteo.de>
Subject: Re: install a Printer
Date: Tue, 15 Feb 2022 20:17:05 +0100 [thread overview]
Message-ID: <40E93C3E-B09F-4D30-A58D-1F2916846A1A@lepiller.eu> (raw)
In-Reply-To: <58F809CD-87BC-4868-A57C-78F782BFAE34@lepiller.eu>
Noticed the issue with what I typed (sorry not a the computer right now). Type this instead, at the same location:
(service cups-service-type
(cups-configuration
(web-interface? #t)
(extensions (list cups-filters hplip))))
I added a closing parenthesis on the first line that shouldn't be here, and I forgot to wrap the value of the extensions (now it's a proper list instead of three values which is an error). Also check that the last closing parenthesis at the end of the fourth line closes the first one on the first line and you should be good!
On February 15, 2022 8:02:56 PM GMT+01:00, Julien Lepiller <julien@lepiller.eu> wrote:
>Remove one closing parenthesis here: (service cups-service-type)
>
>On February 15, 2022 7:59:34 PM GMT+01:00, Gottfried <gottfried@posteo.de> wrote:
>>Hi,
>>
>>I did it, as You said, or did I do something wrong?
>>
>>because the message was again:
>>
>>*/etc/config.scm:25:2: Fehler: (services (append (list (service
>>mate-desktop-service-type) (service enlightenment-desktop-service-type)
>>(service cups-service-type) (cups-configuration (web-interface? #t)
>>(extensions list cups-filters hplip))) (service openssh-service-type)
>>(service tor-service-type) (set-xorg-configuration (xorg-configuration
>>(keyboard-layout keyboard-layout)))) %desktop-services): invalid field
>>specifier*
>>
>>;; This is an operating system configuration generated
>>;; by the graphical installer.
>>
>>(use-modules (gnu))
>>(use-service-modules desktop networking ssh xorg)
>>
>>(operating-system
>> (locale "de_DE.utf8")
>> (timezone "Europe/Berlin")
>> (keyboard-layout (keyboard-layout "de"))
>> (host-name "Tuxedo")
>> (users (cons* (user-account
>> (name "gfp")
>> (comment "Gfp")
>> (group "users")
>> (home-directory "/home/gfp")
>> (supplementary-groups
>> '("wheel" "netdev" "audio" "video")))
>> %base-user-accounts))
>> (packages
>> (append
>> (list (specification->package "awesome")
>> (specification->package "nss-certs"))
>> %base-packages))
>> (services
>> (append
>> (list (service mate-desktop-service-type)
>> (service enlightenment-desktop-service-type)
>>*(service cups-service-type)**
>>** (cups-configuration**
>>** (web-interface? #t)**
>>** (extensions list cups-filters hplip))) *
>> (service openssh-service-type)
>> (service tor-service-type)
>> (set-xorg-configuration
>> (xorg-configuration
>> (keyboard-layout keyboard-layout))))
>> %desktop-services))
>>
>> (bootloader
>> (bootloader-configuration
>> (bootloader grub-efi-bootloader)
>> (target "/boot/efi")
>> (keyboard-layout keyboard-layout)))
>> (swap-devices
>> (list (uuid "51d5cd20-4513-4a02-9e35-df4338eccaa0")))
>> (file-systems
>> (cons* (file-system
>> (mount-point "/boot/efi")
>> (device (uuid "BB77-FE3B" 'fat32))
>> (type "vfat"))
>> (file-system
>> (mount-point "/")
>> (device
>> (uuid "4fb0ed7c-61ab-45eb-be0b-ff527b320e6d"
>> 'ext4))
>> (type "ext4"))
>> %base-file-systems)))
>>
>>Gottfried
>>
>>
>>Am 15.02.22 um 19:34 schrieb Julien Lepiller:
>>> Almost. Right place, wrong parenthesis. Please read my first message
>>> again and use the snippet I gave you. What you add must start with
>>> "(service". Make sure the parenthesis are exactly at the same place I
>>> showed you in the example, otherwise you're creating separate objects.
>>> They're used to group things together. service, cups-service-type and
>>> its configuration need to be in the same group.
>>>
>>> On February 15, 2022 7:29:19 PM GMT+01:00, Gottfried
>>> <gottfried@posteo.de> wrote:
>>>
>>> Hi,
>>>
>>> I did this:
>>>
>>> ;; This is an operating system configuration generated
>>> ;; by the graphical installer.
>>>
>>> (use-modules (gnu))
>>> (use-service-modules desktop networking ssh xorg)
>>>
>>> (operating-system
>>> (locale "de_DE.utf8")
>>> (timezone "Europe/Berlin")
>>> (keyboard-layout (keyboard-layout "de"))
>>> (host-name "Tuxedo")
>>> (users (cons* (user-account
>>> (name "gfp")
>>> (comment "Gfp")
>>> (group "users")
>>> (home-directory "/home/gfp")
>>> (supplementary-groups
>>> '("wheel" "netdev" "audio" "video")))
>>> %base-user-accounts))
>>> (packages
>>> (append
>>> (list (specification->package "awesome")
>>> (specification->package "nss-certs"))
>>> %base-packages))
>>> (services
>>> (append
>>> (list (service mate-desktop-service-type)
>>> (service enlightenment-desktop-service-type)
>>> *(cups-service-type)**
>>> ** (cups-configuration)**
>>> ** (web-interface? #t)**
>>> ** (extensions list cups-filters hplip))) *
>>> (service openssh-service-type)
>>> (service tor-service-type)
>>> (set-xorg-configuration
>>> (xorg-configuration
>>> (keyboard-layout keyboard-layout))))
>>> %desktop-services))
>>>
>>> (bootloader
>>> (bootloader-configuration
>>> (bootloader grub-efi-bootloader)
>>> (target "/boot/efi")
>>> (keyboard-layout keyboard-layout)))
>>> (swap-devices
>>> (list (uuid "51d5cd20-4513-4a02-9e35-df4338eccaa0")))
>>> (file-systems
>>> (cons* (file-system
>>> (mount-point "/boot/efi")
>>> (device (uuid "BB77-FE3B" 'fat32))
>>> (type "vfat"))
>>> (file-system
>>> (mount-point "/")
>>> (device
>>> (uuid "4fb0ed7c-61ab-45eb-be0b-ff527b320e6d"
>>> 'ext4))
>>> (type "ext4"))
>>> %base-file-systems)))
>>>
>>> *Answer was:*
>>>
>>> */etc/config.scm:25:2: Fehler: (services (append (list (service
>>> mate-desktop-service-type) (service
>>> enlightenment-desktop-service-type) (cups-service-type)
>>> (cups-configuration) (web-interface? #t) (extensions list
>>> cups-filters hplip))) (service openssh-service-type) (service
>>> tor-service-type) (set-xorg-configuration (xorg-configuration
>>> (keyboard-layout keyboard-layout)))): invalid field specifier
>>> *
>>>
>>> Gottfried
>>>
>>>
>>>
>>> Am 15.02.22 um 18:44 schrieb Julien Lepiller:
>>>> Hi,
>>>>
>>>> I'm sorry if my answer was confusing. Do not modify the
>>>> use-service-modules form. Instead, insert the snippet I gave you
>>>> at the same position as the other (service …) forms, for instance
>>>> right below (service enlightenment-desktop-service-type)
>>>>
>>>> On February 15, 2022 6:31:46 PM GMT+01:00, Gottfried
>>>> <gottfried@posteo.de> wrote:
>>>>
>>>> Hi,
>>>>
>>>> I changed my
>>>>
>>>> /etc/config.scm file,to:
>>>> ;; This is an operating system configuration generated
>>>> ;; by the graphical installer.
>>>>
>>>> (use-modules (gnu))
>>>> (use-service-modules desktop networking ssh xorg*cups-service-type)****(cups-configuration****(web-interface? #t)****(extensions list cups-filters hplip)))***
>>>> (operating-system
>>>> (locale "de_DE.utf8")
>>>> (timezone "Europe/Berlin")
>>>> (keyboard-layout (keyboard-layout "de"))
>>>> (host-name "Tuxedo")
>>>> (users (cons* (user-account
>>>> (name "gfp")
>>>> (comment "Gfp")
>>>> (group "users")
>>>> (home-directory "/home/gfp")
>>>> (supplementary-groups
>>>> '("wheel" "netdev" "audio" "video")))
>>>> %base-user-accounts))
>>>> (packages
>>>> (append
>>>> (list (specification->package "awesome")
>>>> (specification->package "nss-certs"))
>>>> %base-packages))
>>>> (services
>>>> (append
>>>> (list (service mate-desktop-service-type)
>>>> (service enlightenment-desktop-service-type)
>>>> (service openssh-service-type)
>>>> (service tor-service-type)
>>>> (set-xorg-configuration
>>>> (xorg-configuration
>>>> (keyboard-layout keyboard-layout))))
>>>> %desktop-services))
>>>>
>>>> (bootloader
>>>> (bootloader-configuration
>>>> (bootloader grub-efi-bootloader)
>>>> (target "/boot/efi")
>>>> (keyboard-layout keyboard-layout)))
>>>> (swap-devices
>>>> (list (uuid "51d5cd20-4513-4a02-9e35-df4338eccaa0")))
>>>> (file-systems
>>>> (cons* (file-system
>>>> (mount-point "/boot/efi")
>>>> (device (uuid "BB77-FE3B" 'fat32))
>>>> (type "vfat"))
>>>> (file-system
>>>> (mount-point "/")
>>>> (device
>>>> (uuid "4fb0ed7c-61ab-45eb-be0b-ff527b320e6d"
>>>> 'ext4))
>>>> (type "ext4"))
>>>> %base-file-systems)))
>>>>
>>>>
>>>> *The answer was:*
>>>>
>>>> /etc/config.scm:5:0: Fehler: module (gnu services
>>>> cups-service-type) not found Hinweis: Der Befehl `guix system
>>>> search cups-service-type' sucht nach einem zu
>>>> `cups-service-type' passenden Dienst. Wenn Sie eine Ausgabe
>>>> wie `location: gnu/services/foo.scm:188:2' sehen, fügen Sie
>>>> `foo' in Ihre `use-service-modules'-Form ein.
>>>>
>>>> Gottfried
>>>>
>>>> Am 15.02.22 um 17:54 schrieb Julien Lepiller:
>>>>> Your service specification is not at the right place, and
>>>>> incorrect. You have to be careful with parenthesis, as they
>>>>> define the structure of things (similar to braces in other
>>>>> programming languages).
>>>>>
>>>>> The service specification needs to be inside the list, at
>>>>> the same level as all these (service …) forms. In the same
>>>>> way, you declare a service with (service foo-service-type
>>>>> <configuration>), and the configuration is usually a record,
>>>>> so it has parenthesis too.
>>>>>
>>>>> For records, you do:
>>>>>
>>>>> (<record-name>
>>>>> (<field-name> <field-value>)
>>>>> …)
>>>>>
>>>>> With as many fields as you want, as long as they exist. In
>>>>> your config, guix found (cups-service-type) at the same
>>>>> level as other fields of the operating-system, but
>>>>> operating-system doesn't support such a field directly, and
>>>>> the field does not have a value.
>>>>>
>>>>> Overall, try something like this, at the same parenthetical
>>>>> level as the other (service …) forms.
>>>>>
>>>>> (service cups-service-type)
>>>>> (cups-configuration
>>>>> (web-interface? #t)
>>>>> (extensions list cups-filters hplip)))
>>>>>
>>>>> HTH!
>>>>>
>>>>>
>>>>> On February 15, 2022 5:45:34 PM GMT+01:00, Gottfried
>>>>> <gottfried@posteo.de> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I tried to adjust my /etc/config.scm file, but I made some mistake.
>>>>>
>>>>> Could anybody help me please?
>>>>>
>>>>> here the file: (my changes are in bold letters)
>>>>>
>>>>> (I have installed cups, cups-filters, hplip in my guix system)
>>>>>
>>>>>
>>>>> ;; This is an operating system configuration generated
>>>>>
>>>>> ;; by the graphical installer.
>>>>>
>>>>> (use-modules (gnu))
>>>>> (use-service-modules desktop networking ssh xorg *cups*)
>>>>>
>>>>> (operating-system
>>>>> (locale "de_DE.utf8")
>>>>> (timezone "Europe/Berlin")
>>>>> (keyboard-layout (keyboard-layout "de"))
>>>>> (host-name "Tuxedo")
>>>>> (users (cons* (user-account
>>>>> (name "gfp")
>>>>> (comment "Gfp")
>>>>> (group "users")
>>>>> (home-directory "/home/gfp")
>>>>> (supplementary-groups
>>>>> '("wheel" "netdev" "audio" "video")))
>>>>> %base-user-accounts))
>>>>> (packages
>>>>> (append
>>>>> (list (specification->package "awesome")
>>>>> (specification->package "nss-certs"))
>>>>> %base-packages))
>>>>> (services
>>>>> (append
>>>>> (list (service mate-desktop-service-type)
>>>>> (service enlightenment-desktop-service-type)
>>>>> (service openssh-service-type)
>>>>> (service tor-service-type)
>>>>> (set-xorg-configuration
>>>>> (xorg-configuration
>>>>> (keyboard-layout keyboard-layout))))
>>>>> %desktop-services))
>>>>> *(cups-service-type)**
>>>>> ** (cups-configuration**
>>>>> ** (web-interface? #t**
>>>>> ** (extensions list cups-filters hplip))))*
>>>>> (bootloader
>>>>> (bootloader-configuration
>>>>> (bootloader grub-efi-bootloader)
>>>>> (target "/boot/efi")
>>>>> (keyboard-layout keyboard-layout)))
>>>>> (swap-devices
>>>>> (list (uuid "51d5cd20-4513-4a02-9e35-df4338eccaa0")))
>>>>> (file-systems
>>>>> (cons* (file-system
>>>>> (mount-point "/boot/efi")
>>>>> (device (uuid "BB77-FE3B" 'fat32))
>>>>> (type "vfat"))
>>>>> (file-system
>>>>> (mount-point "/")
>>>>> (device
>>>>> (uuid "4fb0ed7c-61ab-45eb-be0b-ff527b320e6d"
>>>>> 'ext4))
>>>>> (type "ext4"))
>>>>> %base-file-systems)))
>>>>>
>>>>>
>>>>> After running: sudo guix system reconfigure /etc/config.scm
>>>>>
>>>>> it said:
>>>>>
>>>>> 35:16: Fehler: (cups-service-type): invalid field specifier
>>>>> Fehler(german word means mistake)
>>>>>
>>>>> What do I have to change?
>>>>>
>>>>>
>>>>> Gottfried
>>>>>
next prev parent reply other threads:[~2022-02-15 19:52 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-15 16:45 install a Printer Gottfried
2022-02-15 16:54 ` Julien Lepiller
2022-02-15 17:31 ` Gottfried
2022-02-15 17:44 ` Julien Lepiller
2022-02-15 18:29 ` Gottfried
2022-02-15 18:34 ` Julien Lepiller
2022-02-15 18:59 ` Gottfried
2022-02-15 19:02 ` Julien Lepiller
2022-02-15 19:17 ` Julien Lepiller [this message]
2022-02-15 19:39 ` Gottfried
2022-02-15 19:51 ` Julien Lepiller
2022-02-16 16:04 ` Gottfried
2022-02-16 17:01 ` Julien Lepiller
2022-02-16 19:40 ` Gottfried
2022-02-16 20:06 ` Julien Lepiller
2022-02-16 21:09 ` Gottfried
2022-02-18 1:39 ` Gary Johnson
2022-02-18 13:52 ` Gottfried
2022-02-18 15:11 ` Gary Johnson
2022-02-18 17:51 ` printer installed, now scanner ? Gottfried
2022-02-19 22:34 ` Gary Johnson
2022-02-20 15:13 ` Gottfried
2022-02-20 15:45 ` SeerLite
2022-02-20 16:20 ` Gottfried
2022-02-20 17:25 ` Gottfried
2022-02-20 19:57 ` SeerLite
2022-02-21 17:13 ` scanner Gottfried
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40E93C3E-B09F-4D30-A58D-1F2916846A1A@lepiller.eu \
--to=julien@lepiller.eu \
--cc=gottfried@posteo.de \
--cc=help-guix@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.