From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: wpa-supplicant service configuration. Guile is hard Date: Thu, 4 Apr 2019 21:26:19 +0200 (CEST) Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_37838_1863688690.1554405979471" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hC8Ba-0007AT-40 for help-guix@gnu.org; Thu, 04 Apr 2019 15:38:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hC80E-0006Vt-PC for help-guix@gnu.org; Thu, 04 Apr 2019 15:26:23 -0400 Received: from w1.tutanota.de ([81.3.6.162]:22098) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hC80D-0006UH-Pq for help-guix@gnu.org; Thu, 04 Apr 2019 15:26:22 -0400 Received: from w2.tutanota.de (unknown [192.168.1.163]) by w1.tutanota.de (Postfix) with ESMTP id 74892FA023F for ; Thu, 4 Apr 2019 19:26:19 +0000 (UTC) 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: Help Guix ------=_Part_37838_1863688690.1554405979471 Content-Type: multipart/alternative; boundary="----=_Part_37839_1757229409.1554405979471" ------=_Part_37839_1757229409.1554405979471 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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_37839_1757229409.1554405979471 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
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_37839_1757229409.1554405979471-- ------=_Part_37838_1863688690.1554405979471 Content-Type: text/x-scheme; charset=us-ascii; name=config-wpa-notworls.scm Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=config-wpa-notworls.scm ;;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"))) (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_37838_1863688690.1554405979471-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Quiliro Ordonez Subject: Re: wpa-supplicant service configuration. Guile is hard Date: Thu, 04 Apr 2019 13:01:10 -0700 Message-ID: <7b916f77a1c1d16749013aaca9b64817@riseup.net> References: Reply-To: quiliro@fsfla.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:59092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hC8Y1-0005De-Ht for help-guix@gnu.org; Thu, 04 Apr 2019 16:01:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hC8Xz-00047l-NK for help-guix@gnu.org; Thu, 04 Apr 2019 16:01:17 -0400 Received: from mx1.riseup.net ([198.252.153.129]:53368) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hC8Xx-000414-L3 for help-guix@gnu.org; Thu, 04 Apr 2019 16:01:14 -0400 Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 6C1B41B92AD for ; Thu, 4 Apr 2019 13:01:11 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 46C42120458 for ; Thu, 4 Apr 2019 13:01:11 -0700 (PDT) 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: help-guix@gnu.org El 2019-04-04 19:26, znavko@tutanota.com escribi=C3=B3: > Hello! I am so novice in Guile. >=20 > I have trouble trying to add wpa-supplicant configuration to my > config. I get this error: >=20 > # guix system reconfigure /etc/config.scm > guix system: error: service 'wpa-supplicant' provided more than once Yes! I get this message on boot when I have a failed networking.service 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-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: wpa-supplicant service configuration. Guile is hard Date: Fri, 5 Apr 2019 11:41:04 +0200 (CEST) Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_54437_495054676.1554457264443" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCLLV-0001Pv-Ej for help-guix@gnu.org; Fri, 05 Apr 2019 05:41:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCLLT-0005rM-Iv for help-guix@gnu.org; Fri, 05 Apr 2019 05:41:13 -0400 Received: from w1.tutanota.de ([81.3.6.162]:40336) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCLLO-0005fs-Ku for help-guix@gnu.org; Fri, 05 Apr 2019 05:41:11 -0400 Received: from w2.tutanota.de (unknown [192.168.1.163]) by w1.tutanota.de (Postfix) with ESMTP id 6E083FA01DF for ; Fri, 5 Apr 2019 09:41:04 +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_54437_495054676.1554457264443 Content-Type: multipart/alternative; boundary="----=_Part_54438_1177729381.1554457264443" ------=_Part_54438_1177729381.1554457264443 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello! I have several questions about wpa-supplicant + dhcpcd=C2=A0 service= s. First of all I do not want to use networkmanager and I usually get Internet= working manually with 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 #./startnet I configured services wpa-supplicant and dhcpcd in my config.scm (in attach= ). Guix reconfigures my system normally, start services wpa-supplicant, net= working, dhcpv4-daemon. But these services do not give me Internet. `ping g= nu.org` says unknow host. The wpa_supplicant.conf is the same as I use. But dhcpcd.conf is that from = one forum. I really do not know what to write there. ip of my router is 192.168.1.1 bu= t the other lines are from forum. Please, let me see how configure dhcpcd if usually I used `dhclient -v wlp2= s0`. What to type there? Also is it ok my wpa-supplicant-service-type config? And why I have NetworkManager in my /var/log/messages, is networkmanager li= ving in my system? How to push it out? Apr 4, 2019, 8:36 PM by znavko@tutanota.com: > Hi! There actually were wpa-supplicant config twice. The necessary one is= in 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 w= ant 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 timeo= ut on wpa-supplicant service and dhcpcd that they'll start after slim shows= me 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 dhcpc= d? > > I attached my current workable config, but dhcpcd is commented there. Als= o 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_54438_1177729381.1554457264443 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello! I have several questions about wpa-supplicant + = dhcpcd  services.

First of all I do not want to use networkmanager and I usually get I= nternet working manually with 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_supplican= t.conf
sleep 2
dhclient -v wlp2s0
#./startnet

I configured services wpa-supplicant and dhcpcd in my config.s= cm (in attach). Guix reconfigures my system normally, start services wpa-su= pplicant, networking, dhcpv4-daemon. But these services do not give me Inte= rnet. `ping gnu.org` says unknow host.

The wpa_supplicant.conf is the same as I use. But dh= cpcd.conf is that from one forum.
I really do = not know what to write there. ip of my router is 192.168.1.1 but the other = lines are from forum.
Please, let me see how c= onfigure dhcpcd if usually I used `dhclient -v wlp2s0`.
What to type there?
Also is it ok my= wpa-supplicant-service-type config?
And why I have NetworkManager in my /var/log/messages, is networ= kmanager living in my system? How to push it out?



<= div style=3D"16px">Apr 4, 2019, 8:36 PM by znavko@tutanota.com:
Hi! There actua= lly were wpa-supplicant config twice. The necessary one is in the (modify-s= ervices) section. I rest only  that one. And it works. But the network= is not working, cause dhcpd is not configured. I really want to get around=
"dhcpcd@.service causes slow startup" https://wiki.archlinux.org/index.php/Dhcpcd

Would you give some ad= vises how to prevent slow booting? How to set timeout on wpa-supplicant ser= vice and dhcpcd that they'll start after slim shows me auth form?
=

My actual manual network = start is this:

<= div style=3D"16px"># 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 somethi= ng like that instead of dhcpcd?

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


Apr 4, 2019, 7:26 PM by znavko@tutanota.com:
<= blockquote class=3D"tutanota_quote" style=3D"border-left: 1px solid #93A3B8= ; padding-left: 10px; margin-left: 5px;">
Hello! I am so= novice in Guile.
I have trouble trying to add= wpa-supplicant configuration to my config. I get this error:

