Situation is this now: 1. I have wonderful configured services: wpa-supplicant and dhcp-client 2. I see the messages during boot process: wpa-supplicant successfully initialized rfkill: WLAN soft blocked service networking could not be started 3. I open terminal after boot and do this: su - rfkill unblock wifi herd restart networking 4. And I have Internet.
Bios has no wifi blocking. Do not know why 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 after my own service? April 6, 2019 4:36 AM, "Ricardo Wurmus" <rek...@elephly.net> wrote: > zna...@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 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 > > Why do you do this all manually instead of using > wpa-supplicant-service-type and dhcp-client-service-type? > > Your configuration looks … adventurous. Here are some recommendations: > > * don’t nest modify-services. Nothing good will come of this. It only > serves to confuse you. “modify-services” can modify more than one > service at once. > > * don’t leave parentheses on lines all by themselves. They get lonely. > > * don’t use dhcpd-service-type unless you want to run a DHCP server. > Use dhcp-client-service-type for the DHCP *client*. > > * you don’t need to add wpa-supplicant to the list of globally installed > packages. The service is enough. > > * maybe try fixing the indentation (Emacs can do this with M-q) — it’s > very hard to understand the configuration when the indentation tries > hard to mislead you. > > -- > Ricardo