I am trying to set up a Raspberry Pi Zero with Raspbian Stretch headlessly.
From my understanding, in order to accomplish this task requires three steps:
- Flash Raspbian to a microSD (I did so using Etcher).
- Add an empty
sshfile in thebootdirectory. - Add a
wpa_supplicant.conffile with my network information in thebootdirectory.
The problem is, for some reason, both of the aforementioned files disappear after I try to boot up the Pi.
This is the process I use to create the files:
I create the files on the microSD card using
sudo(for me the directory is in/media/MyMachine/boot).Ensure that both files are inside the
bootdirectory (evencatthem to see all the right changes have been made).Stick the card in the Pi.
When I cannot find the Pi on my network, I check the card and find that neither the
sshfile nor thewpa_supplicant.conffile are in thebootdirectory.
EDIT: I should note that I am using Ubuntu on the machine I use to write onto the microSD card--the Pi contains Raspbian as noted above.