# guix sy= stem 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_54438_1177729381.1554457264443-- ------=_Part_54437_495054676.1554457264443 Content-Type: text/x-scheme; charset=us-ascii; name=config-wpa-dhcpcd.scm Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=config-wpa-dhcpcd.scm ;;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 dhcpd-service-type (dhcpd-configuration (config-file (local-file "/etc/dhcpcd.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 (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 4th (wpa-supplicant-service-type config => (wpa-supplicant-configuration (interface "wlp2s0") (config-file "/etc/wpa_supplicant/wpa_supplicant.conf"))) ) ;end of modify-services 3rd ;;) ;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_54437_495054676.1554457264443 Content-Type: application/octet-stream; name=wpa_supplicant.conf Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=wpa_supplicant.conf #ctrl_interface=/run/wpa_supplicant #ctrl_interface_group=0 #update_config=1 network={ ssid="hiddenname" scan_ssid=1 proto=WPA2 key_mgmt=WPA-PSK psk=hashlyhashhash } ------=_Part_54437_495054676.1554457264443 Content-Type: application/octet-stream; name=dhcpcd.conf Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=dhcpcd.conf #interface wlp2s0 #https://help.ubuntu.com/lts/serverguide/dhcp.html default-lease-time 600; max-lease-time 7200; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.2 192.168.1.255; option routers 192.168.1.1; option domain-name-servers 192.168.1.1; option domain-name "mydomain.example"; } ------=_Part_54437_495054676.1554457264443 Content-Type: text/plain; charset=us-ascii; name=log-messages.txt Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=log-messages.txt # tail -n22 /var/log/messages Apr 5 12:32:11 localhost NetworkManager[2365]: [1554456731.8259] device (wlp2s0): supplicant interface state: authenticating -> disconnected Apr 5 12:32:16 localhost vmunix: [ 4570.798352] wlp2s0: authenticate with xx:xx:xx:xx:xx:55 Apr 5 12:32:16 localhost vmunix: [ 4570.814242] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3) Apr 5 12:32:16 localhost vmunix: [ 4570.816451] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1) Apr 5 12:32:16 localhost NetworkManager[2365]: [1554456736.8303] device (wlp2s0): supplicant interface state: disconnected -> scanning Apr 5 12:32:19 localhost vmunix: [ 4574.164465] wlp2s0: authenticate with xx:xx:xx:xx:xx:55 Apr 5 12:32:19 localhost vmunix: [ 4574.180508] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3) Apr 5 12:32:19 localhost vmunix: [ 4574.183244] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1) Apr 5 12:32:21 localhost vmunix: [ 4576.108663] wlp2s0: authenticate with xx:xx:xx:xx:xx:55 Apr 5 12:32:21 localhost vmunix: [ 4576.124479] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3) Apr 5 12:32:21 localhost vmunix: [ 4576.126717] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1) Apr 5 12:32:21 localhost NetworkManager[2365]: [1554456741.7345] device (wlp2s0): supplicant interface state: scanning -> authenticating Apr 5 12:32:21 localhost NetworkManager[2365]: [1554456741.7662] device (wlp2s0): supplicant interface state: authenticating -> disconnected Apr 5 12:32:31 localhost NetworkManager[2365]: [1554456751.7716] device (wlp2s0): supplicant interface state: disconnected -> scanning Apr 5 12:32:40 localhost vmunix: [ 4595.013180] wlp2s0: authenticate with xx:xx:xx:xx:xx:55 Apr 5 12:32:40 localhost vmunix: [ 4595.031228] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3) Apr 5 12:32:40 localhost vmunix: [ 4595.033446] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1) Apr 5 12:32:41 localhost vmunix: [ 4596.047812] wlp2s0: authenticate with xx:xx:xx:xx:xx:55 Apr 5 12:32:41 localhost vmunix: [ 4596.063687] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3) Apr 5 12:32:41 localhost NetworkManager[2365]: [1554456761.6727] device (wlp2s0): supplicant interface state: scanning -> authenticating Apr 5 12:32:41 localhost vmunix: [ 4596.065800] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1) Apr 5 12:32:41 localhost NetworkManager[2365]: [1554456761.7023] device (wlp2s0): supplicant interface state: authenticating -> disconnected Apr 5 12:32:51 localhost NetworkManager[2365]: [1554456771.7037] device (wlp2s0): supplicant interface state: disconnected -> scanning ------=_Part_54437_495054676.1554457264443-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: jbranso@dismail.de Subject: Re: wpa-supplicant service configuration. Guile is hard Date: Fri, 05 Apr 2019 13:49:37 +0000 Message-ID: <958b60e20ee16bba595c5ca3050b4476@dismail.de> References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--=_RainLoop_890_217640337.1554472177" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCPLG-00013L-KW for help-guix@gnu.org; Fri, 05 Apr 2019 09:57:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCPE1-0001GD-6S for help-guix@gnu.org; Fri, 05 Apr 2019 09:49:46 -0400 Received: from mx1.dismail.de ([78.46.223.134]:12220) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCPDz-00013l-JY for help-guix@gnu.org; Fri, 05 Apr 2019 09:49:45 -0400 Received: from dismail.de (localhost [127.0.0.1]) by dismail.de (OpenSMTPD) with ESMTP id 6e17ef28 for ; Fri, 5 Apr 2019 15:49:38 +0200 (CEST) Received: from smtp2.dismail.de (10.240.26.12 [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 4de4ab11 for ; Fri, 5 Apr 2019 15:49:38 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 0e518161 for ; Fri, 5 Apr 2019 15:49:38 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id fcee70f9 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Fri, 5 Apr 2019 15:49:37 +0200 (CEST) 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: help-guix@gnu.org ----=_RainLoop_890_217640337.1554472177 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello,=0AI don't believe that network manager is the default tool that gu= ix uses... I think I use whatever is the default and it works for me...= =0A=0ADoes the normal guix not provide you with a working Internet connec= tion?=0A=0AApril 5, 2019 5:41 AM, znavko@tutanota.com (mailto:znavko@tuta= nota.com) wrote:=0A Hello! I have several questions about wpa-supplicant = + dhcpcd services. First of all I do not want to use networkmanager and = I usually get Internet working manually with this: # cat startnet #!/bin= /sh #connect to wi-fi through wpa_supplicant herd stop wpa-supplicant rfk= ill unblock wifi wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_s= upplicant.conf sleep 2 dhclient -v wlp2s0 #./startnet I configured serv= ices wpa-supplicant and dhcpcd in my config.scm (in attach). Guix reconfi= gures my system normally, start services wpa-supplicant, networking, dhcp= v4-daemon. But these services do not give me Internet. `ping gnu.org` say= s unknow host. The wpa_supplicant.conf is the same as I use. But dhcpcd.= conf is that from one forum. I really do not know what to write there. ip= of my router is 192.168.1.1 but the other lines are from forum. Please, = let me see how configure dhcpcd if usually I used `dhclient -v wlp2s0`. W= hat to type there? Also is it ok my wpa-supplicant-service-type config? A= nd why I have NetworkManager in my /var/log/messages, is networkmanager l= iving in my system? How to push it out? Apr 4, 2019, 8:36 PM by znavko= @tutanota.com (mailto:znavko@tutanota.com): Hi! There actually were wpa-= supplicant config twice. The necessary one is in the (modify-services) se= ction. I rest only that one. And it works. But the network is not working= , cause dhcpd is not configured. I really want to get around "dhcpcd@.ser= vice causes slow startup" https://wiki.archlinux.org/index.php/Dhcpcd (ht= tps://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 me 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 w= pa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf sle= ep 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 (mailto:znavko@tu= tanota.com): Hello! I am so novice in Guile. I have trouble trying to ad= d wpa-supplicant configuration to my config. I get this error: # guix s= ystem reconfigure /etc/config.scm guix system: error: service 'wpa-suppli= cant' provided more than once Please, let me know where to place my wpa= -config lines? ----=_RainLoop_890_217640337.1554472177 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
H= ello,


I don't believe that network manager is the default tool= that guix uses... I think I use whatever is the default and it works for= me...

Does the normal guix not provide you with a working Interne= t connection?

