Am using a Pi model 3 and the latest (2018-06-27) Raspbian Stretch lite, and have only added wpa_supplicant.conf (below) and ssh (empty) in the "boot" partition.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev


The machine never connects to the router.

Edit: thought maybe it was this problem:

I think you're running into a race condition between the service which copies wpa_supplicant.conf and the one that checks whether the wifi country is set. Unfortunately the image doesn't have the fix in it yet.

but apparently not.

How do I get Stretch lite to support headless wifi?

Any other OS distro that is known to work headless out of the box?

  • You should paste your files INTO THE QUESTION. What model Pi?
    – Milliways
    Commented Aug 11, 2018 at 14:07
  • 1
    What country is "CODE"
    – Milliways
    Commented Aug 11, 2018 at 15:01
  • list the ACTUAL contents of your file, or edit it if you haven’t
    – Milliways
    Commented Aug 11, 2018 at 16:32
  • Have you tried the solution suggested in the post? sudo bash -c "echo '0' > /var/lib/systemd/rfkill/platform-3f300000.mmc:wlan" Commented Aug 13, 2018 at 8:52
  • @DmitryGrigoryev: I saw it, but that whole directory (rfkill) does not exist.
    – Tomas By
    Commented Aug 13, 2018 at 8:52


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.