unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: <znavko@tutanota.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: Help Guix <help-guix@gnu.org>
Subject: Re: service 'dhcpv4-daemon' requires 'networking', which is not provided by any service
Date: Fri, 5 Apr 2019 20:34:28 +0200 (CEST)	[thread overview]
Message-ID: <Lbija46--F-1@tutanota.com> (raw)
In-Reply-To: <87zhp4wgg2.fsf@elephly.net>


[-- Attachment #1.1: Type: text/plain, Size: 4530 bytes --]

Hello, Ricardo Wurmus!

I have rewrote my config, including all modifications into the one (modify-services) function, I've added dhcp-client-service-type to (services) section.

But networking is not running after reconfigure.

# guix system reconfigure /etc/config.scm
...console-font-tty3 console-font-tty4 console-font-tty5 console-font-tty6 virtual-terminal dbus-system elogind upower-daemon wpa-supplicant xorg-server networking...
To complete the upgrade, run 'herd restart SERVICE' to stop,
upgrade, and restart each service that was not automatically restarted.
shepherd: Evaluating user expression (let* ((services (map primitive-load (?))) # ?) ?).
shepherd: Service user-homes could not be started.
shepherd: Service term-auto could not be started.
shepherd: Service networking could not be started.
bootloader successfully installed on '/dev/sda'

# tail -n150 /var/log/messages
...
Apr  5 21:17:18 localhost nscd: 335 monitored file `/etc/hosts` was deleted, removing watch
Apr  5 21:17:18 localhost nscd: 335 monitored file `/etc/hosts` was created, adding watch
Apr  5 21:17:18 localhost nscd: 335 monitored file `/etc/services` was deleted, removing watch
Apr  5 21:17:18 localhost nscd: 335 monitored file `/etc/services` was created, adding watch
Apr  5 21:17:18 localhost shepherd[1]: Evaluating user expression (let* ((services (map primitive-load (?))) # ?) ?). 
Apr  5 21:17:19 localhost shepherd[1]: Service user-homes could not be started. 
Apr  5 21:17:19 localhost shepherd[1]: Service term-auto could not be started. 
Apr  5 21:17:19 localhost vmunix: [ 1821.593856] 0000:03:00.0: Missing Free firmware (non-Free firmware loading is disabled)
Apr  5 21:17:19 localhost vmunix: [ 1821.593895] r8169 0000:03:00.0 enp3s0: unable to load firmware patch /*(DEBLOBBED)*/ (-2)
Apr  5 21:17:19 localhost vmunix: [ 1821.594150] Generic PHY r8169-300:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
Apr  5 21:17:19 localhost vmunix: [ 1821.694129] r8169 0000:03:00.0 enp3s0: Link is Down
Apr  5 21:17:19 localhost dhclient: Unsupported device type 65534 for "tun0"
Apr  5 21:17:19 localhost dhclient: 
Apr  5 21:17:19 localhost dhclient: If you think you have received this message due to a bug rather
Apr  5 21:17:19 localhost dhclient: than a configuration issue please read the section on submitting
Apr  5 21:17:19 localhost dhclient: bugs on either our web page at www.isc.org or in the README file
Apr  5 21:17:19 localhost dhclient: before submitting a bug.  These pages explain the proper
Apr  5 21:17:19 localhost dhclient: process and the information we find helpful for debugging.
Apr  5 21:17:19 localhost dhclient: 
Apr  5 21:17:19 localhost dhclient: exiting.
Apr  5 21:17:19 localhost shepherd[1]: Service networking could not be started.

During boot I saw: rfkill: WLAN soft blocked, and after start up I've made sure of it:
# rfkill list
0: ideapad_wlan: Wireless LAN
    Soft blocked: yes
    Hard blocked: no
1: phy0: Wireless LAN
    Soft blocked: yes
    Hard blocked: no
2: ideapad_bluetooth: Bluetooth
    Soft blocked: yes
    Hard blocked: no

I do not know how to overcome this soft blocking of wlan. In other distribution I added to blacklist ideapad_laptop and it worked, but here when I add ideapad_laptop to modprobe blacklist, ifconfig does not see any interface but only phy0. I think this soft blocking happens because I have bluetooth and wifi and may be they conflicts using one driver? I want to disable bluetooth at all, but lines in my config do not help:
(remove (lambda (service) (eq? (service-kind service) bluetooth-service))

Let me know if there is any way to solve all these troubles?

Apr 5, 2019, 4:43 PM by rekado@elephly.net:

>
> znavko@tutanota.com <mailto:znavko@tutanota.com>>  writes:
>
>> I am an anti-fan of NetworkManager. I need wpa_supplicant with dhcp, I
>> try this config with dhcpcd. But it needs networking service. Please,
>> how to add networking service without adding
>> network-manager-service-type?
>>
>
> Don’t setup a dhcp daemon then, but use dhcp-client-service-type.  Quoth
> the manual:
>
> -- Scheme Variable: dhcp-client-service-type
> This is the type of services that run DHCP, a Dynamic Host
> Configuration Protocol (DHCP) client, on all the non-loopback
> network interfaces.  Its value is the DHCP client package to use,
> ‘isc-dhcp’ by default.
>
> --
> Ricardo
>


[-- Attachment #1.2: Type: text/html, Size: 7441 bytes --]

[-- Attachment #2: config-wpa-dhclient.conf --]
[-- Type: application/octet-stream, Size: 4116 bytes --]

;;this is znavko's cute config

(use-modules (gnu) (gnu system nss)
             (gnu system locale) ;;for locale-definition
             (gnu services desktop)
             ;;(gnu services dns) ;;for dnsmasq
             (srfi srfi-1) ;;for remove function
             (gnu services networking) ;;for remove ntp
             (gnu services avahi) ;;for remove avahi
             (gnu services xorg)
             ;;(gnu services databases);;for postgres
             (gnu packages admin) ;;for wpa_supplicant
)
(use-service-modules desktop)
(use-package-modules certs gnome)

(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8")
  (bootloader (bootloader-configuration
                (bootloader grub-bootloader)
                (target "/dev/sda")))
  (file-systems (cons (file-system
                        (device "/dev/sda1") (mount-point "/") (type "ext4"))
                      %base-file-systems))
  (swap-devices '("/dev/sda2"))

  (users (cons* (user-account (name "bob") (group "users")
                (supplementary-groups '("wheel" "netdev" "audio" "video"))
                (home-directory "/home/bob"))
                (user-account (name "mom") (group "users")
                (supplementary-groups '("wheel" "netdev" "audio" "video"))
                (home-directory "/home/mom"))
               %base-user-accounts))

  ;; This is where we specify system-wide packages.
  (packages (cons* nss-certs         ;for HTTPS access
                   gvfs              ;for user mounts
		   wpa-supplicant
		   isc-dhcp
                   %base-packages))

  (services (cons*  
              ;;(service postgresql-service-type)
              (service xfce-desktop-service-type)

              (service dhcp-client-service-type)

                (modify-services      
                  (remove (lambda (service)
                    (eq? (service-kind service) ntp-service-type))
                    (remove (lambda (service)
                      (eq? (service-kind service) avahi-service-type))
                      (remove (lambda (service)
                        (eq? (service-kind service) bluetooth-service))

                        (remove (lambda (service)
                          (eq? (service-kind service) network-manager-service-type))

                            (modify-services %desktop-services
                              (slim-service-type config =>
                                (slim-configuration
                                  (xorg-configuration
                                    (xorg-configuration
                                      (extra-config  
                                        '("Section \"InputClass\"
                                             Identifier \"touchpad\"
                                             Driver \"libinput\"
                                             MatchIsTouchpad \"on\"
                                             Option \"Tapping\" \"on\"
                                             EndSection")
                               )))))

                              (wpa-supplicant-service-type config =>
                                (wpa-supplicant-configuration
                                  (interface "wlp2s0")
                                  (config-file "/etc/wpa_supplicant/wpa_supplicant.conf")))

                              )  ;end of modify-services 2nd

                        )  ;end of remove network-manager-service-type
                      )  ;end of remove bluetooth-service
                    )  ;end of remove avahi
                  )  ;end of remove ntp
                  (elogind-service-type
                    c => (elogind-configuration (handle-lid-switch 'ignore)))
                );;end of modify-services 1st desktop-services
  ));;end of services

  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss)


 (kernel-arguments '("modprobe.blacklist=pcspkr,snd_pcsp,wmi,bluetooth,pata_acpi"))
                     ;;"modprobe.options.ath9k=nohwcrypt"))

);;end of operating-system

  


  reply	other threads:[~2019-04-05 18:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-05 11:27 service 'dhcpv4-daemon' requires 'networking', which is not provided by any service znavko
2019-04-05 16:43 ` Ricardo Wurmus
2019-04-05 18:34   ` znavko [this message]
2019-04-05 18:42     ` znavko
2019-04-05 18:45     ` Ricardo Wurmus

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=Lbija46--F-1@tutanota.com \
    --to=znavko@tutanota.com \
    --cc=help-guix@gnu.org \
    --cc=rekado@elephly.net \
    /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).