From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: wpa-supplicant service configuration. Guile is hard Date: Thu, 4 Apr 2019 22:36:43 +0200 (CEST) Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_39702_1862503970.1554410204081" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:37139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hC96O-000430-Ng for help-guix@gnu.org; Thu, 04 Apr 2019 16:36:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hC96N-00021H-IL for help-guix@gnu.org; Thu, 04 Apr 2019 16:36:48 -0400 Received: from w1.tutanota.de ([81.3.6.162]:5968) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hC96M-0001u2-JB for help-guix@gnu.org; Thu, 04 Apr 2019 16:36:47 -0400 Received: from w2.tutanota.de (unknown [192.168.1.163]) by w1.tutanota.de (Postfix) with ESMTP id 154AFFA07E6 for ; Thu, 4 Apr 2019 20:36:44 +0000 (UTC) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Znavko Cc: Help Guix ------=_Part_39702_1862503970.1554410204081 Content-Type: multipart/alternative; boundary="----=_Part_39703_1639891240.1554410204081" ------=_Part_39703_1639891240.1554410204081 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi! There actually were wpa-supplicant config twice. The necessary one is i= n the (modify-services) section. I rest only=C2=A0 that one. And it works. = But the network is not working, cause dhcpd is not configured. I really wan= t to get around=20 "dhcpcd@.service causes slow startup" https://wiki.archlinux.org/index.php/= Dhcpcd Would you give some advises how to prevent slow booting? How to set timeout= on wpa-supplicant service and dhcpcd that they'll start after slim shows m= e auth form? My actual manual network start is this: # cat startnet #!/bin/sh #connect to wi-fi through wpa_supplicant herd stop wpa-supplicant rfkill unblock wifi wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf sleep 2 dhclient -v wlp2s0 May be I can use dhclient service or something like that instead of dhcpcd? I attached my current workable config, but dhcpcd is commented there. Also = I do not know how to write dhcpd.conf for my case? Apr 4, 2019, 7:26 PM by znavko@tutanota.com: > Hello! I am so novice in Guile. > I have trouble trying to add wpa-supplicant configuration to my config. I= get this error: > > # guix system reconfigure /etc/config.scm > guix system: error: service 'wpa-supplicant' provided more than once > > Please, let me know where to place my wpa-config lines? > ------=_Part_39703_1639891240.1554410204081 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi! There actually were wpa-supplicant config twice. Th= e necessary one is in the (modify-services) section. I rest only  that= one. And it works. But the network is not working, cause dhcpd is not conf= igured. I really want to get around
"dhcpcd@.service causes slow startup" https://wiki.archlinux.org/index.php/Dhcpcd



# cat startnet
#!/bin/sh

#connect to wi-fi t= hrough wpa_supplicant

=
herd stop wpa-supplicant
<= /div>
rfkill unblock wifi
<= div style=3D"16px" text-align=3D"left">wpa_supplicant -B -i wlp2s0 -c /etc/= wpa_supplicant/wpa_supplicant.conf
sleep 2
dhclient= -v wlp2s0

May be I can use dhclient service or something like that instead of dhcpcd= ?

I attached my current workable config, but dhcpcd= is commented there. Also I do not know how to write dhcpd.conf for my case= ?


Apr 4, 2019, 7:26 PM by znavko@tutanota= .com:
Hello! I am so novice in Guile.
I have troub= le trying to add wpa-supplicant configuration to my config. I get this erro= r:

# guix system reconfigure /etc/config.scm
guix system: error: service 'wpa-supplicant' provided more than once
=

Please, let m= e know where to place my wpa-config lines?

------=_Part_39703_1639891240.1554410204081-- ------=_Part_39702_1862503970.1554410204081 Content-Type: application/octet-stream; name=config-wpa-dhcp.conf Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=config-wpa-dhcp.conf ;;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) ;;(define %redundant-linux-modules '("pcspkr" "snd_pcsp")) (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 wpa-supplicant-service-type ;; (wpa-supplicant-configuration ;; (config-file "/etc/wpa_supplicant/wpa_supplicant.conf"))) ;;(service dhcpd-service-type ;; (dhcpd-configuration ;; (config-file (local-file "/etc/dhcpd.conf")) ;; (interfaces '("wlp2s0")))) (modify-services (remove (lambda (service) (eq? (service-kind service) ntp-service-type)) (remove (lambda (service) (eq? (service-kind service) avahi-service-type)) (modify-services (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") ))))) ) ;end of modify-services 3rd (wpa-supplicant-service-type config => (wpa-supplicant-configuration (config-file "/etc/wpa_supplicant/wpa_supplicant.conf"))) ) ;end of modify-services 2nd ) ;end of remove avahi ) ;end of remove2 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")) ;(kernel-arguments ; (list (string-append "modprobe.blacklist=" ; (apply comma-separated ; %redundant-linux-modules)))) );;end of operating-system ------=_Part_39702_1862503970.1554410204081--