April 5, 2019 5:41 AM, znavko@tutanota.com wrote= :
Hello! I have several questi= ons about wpa-supplicant + dhcpcd services.
=
First of all I do not want to use networkmanager and I us= ually get Internet working manually with this:
# cat startnet
#!/bin/sh
#con= nect to wi-fi through wpa_supplicant
herd stop wpa-supplicant
= rfkill unblock wifi
wpa_supplic= ant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
sleep 2
dhclient -v wlp2s0
#./startnet
<= div style=3D"">
I configured services wpa-supplican= t and dhcpcd in my config.scm (in attach). Guix reconfigures my system no= rmally, start services wpa-supplicant, networking, dhcpv4-daemon. But the= se services do not give me Internet. `ping gnu.org` says unknow host.
The wpa_supplicant.conf is the = same as I use. But dhcpcd.conf is that from one forum.
I really do not know what to write there. ip of my router is 192.16= 8.1.1 but the other lines are from forum.
Please, l= et me see how configure dhcpcd if usually I used `dhclient -v wlp2s0`.
What to type there?
Also is it = ok my wpa-supplicant-service-type config?
And why I have NetworkManager in my /var/log/messages, is netw= orkmanager living in my system? How to push it out?
Apr= 4, 2019, 8:36 PM by znavko@tutanota.com:
Hi! There actually were wpa-supplicant config twi= ce. The necessary one is in the (modify-services) section. I rest only th= at one. And it works. But the network is not working, cause dhcpd is not = configured. I really want to get around
"dhcpcd@.se= rvice causes slow startup" https://wiki.archlinux.org/index.php/Dhcpcd
<= div style=3D"">
Would you give some advises how to = prevent slow booting? How to set timeout on wpa-supplicant service and dh= cpcd that they'll start after slim shows me auth form?
My actual manual network start is this:
# cat startnet<= /div>
#!/bin/sh
#connect to wi-fi through wpa_supplicant
herd stop wpa-supplicant
rfkill = unblock wifi
wpa_supplicant -B -i wlp2s0 -c /etc/wp= a_supplicant/wpa_supplicant.conf
sleep 2
dhclient -v wlp2s0
May be I can use dhclient service or something like that instea= d of dhcpcd?
I attached my c= urrent 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 con= fig. I get this error:
# guix system reconfigure /etc/config.scm
guix system: error: service 'wpa-supplicant' provided more than once
Please, let me know wh= ere to place my wpa-config lines?

----=_RainLoop_890_217640337.1554472177-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: wpa-supplicant service configuration. Guile is hard Date: Fri, 5 Apr 2019 16:34:28 +0200 (CEST) Message-ID: References: <958b60e20ee16bba595c5ca3050b4476@dismail.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_744_498385647.1554474868679" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:37829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCQ4H-0000b0-Vw for help-guix@gnu.org; Fri, 05 Apr 2019 10:43:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCPvN-0006TG-Ub for help-guix@gnu.org; Fri, 05 Apr 2019 10:34:35 -0400 Received: from w1.tutanota.de ([81.3.6.162]:47210) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCPvK-0006DF-Ou for help-guix@gnu.org; Fri, 05 Apr 2019 10:34:33 -0400 In-Reply-To: <958b60e20ee16bba595c5ca3050b4476@dismail.de> 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: Joshua Branson Cc: Help Guix ------=_Part_744_498385647.1554474868679 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Joshua, thanks for your attention. Yes, networkmanager is using when your c= onfig contains %desktop-services variable described here https://git.savann= ah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n1039 When I do=C2=A0 not touch it GuixSD setup networkamanger and I can simply u= se it with no problems. But I do not want, cause nm is the ugliest thing I = saw in Linux. I use %desktop-services and I delete unnecessary stuff from there. And then= I try to configure Internet with only wpa-supplicant and dhcpcd. But now r= fkill is blocking wifi so wpa stops there. Ooh la la! Apr 5, 2019, 1:49 PM by jbranso@dismail.de: > Hello, > > > I don't believe that network manager is the default tool that guix uses..= . I think I use whatever is the default and it works for me... > > Does the normal guix not provide you with a working Internet connection? > > April 5, 2019 5:41 AM, > znavko@tutanota.com = > wrote: > =20 > >> Hello! I have several questions about wpa-supplicant + dhcpcd services. >> >> First of all I do not want to use networkmanager and I usually get Inter= net working manually with 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 >> #./startnet >> >> I configured services wpa-supplicant and dhcpcd in my config.scm (in att= ach). Guix reconfigures my system normally, start services wpa-supplicant, = networking, dhcpv4-daemon. But these services do not give me Internet. `pin= g gnu.org` says unknow host. >> >> The wpa_supplicant.conf is the same as I use. But dhcpcd.conf is that fr= om one forum. >> I really do not know what to write there. ip of my router is 192.168.1.1= but the other lines are from forum. >> Please, let me see how configure dhcpcd if usually I used `dhclient -v w= lp2s0`. >> What to type there? >> Also is it ok my wpa-supplicant-service-type config? >> And why I have NetworkManager in my /var/log/messages, is networkmanager= living in my system? How to push it out? >> >> >> >> Apr 4, 2019, 8:36 PM by >> znavko@tutanota.com >> : >> >>> Hi! There actually were wpa-supplicant config twice. The necessary one = is in the (modify-services) section. I rest only that one. And it works. Bu= t the network is not working, cause dhcpd is not configured. I really want = to get around >>> "dhcpcd@.service causes slow startup" >>> https://wiki.archlinux.org/in= dex.php/Dhcpcd >>> >>> Would you give some advises how to prevent slow booting? How to set tim= eout on wpa-supplicant service and dhcpcd that they'll start after slim sho= ws me 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 dhc= pcd? >>> >>> I attached my current workable config, but dhcpcd is commented there. A= lso 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_744_498385647.1554474868679 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Joshua, thanks for your attention. = Yes, networkmanager is using when your config contains %desktop-services va= riable described here https://git.savannah.gnu.org/cgit/gui= x.git/tree/gnu/services/desktop.scm#n1039

When = I do  not touch it GuixSD setup networkamanger and I can simply use it= with no problems. But I do not want, cause nm is the ugliest thing I saw i= n Linux.

I use %desktop-services and I delete unnec= essary stuff from there. And then I try to configure Internet with only wpa= -supplicant and dhcpcd. But now rfkill is blocking wifi so wpa stops there.= Ooh la la!


Apr 5, 2019, 1:49 PM by jbranso@dismail.de:
Hello,


I don't believe that network manager is the d= efault tool that guix uses... I think I use whatever is the default and it = works for me...

=
Does the normal guix not provide yo= u with a working Internet connection?

April 5, 2019= 5:41 AM, znavko@tutanota.com wrote:

<= div style=3D"">Hello! I have several questions about wpa-supplicant + dhcpc= d services.

First of all= I do not want to use networkmanager and I usually get Internet working man= ually with this:
# cat startnet
#!/bin/sh
#connect to wi-fi= through wpa_supplicant
herd stop wpa-supplicant
rfkill unblock wifi
wpa_su= pplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
<= div style=3D"">sleep 2
dhclient -v wlp2s0
#./startnet

I configured services wpa-supplicant and dhcpcd in my config.scm= (in attach). Guix reconfigures my system normally, start services wpa-supp= licant, networking, dhcpv4-daemon. But these services do not give me Intern= et. `ping gnu.org` says unknow host.

The wpa_supplicant.conf is the same as I use. But dhcpcd.conf = is that from one forum.
I really do not know what = to write there. ip of my router is 192.168.1.1 but the other lines are from= forum.
Please, let me see how configure dhcpcd if= usually I used `dhclient -v wlp2s0`.
What to type= there?
Also is it ok my wpa-supplicant-service-ty= pe config?
And why I have NetworkManager in my /va= r/log/messages, is networkmanager living in my system? How to push it out?<= br>



Apr 4, 2019, 8:36 PM by znavko@tutano= ta.com:
Hi! There actually were = wpa-supplicant config twice. The 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 configured. I really want to get around
"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 d= hcpcd that they'll start after slim shows me auth form?

