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