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
ssh
file in theboot
directory. - Add a
wpa_supplicant.conf
file with my network information in theboot
directory.
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
boot
directory (evencat
them 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
ssh
file nor thewpa_supplicant.conf
file are in theboot
directory.
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.