My actual manual network start is this:
=

# cat start= net
#!/bin/sh

<= div style=3D"">#connect to wi-fi through wpa_supplicant

herd stop wpa-supplicant
rfkill unblock wifi
wpa_supplicant -B -i wl= p2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
sl= eep 2
dhclient -v wlp2s0

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

I attached my current workable config, but dhcpcd is commented the= re. 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 con= fig. I get this error:

<= div style=3D""># guix system reconfigure /etc/config.scm
guix system: error: service 'wpa-supplicant' provided more than once=

Please, let me kn= ow where to place my wpa-config lines?




------=_Part_744_498385647.1554474868679-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: wpa-supplicant service configuration. Guile is hard Date: Fri, 05 Apr 2019 18:47:09 +0200 Message-ID: <87wok8wgaa.fsf@elephly.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:50484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCVWL-0003uc-Rm for help-guix@gnu.org; Fri, 05 Apr 2019 16:33:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCVWJ-0002X8-Nx for help-guix@gnu.org; Fri, 05 Apr 2019 16:33:05 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21338) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCVWI-0002Pn-8B for help-guix@gnu.org; Fri, 05 Apr 2019 16:33:02 -0400 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@tutanota.com Cc: Help Guix znavko@tutanota.com writes: > 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? %desktop-services includes wpa-supplicant-service-type but you also added it yourself. That=E2=80=99s why Guix tells you that it is provided m= ore than once. -- Ricardo From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: wpa-supplicant service configuration. Guile is hard Date: Fri, 05 Apr 2019 18:38:22 +0200 Message-ID: <871s2gxv9d.fsf@elephly.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCd3i-0007gU-BE for help-guix@gnu.org; Sat, 06 Apr 2019 00:36:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCct4-0002Fe-Sj for help-guix@gnu.org; Sat, 06 Apr 2019 00:25:03 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21341) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCct4-0002EC-4I for help-guix@gnu.org; Sat, 06 Apr 2019 00:25:02 -0400 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@tutanota.com Cc: Help Guix znavko@tutanota.com writes: > Hello! I have several questions about wpa-supplicant + dhcpcd services. > > First of all I do not want to use networkmanager and I usually get Intern= et working manually with 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 Why do you do this all manually instead of using wpa-supplicant-service-type and dhcp-client-service-type? Your configuration looks =E2=80=A6 adventurous. Here are some recommendati= ons: * don=E2=80=99t nest modify-services. Nothing good will come of this. It = only serves to confuse you. =E2=80=9Cmodify-services=E2=80=9D can modify more= than one service at once. * don=E2=80=99t leave parentheses on lines all by themselves. They get lon= ely. * don=E2=80=99t use dhcpd-service-type unless you want to run a DHCP server. Use dhcp-client-service-type for the DHCP *client*. * you don=E2=80=99t need to add wpa-supplicant to the list of globally inst= alled packages. The service is enough. * maybe try fixing the indentation (Emacs can do this with M-q) =E2=80=94 i= t=E2=80=99s very hard to understand the configuration when the indentation tries hard to mislead you. -- Ricardo From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko@disroot.org Subject: Re: wpa-supplicant service configuration. Guile is hard Date: Sat, 06 Apr 2019 08:54:24 +0000 Message-ID: References: <871s2gxv9d.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--=_RainLoop_374_916392145.1554540864" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCh5s-0002UR-LJ for help-guix@gnu.org; Sat, 06 Apr 2019 04:54:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCh5q-0003Xu-S7 for help-guix@gnu.org; Sat, 06 Apr 2019 04:54:32 -0400 Received: from knopi.disroot.org ([178.21.23.139]:50590) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCh5p-0003Uu-IM for help-guix@gnu.org; Sat, 06 Apr 2019 04:54:30 -0400 In-Reply-To: <871s2gxv9d.fsf@elephly.net> 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: Ricardo Wurmus Cc: Help Guix ----=_RainLoop_374_916392145.1554540864 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello! I've spent 3 hours reading emacs tutorial and searching for scheme= mode but did not get result.=0APressing M-q on each paragraph of my conf= ig has broke it (attached file with suffix emacs).=0A=0A> Why do you do t= his all manually instead of using=0A> wpa-supplicant-service-type and dhc= p-client-service-type?=0A=0AI do have wpa-supplicant-service-type and dhc= p-client-service-type, and they do not work, cause wlan is soft blocked. = I need to use `rfkill unblock wifi` in my script, but services do not do = this.=0AAfter reboot I have `herd status` as in attach, networking is ina= ctive there. I think soft blocking happens because there are 2 wlan in my= system, a strange tun0 has appeared.=0A=0A# ifconfig=0Aenp3s0 Link en= cap:Ethernet HWaddr xx:xx:xx:11=0A UP BROADCAST MULTICAST MTU:= 1500 Metric:1=0A RX packets:0 errors:0 dropped:0 overruns:0 fra= me:0=0A TX packets:0 errors:0 dropped:0 overruns:0 carrier:0=0A = collisions:0 txqueuelen:1000=0A RX bytes:0 TX bytes:0= =0A=0Alo Link encap:Local Loopback=0A inet addr:127.0.0.1= Bcast:0.0.0.0 Mask:255.0.0.0=0A UP LOOPBACK RUNNING MTU:6553= 6 Metric:1=0A RX packets:0 errors:0 dropped:0 overruns:0 frame:= 0=0A TX packets:0 errors:0 dropped:0 overruns:0 carrier:0=0A = collisions:0 txqueuelen:1000=0A RX bytes:0 TX bytes:0=0A= =0Atun0 Link encap:(hwtype unknown)=0A inet addr:10.14.0.26= Bcast:0.0.0.0 Mask:255.255.255.255=0A UP POINTOPOINT RUNNING = NOARP MULTICAST MTU:1500 Metric:1=0A RX packets:8911 errors:0 = dropped:0 overruns:0 frame:0=0A TX packets:5637 errors:0 dropped= :0 overruns:0 carrier:0=0A collisions:0 txqueuelen:100=0A = RX bytes:8626006 TX bytes:703476=0A=0Awlp2s0 Link encap:Ethernet = HWaddr xx:xx:xx:xx:22=0A inet addr:192.168.1.33 Bcast:192.168.1= .255 Mask:255.255.255.0=0A UP BROADCAST RUNNING MULTICAST MTU:= 1500 Metric:1=0A RX packets:10351 errors:0 dropped:0 overruns:0= frame:0=0A TX packets:5867 errors:0 dropped:0 overruns:0 carrie= r:0=0A collisions:0 txqueuelen:1000=0A RX bytes:9765341= TX bytes:1265501=0A=0AAlso I attach some dmesg lines if it will give so= me info.=0ANow I have network services, but they do not manage the soft b= locking of wifi. How to unblock automatically?=0A=0A=0AApril 6, 2019 4:36= AM, "Ricardo Wurmus" wrote:=0A=0A> znavko@tutanota.= com writes:=0A> =0A>> Hello! I have several questions about wpa-supplican= t + dhcpcd services.=0A>> =0A>> First of all I do not want to use network= manager and I usually get Internet working manually with=0A>> this:=0A>> = # cat startnet=0A>> #!/bin/sh=0A>> #connect to wi-fi through wpa_supplica= nt=0A>> herd stop wpa-supplicant=0A>> rfkill unblock wifi=0A>> wpa_suppli= cant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf=0A>> sleep 2= =0A>> dhclient -v wlp2s0=0A> =0A> Why do you do this all manually instead= of using=0A> wpa-supplicant-service-type and dhcp-client-service-type?= =0A> =0A> Your configuration looks =E2=80=A6 adventurous. Here are some r= ecommendations:=0A> =0A> * don=E2=80=99t nest modify-services. Nothing go= od will come of this. It only=0A> serves to confuse you. =E2=80=9Cmodify-= services=E2=80=9D can modify more than one=0A> service at once.=0A> =0A> = * don=E2=80=99t leave parentheses on lines all by themselves. They get lo= nely.=0A> =0A> * don=E2=80=99t use dhcpd-service-type unless you want to = run a DHCP server.=0A> Use dhcp-client-service-type for the DHCP *client*= .=0A> =0A> * you don=E2=80=99t need to add wpa-supplicant to the list of = globally installed=0A> packages. The service is enough.=0A> =0A> * maybe = try fixing the indentation (Emacs can do this with M-q) =E2=80=94 it=E2= =80=99s=0A> very hard to understand the configuration when the indentatio= n tries=0A> hard to mislead you.=0A> =0A> --=0A> Ricardo ----=_RainLoop_374_916392145.1554540864 Content-Type: text/plain; name="config-wpa-dhcp-client2.conf" Content-Disposition: attachment; filename="config-wpa-dhcp-client2.conf" Content-Transfer-Encoding: base64 Ozt0aGlzIGlzIHpuYXZrbydzIGN1dGUgY29uZmlnCgoodXNlLW1vZHVsZXMgKGdudSkgKGdu dSBzeXN0ZW0gbnNzKQogICAgICAgICAgICAgKGdudSBzeXN0ZW0gbG9jYWxlKSA7O2ZvciBs b2NhbGUtZGVmaW5pdGlvbgogICAgICAgICAgICAgKGdudSBzZXJ2aWNlcyBkZXNrdG9wKQog ICAgICAgICAgICAgKHNyZmkgc3JmaS0xKSA7O2ZvciByZW1vdmUgZnVuY3Rpb24KICAgICAg ICAgICAgIChnbnUgc2VydmljZXMgbmV0d29ya2luZykgOztmb3IgcmVtb3ZlIG50cAogICAg ICAgICAgICAgKGdudSBzZXJ2aWNlcyBhdmFoaSkgOztmb3IgcmVtb3ZlIGF2YWhpCiAgICAg ICAgICAgICAoZ251IHNlcnZpY2VzIHhvcmcpCiAgICAgICAgICAgICAoZ251IHBhY2thZ2Vz IGFkbWluKSA7O2ZvciB3cGFfc3VwcGxpY2FudAopCih1c2Utc2VydmljZS1tb2R1bGVzIGRl c2t0b3ApCih1c2UtcGFja2FnZS1tb2R1bGVzIGNlcnRzIGdub21lKQoKKG9wZXJhdGluZy1z eXN0ZW0gKGhvc3QtbmFtZSAiYW50ZWxvcGUiKSAodGltZXpvbmUgIkV1cm9wZS9Nb3Njb3ci KSAobG9jYWxlICJlbl9VUy51dGY4IikKICAoYm9vdGxvYWRlciAoYm9vdGxvYWRlci1jb25m aWd1cmF0aW9uIChib290bG9hZGVyIGdydWItYm9vdGxvYWRlcikgKHRhcmdldCAiL2Rldi9z ZGEiKSkpCiAgKGZpbGUtc3lzdGVtcyAoY29ucyAoZmlsZS1zeXN0ZW0gKGRldmljZSAiL2Rl di9zZGExIikgKG1vdW50LXBvaW50ICIvIikgKHR5cGUgImV4dDQiKSkgJWJhc2UtZmlsZS1z eXN0ZW1zKSkKICAoc3dhcC1kZXZpY2VzICcoIi9kZXYvc2RhMiIpKQoKICAodXNlcnMgKGNv bnMqICh1c2VyLWFjY291bnQgKG5hbWUgImJvYiIpIChncm91cCAidXNlcnMiKQogICAgICAg ICAgICAgICAgKHN1cHBsZW1lbnRhcnktZ3JvdXBzICcoIndoZWVsIiAibmV0ZGV2IiAiYXVk aW8iICJ2aWRlbyIpKQogICAgICAgICAgICAgICAgKGhvbWUtZGlyZWN0b3J5ICIvaG9tZS9i b2IiKSkKICAgICAgICAgICAgICAgICh1c2VyLWFjY291bnQgKG5hbWUgIm1vbSIpIChncm91 cCAidXNlcnMiKQogICAgICAgICAgICAgICAgKHN1cHBsZW1lbnRhcnktZ3JvdXBzICcoIndo ZWVsIiAibmV0ZGV2IiAiYXVkaW8iICJ2aWRlbyIpKQogICAgICAgICAgICAgICAgKGhvbWUt ZGlyZWN0b3J5ICIvaG9tZS9tb20iKSkKICAgICAgICAgICAgICAgJWJhc2UtdXNlci1hY2Nv dW50cykpCgogIDs7IFRoaXMgaXMgd2hlcmUgd2Ugc3BlY2lmeSBzeXN0ZW0td2lkZSBwYWNr YWdlcy4KICAocGFja2FnZXMgKGNvbnMqIG5zcy1jZXJ0cyAgICAgICAgIDtmb3IgSFRUUFMg YWNjZXNzCiAgICAgICAgICAgICAgICAgICBndmZzICAgICAgICAgICAgICA7Zm9yIHVzZXIg bW91bnRzCgkJICAgd3BhLXN1cHBsaWNhbnQKICAgICAgICAgICAgICAgICAgICViYXNlLXBh Y2thZ2VzKSkKCiAgKHNlcnZpY2VzIChjb25zKiAKICAgICAgICAgICAgICAoc2VydmljZSB4 ZmNlLWRlc2t0b3Atc2VydmljZS10eXBlKQogICAgICAgICAgICAgIChzZXJ2aWNlIGRoY3At Y2xpZW50LXNlcnZpY2UtdHlwZSkKCiAgICAgICAgICAgICAgKG1vZGlmeS1zZXJ2aWNlcyAg ICAgIAogICAgICAgICAgICAgICAgKHJlbW92ZSAobGFtYmRhIChzZXJ2aWNlKQogICAgICAg ICAgICAgICAgICAobWVtYmVyIChzZXJ2aWNlLWtpbmQgc2VydmljZSkKICAgICAgICAgICAg ICAgICAgICAobGlzdCBudHAtc2VydmljZS10eXBlIGF2YWhpLXNlcnZpY2UtdHlwZSAKICAg ICAgICAgICAgICAgICAgICAgICAgICBibHVldG9vdGgtc2VydmljZSBuZXR3b3JrLW1hbmFn ZXItc2VydmljZS10eXBlKSkpCiAgICAgICAgICAgICAgICAgICVkZXNrdG9wLXNlcnZpY2Vz KSAgO2VuZCBvZiByZW1vdmUgbGFtYmRhIHNlcnZpY2VzCgogICAgICAgICAgICAgICAgKHdw YS1zdXBwbGljYW50LXNlcnZpY2UtdHlwZSBjb25maWcgPT4KICAgICAgICAgICAgICAgICAg KHdwYS1zdXBwbGljYW50LWNvbmZpZ3VyYXRpb24KICAgICAgICAgICAgICAgICAgICAoaW50 ZXJmYWNlICJ3bHAyczAiKQogICAgICAgICAgICAgICAgICAgIChjb25maWctZmlsZSAiL2V0 Yy93cGFfc3VwcGxpY2FudC93cGFfc3VwcGxpY2FudC5jb25mIikpKQoKICAgICAgICAgICAg ICAgIChnZG0tc2VydmljZS10eXBlIGNvbmZpZyA9PgogICAgICAgICAgICAgICAgICAoZ2Rt LWNvbmZpZ3VyYXRpb24KICAgICAgICAgICAgICAgICAgICAoeG9yZy1jb25maWd1cmF0aW9u CiAgICAgICAgICAgICAgICAgICAgICAoeG9yZy1jb25maWd1cmF0aW9uCiAgICAgICAgICAg ICAgICAgICAgICAgIChleHRyYS1jb25maWcgIAogICAgICAgICAgICAgICAgICAgICAgICAg ICcoIlNlY3Rpb24gXCJJbnB1dENsYXNzXCIKICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgSWRlbnRpZmllciBcInRvdWNocGFkXCIKICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgRHJpdmVyIFwibGliaW5wdXRcIgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBN YXRjaElzVG91Y2hwYWQgXCJvblwiCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE9w dGlvbiBcIlRhcHBpbmdcIiBcIm9uXCIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg RW5kU2VjdGlvbiIpCiAgICAgICAgICAgICAgICApKSkpKQoKICAgICAgICAgICAgICAgIChl bG9naW5kLXNlcnZpY2UtdHlwZQogICAgICAgICAgICAgICAgICBjID0+IChlbG9naW5kLWNv bmZpZ3VyYXRpb24gKGhhbmRsZS1saWQtc3dpdGNoICdpZ25vcmUpKSkKICAgICAgICAgICAg ICApOztlbmQgb2YgbW9kaWZ5LXNlcnZpY2VzCiAgKSk7O2VuZCBvZiBzZXJ2aWNlcwoKICA7 OyBBbGxvdyByZXNvbHV0aW9uIG9mICcubG9jYWwnIGhvc3QgbmFtZXMgd2l0aCBtRE5TLgog IChuYW1lLXNlcnZpY2Utc3dpdGNoICVtZG5zLWhvc3QtbG9va3VwLW5zcykKCiAoa2VybmVs LWFyZ3VtZW50cyAnKCJtb2Rwcm9iZS5ibGFja2xpc3Q9cGNzcGtyLHNuZF9wY3NwLHdtaSxi bHVldG9vdGgscGF0YV9hY3BpIikpCgopOztlbmQgb2Ygb3BlcmF0aW5nLXN5c3RlbQoKICAK Cg== ----=_RainLoop_374_916392145.1554540864 Content-Type: text/plain; name="config-wpa-dhcp-client2--emacs.conf" Content-Disposition: attachment; filename="config-wpa-dhcp-client2--emacs.conf" Content-Transfer-Encoding: base64 Ozt0aGlzIGlzIHpuYXZrbydzIGN1dGUgY29uZmlnCgoodXNlLW1vZHVsZXMgKGdudSkgKGdu dSBzeXN0ZW0gbnNzKSAoZ251IHN5c3RlbSBsb2NhbGUpIDs7Zm9yCiAgICAgICAgICAgICBs b2NhbGUtZGVmaW5pdGlvbiAoZ251IHNlcnZpY2VzIGRlc2t0b3ApIChzcmZpIHNyZmktMSkK ICAgICAgICAgICAgIDs7Zm9yIHJlbW92ZSBmdW5jdGlvbiAoZ251IHNlcnZpY2VzIG5ldHdv cmtpbmcpIDs7Zm9yCiAgICAgICAgICAgICByZW1vdmUgbnRwIChnbnUgc2VydmljZXMgYXZh aGkpIDs7Zm9yIHJlbW92ZSBhdmFoaSAoZ251CiAgICAgICAgICAgICBzZXJ2aWNlcyB4b3Jn KSAoZ251IHBhY2thZ2VzIGFkbWluKSA7O2ZvciB3cGFfc3VwcGxpY2FudAogICAgICAgICAg ICAgKSAodXNlLXNlcnZpY2UtbW9kdWxlcyBkZXNrdG9wKSAodXNlLXBhY2thZ2UtbW9kdWxl cwogICAgICAgICAgICAgY2VydHMgZ25vbWUpCgoob3BlcmF0aW5nLXN5c3RlbSAoaG9zdC1u YW1lICJhbnRlbG9wZSIpICh0aW1lem9uZSAiRXVyb3BlL01vc2NvdyIpCiAgKGxvY2FsZSAi ZW5fVVMudXRmOCIpIChib290bG9hZGVyIChib290bG9hZGVyLWNvbmZpZ3VyYXRpb24KICAo Ym9vdGxvYWRlciBncnViLWJvb3Rsb2FkZXIpICh0YXJnZXQgIi9kZXYvc2RhIikpKSAoZmls ZS1zeXN0ZW1zCiAgKGNvbnMgKGZpbGUtc3lzdGVtIChkZXZpY2UgIi9kZXYvc2RhMSIpICht b3VudC1wb2ludCAiLyIpICh0eXBlCiAgImV4dDQiKSkgJWJhc2UtZmlsZS1zeXN0ZW1zKSkg KHN3YXAtZGV2aWNlcyAnKCIvZGV2L3NkYTIiKSkKCiAgKHVzZXJzIChjb25zKiAodXNlci1h Y2NvdW50IChuYW1lICJib2IiKSAoZ3JvdXAgInVzZXJzIikKICAgICAgICAgICAgICAgIChz dXBwbGVtZW50YXJ5LWdyb3VwcyAnKCJ3aGVlbCIgIm5ldGRldiIgImF1ZGlvIgogICAgICAg ICAgICAgICAgInZpZGVvIikpIChob21lLWRpcmVjdG9yeSAiL2hvbWUvYm9iIikpICh1c2Vy LWFjY291bnQKICAgICAgICAgICAgICAgIChuYW1lICJtb20iKSAoZ3JvdXAgInVzZXJzIikg KHN1cHBsZW1lbnRhcnktZ3JvdXBzCiAgICAgICAgICAgICAgICAnKCJ3aGVlbCIgIm5ldGRl diIgImF1ZGlvIiAidmlkZW8iKSkgKGhvbWUtZGlyZWN0b3J5CiAgICAgICAgICAgICAgICAi L2hvbWUvbW9tIikpICViYXNlLXVzZXItYWNjb3VudHMpKQoKICA7OyBUaGlzIGlzIHdoZXJl IHdlIHNwZWNpZnkgc3lzdGVtLXdpZGUgcGFja2FnZXMuICAocGFja2FnZXMgKGNvbnMqCiAg bnNzLWNlcnRzIDtmb3IgSFRUUFMgYWNjZXNzIGd2ZnMgO2ZvciB1c2VyIG1vdW50cyB3cGEt c3VwcGxpY2FudAogICViYXNlLXBhY2thZ2VzKSkKCiAgKHNlcnZpY2VzIChjb25zKiAoc2Vy dmljZSB4ZmNlLWRlc2t0b3Atc2VydmljZS10eXBlKSAoc2VydmljZQogICAgICAgICAgICAg IGRoY3AtY2xpZW50LXNlcnZpY2UtdHlwZSkKCiAgICAgICAgICAgICAgKG1vZGlmeS1zZXJ2 aWNlcyAocmVtb3ZlIChsYW1iZGEgKHNlcnZpY2UpIChtZW1iZXIKICAgICAgICAgICAgICAg IChzZXJ2aWNlLWtpbmQgc2VydmljZSkgKGxpc3QgbnRwLXNlcnZpY2UtdHlwZQogICAgICAg ICAgICAgICAgYXZhaGktc2VydmljZS10eXBlIGJsdWV0b290aC1zZXJ2aWNlCiAgICAgICAg ICAgICAgICBuZXR3b3JrLW1hbmFnZXItc2VydmljZS10eXBlKSkpICVkZXNrdG9wLXNlcnZp Y2VzKQogICAgICAgICAgICAgICAgO2VuZCBvZiByZW1vdmUgbGFtYmRhIHNlcnZpY2VzCgog ICAgICAgICAgICAgICAgKHdwYS1zdXBwbGljYW50LXNlcnZpY2UtdHlwZSBjb25maWcgPT4K ICAgICAgICAgICAgICAgICAgKHdwYS1zdXBwbGljYW50LWNvbmZpZ3VyYXRpb24gKGludGVy ZmFjZSAid2xwMnMwIikKICAgICAgICAgICAgICAgICAgKGNvbmZpZy1maWxlCiAgICAgICAg ICAgICAgICAgICIvZXRjL3dwYV9zdXBwbGljYW50L3dwYV9zdXBwbGljYW50LmNvbmYiKSkp CgogICAgICAgICAgICAgICAgKGdkbS1zZXJ2aWNlLXR5cGUgY29uZmlnID0+IChnZG0tY29u ZmlndXJhdGlvbgogICAgICAgICAgICAgICAgICAoeG9yZy1jb25maWd1cmF0aW9uICh4b3Jn LWNvbmZpZ3VyYXRpb24KICAgICAgICAgICAgICAgICAgKGV4dHJhLWNvbmZpZyAnKCJTZWN0 aW9uIFwiSW5wdXRDbGFzc1wiIElkZW50aWZpZXIKICAgICAgICAgICAgICAgICAgXCJ0b3Vj aHBhZFwiIERyaXZlciBcImxpYmlucHV0XCIgTWF0Y2hJc1RvdWNocGFkCiAgICAgICAgICAg ICAgICAgIFwib25cIiBPcHRpb24gXCJUYXBwaW5nXCIgXCJvblwiIEVuZFNlY3Rpb24iKSAp KSkpKQoKICAgICAgICAgICAgICAgIChlbG9naW5kLXNlcnZpY2UtdHlwZSBjID0+IChlbG9n aW5kLWNvbmZpZ3VyYXRpb24KICAgICAgICAgICAgICAgICAgKGhhbmRsZS1saWQtc3dpdGNo ICdpZ25vcmUpKSkgKTs7ZW5kIG9mCiAgICAgICAgICAgICAgICAgIG1vZGlmeS1zZXJ2aWNl cyApKTs7ZW5kIG9mIHNlcnZpY2VzCgogIDs7IEFsbG93IHJlc29sdXRpb24gb2YgJy5sb2Nh bCcgaG9zdCBuYW1lcyB3aXRoIG1ETlMuCiAgKG5hbWUtc2VydmljZS1zd2l0Y2ggJW1kbnMt aG9zdC1sb29rdXAtbnNzKQoKIChrZXJuZWwtYXJndW1lbnRzCiAnKCJtb2Rwcm9iZS5ibGFj a2xpc3Q9cGNzcGtyLHNuZF9wY3NwLHdtaSxibHVldG9vdGgscGF0YV9hY3BpIikpCgopOztl bmQgb2Ygb3BlcmF0aW5nLXN5c3RlbQoKICAKCg== ----=_RainLoop_374_916392145.1554540864 Content-Type: text/plain; name="herd-status.txt" Content-Disposition: attachment; filename="herd-status.txt" Content-Transfer-Encoding: base64 IyBoZXJkIHN0YXR1cwpTdGFydGVkOgogKyBjb25zb2xlLWZvbnQtdHR5MQogKyBjb25zb2xl LWZvbnQtdHR5MgogKyBjb25zb2xlLWZvbnQtdHR5MwogKyBjb25zb2xlLWZvbnQtdHR5NAog KyBjb25zb2xlLWZvbnQtdHR5NQogKyBjb25zb2xlLWZvbnQtdHR5NgogKyBkYnVzLXN5c3Rl bQogKyBlbG9naW5kCiArIGZpbGUtc3lzdGVtLS9kZXYvcHRzCiArIGZpbGUtc3lzdGVtLS9k ZXYvc2htCiArIGZpbGUtc3lzdGVtLS9nbnUvc3RvcmUKICsgZmlsZS1zeXN0ZW0tL3J1bi9z eXN0ZW1kCiArIGZpbGUtc3lzdGVtLS9ydW4vdXNlcgogKyBmaWxlLXN5c3RlbS0vc3lzL2Zz L2Nncm91cAogKyBmaWxlLXN5c3RlbS0vc3lzL2ZzL2Nncm91cC9ibGtpbwogKyBmaWxlLXN5 c3RlbS0vc3lzL2ZzL2Nncm91cC9jcHUKICsgZmlsZS1zeXN0ZW0tL3N5cy9mcy9jZ3JvdXAv Y3B1YWNjdAogKyBmaWxlLXN5c3RlbS0vc3lzL2ZzL2Nncm91cC9jcHVzZXQKICsgZmlsZS1z eXN0ZW0tL3N5cy9mcy9jZ3JvdXAvZGV2aWNlcwogKyBmaWxlLXN5c3RlbS0vc3lzL2ZzL2Nn cm91cC9lbG9naW5kCiArIGZpbGUtc3lzdGVtLS9zeXMvZnMvY2dyb3VwL2ZyZWV6ZXIKICsg ZmlsZS1zeXN0ZW0tL3N5cy9mcy9jZ3JvdXAvbWVtb3J5CiArIGZpbGUtc3lzdGVtLS9zeXMv ZnMvY2dyb3VwL3BlcmZfZXZlbnQKICsgZmlsZS1zeXN0ZW1zCiArIGd1aXgtZGFlbW9uCiAr IGhvc3QtbmFtZQogKyBsb29wYmFjawogKyBuc2NkCiArIHJvb3QKICsgcm9vdC1maWxlLXN5 c3RlbQogKyBzd2FwLS9kZXYvc2RhMgogKyBzeXNsb2dkCiArIHRlcm0tdHR5MQogKyB0ZXJt LXR0eTIKICsgdGVybS10dHkzCiArIHRlcm0tdHR5NAogKyB0ZXJtLXR0eTUKICsgdGVybS10 dHk2CiArIHVkZXYKICsgdXBvd2VyLWRhZW1vbgogKyB1cmFuZG9tLXNlZWQKICsgdXNlci1m aWxlLXN5c3RlbXMKICsgdXNlci1wcm9jZXNzZXMKICsgdmlydHVhbC10ZXJtaW5hbAogKyB3 cGEtc3VwcGxpY2FudAogKyB4b3JnLXNlcnZlcgpTdG9wcGVkOgogLSBuZXR3b3JraW5nCiAt IHRlcm0tYXV0bwogLSB1c2VyLWhvbWVzCgo= ----=_RainLoop_374_916392145.1554540864 Content-Type: text/plain; name="dmesg-lines.txt" Content-Disposition: attachment; filename="dmesg-lines.txt" Content-Transfer-Encoding: base64 WyAgICA2LjQzNjczOF0gQmx1ZXRvb3RoOiBIQ0kgVUFSVCBwcm90b2NvbCBNYXJ2ZWxsIHJl Z2lzdGVyZWQKWyAgICA2LjQ0NTA2Nl0gMS0xLjQuMzogTWlzc2luZyBGcmVlIGZpcm13YXJl IChub24tRnJlZSBmaXJtd2FyZSBsb2FkaW5nIGlzIGRpc2FibGVkKQpbICAgIDYuNDQ5MTYz XSBjZmc4MDIxMTogTG9hZGVkIFguNTA5IGNlcnQgJ3Nmb3JzaGVlOiAwMGIxMTExMTExMScK WyAgICA2LjQ1Mzc1M10gcGxhdGZvcm0gcmVndWxhdG9yeS4wOiBEaXJlY3QgZmlybXdhcmUg bG9hZCBmb3IgcmVndWxhdG9yeS5kYiBmYWlsZWQgd2l0aCBlcnJvciAtMgpbICAgIDYuNDUz ODM3XSBjZmc4MDIxMTogZmFpbGVkIHRvIGxvYWQgcmVndWxhdG9yeS5kYgpbICAgIDYuNDU1 MjYwXSBCbHVldG9vdGg6IFBhdGNoIGZpbGUgbm90IGZvdW5kIC8qKERFQkxPQkJFRCkqLwpb ICAgIDYuNDU1MzU4XSBCbHVldG9vdGg6IExvYWRpbmcgcGF0Y2ggZmlsZSBmYWlsZWQKWyAg ICA2LjQ1NTQ3Nl0gYXRoM2s6IHByb2JlIG9mIDEtMS40LjM6MS4wIGZhaWxlZCB3aXRoIGVy cm9yIC0yClsgICAgNi40NTU2MDhdIHVzYmNvcmU6IHJlZ2lzdGVyZWQgbmV3IGludGVyZmFj ZSBkcml2ZXIgYXRoM2sKWyAgICA2LjQ2MjUxMl0gbGlicGh5OiByODE2OTogcHJvYmVkCi4u LgpbICAgIDYuODAyMTU1XSBpZWVlODAyMTEgcGh5MDogU2VsZWN0ZWQgcmF0ZSBjb250cm9s IGFsZ29yaXRobSAnbWluc3RyZWxfaHQnClsgICAgNi44MDI3NTVdIGllZWU4MDIxMSBwaHkw OiBBdGhlcm9zIEFSOTU2NSBSZXY6MSBtZW09MHgxMTExMTExMTEsIGlycT0xOApbICAgIDYu ODA3NzIzXSBhdGg5ayAwMDAwOjAyOjAwLjAgd2xwMnMwOiByZW5hbWVkIGZyb20gd2xhbjAK Li4KWyAgICA5LjE2MjMwMl0gc2hlcGhlcmRbMV06IFNlcnZpY2UgZ3VpeC1kYWVtb24gaGFz IGJlZW4gc3RhcnRlZC4KWyAgICA5Ljc1NzA3N10gcmFuZG9tOiBjcm5nIGluaXQgZG9uZQpb ICAgIDkuNzU4NTA2XSByYW5kb206IDEgdXJhbmRvbSB3YXJuaW5nKHMpIG1pc3NlZCBkdWUg dG8gcmF0ZWxpbWl0aW5nClsgICAxMC44NTMwMzRdIDAwMDA6MDM6MDAuMDogTWlzc2luZyBG cmVlIGZpcm13YXJlIChub24tRnJlZSBmaXJtd2FyZSBsb2FkaW5nIGlzIGRpc2FibGVkKQpb ICAgMTAuODU0ODY3XSByODE2OSAwMDAwOjAzOjAwLjAgZW5wM3MwOiB1bmFibGUgdG8gbG9h ZCBmaXJtd2FyZSBwYXRjaCAvKihERUJMT0JCRUQpKi8gKC0yKQpbICAgMTAuODU2NjExXSBH ZW5lcmljIFBIWSByODE2OS0zMDA6MDA6IGF0dGFjaGVkIFBIWSBkcml2ZXIgW0dlbmVyaWMg UEhZXSAobWlpX2J1czpwaHlfYWRkcj1yODE2OS0zMDA6MDAsIGlycT1JR05PUkUpClsgICAx MC45NTc2MTZdIHI4MTY5IDAwMDA6MDM6MDAuMCBlbnAzczA6IExpbmsgaXMgRG93bgpbICAg MjUuMDczMDkwXSBmdXNlIGluaXQgKEFQSSB2ZXJzaW9uIDcuMjgpCgoK ----=_RainLoop_374_916392145.1554540864-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko@disroot.org Subject: Re: wpa-supplicant service configuration. Guile is hard Date: Sat, 06 Apr 2019 08:57:56 +0000 Message-ID: <0c7eb0984253c451b237ebe2fa5ed64f@disroot.org> References: <871s2gxv9d.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCh9F-0003t4-3l for help-guix@gnu.org; Sat, 06 Apr 2019 04:58:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCh9E-00068g-BY for help-guix@gnu.org; Sat, 06 Apr 2019 04:58:01 -0400 Received: from knopi.disroot.org ([178.21.23.139]:54804) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCh9D-00068Q-Vi for help-guix@gnu.org; Sat, 06 Apr 2019 04:58:00 -0400 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: Ricardo Wurmus Cc: Help Guix oh, sorry, tun0 is vpn. From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko@disroot.org Subject: Re: wpa-supplicant service configuration. Guile is hard Date: Sat, 06 Apr 2019 17:55:29 +0000 Message-ID: <84bec7c771a305a520d0a174753fa320@disroot.org> References: <871s2gxv9d.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCpXU-0004Y1-Bs for help-guix@gnu.org; Sat, 06 Apr 2019 13:55:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCpXS-0000Xs-Q0 for help-guix@gnu.org; Sat, 06 Apr 2019 13:55:36 -0400 Received: from knopi.disroot.org ([178.21.23.139]:37598) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCpXR-0000WU-QO for help-guix@gnu.org; Sat, 06 Apr 2019 13:55:34 -0400 In-Reply-To: <871s2gxv9d.fsf@elephly.net> 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: Ricardo Wurmus , znavko@tutanota.com Cc: Help Guix Situation is this now:=0A1. I have wonderful configured services: wpa-sup= plicant and dhcp-client=0A2. I see the messages during boot process: =0A = wpa-supplicant successfully initialized=0A rfkill: WLAN soft blocked=0A= service networking could not be started=0A3. I open terminal after boot= and do this:=0A su -=0A rfkill unblock wifi=0A herd restart networkin= g=0A4. And I have Internet.=0A=0ABios has no wifi blocking. Do not know w= hy wifi comes blocked. Need to know how to unblock. Do I need own service= with `rfkill unblock wifi`, and if so, how to run networking service aft= er my own service?=0A=0AApril 6, 2019 4:36 AM, "Ricardo Wurmus" wrote:=0A=0A> znavko@tutanota.com writes:=0A> =0A>> Hello! I = have several questions about wpa-supplicant + dhcpcd services.=0A>> =0A>>= First of all I do not want to use networkmanager and I usually get Inter= net working manually with=0A>> this:=0A>> # cat startnet=0A>> #!/bin/sh= =0A>> #connect to wi-fi through wpa_supplicant=0A>> herd stop wpa-supplic= ant=0A>> rfkill unblock wifi=0A>> wpa_supplicant -B -i wlp2s0 -c /etc/wpa= _supplicant/wpa_supplicant.conf=0A>> sleep 2=0A>> dhclient -v wlp2s0=0A> = =0A> Why do you do this all manually instead of using=0A> wpa-supplicant-= service-type and dhcp-client-service-type?=0A> =0A> Your configuration lo= oks =E2=80=A6 adventurous. Here are some recommendations:=0A> =0A> * don= =E2=80=99t nest modify-services. Nothing good will come of this. It only= =0A> serves to confuse you. =E2=80=9Cmodify-services=E2=80=9D can modify = more than one=0A> service at once.=0A> =0A> * don=E2=80=99t leave parenth= eses on lines all by themselves. They get lonely.=0A> =0A> * don=E2=80=99= t use dhcpd-service-type unless you want to run a DHCP server.=0A> Use dh= cp-client-service-type for the DHCP *client*.=0A> =0A> * you don=E2=80=99= t need to add wpa-supplicant to the list of globally installed=0A> packag= es. The service is enough.=0A> =0A> * maybe try fixing the indentation (E= macs can do this with M-q) =E2=80=94 it=E2=80=99s=0A> very hard to unders= tand the configuration when the indentation tries=0A> hard to mislead you= .=0A> =0A> --=0A> Ricardo