This is a very long story, so I will try to keep it as short as possible.
1. I got RPi 0 W.
2. I installed Raspbian Stretch Lite, the one straight from official site.
3. I realized that mini HDMI converter hasn't arrived yet, so I decided to go headless. This is going to be a server, after all.
4. Here's where the trouble began -- no matter what I do, I couldn't get the RPi0 to connect to Wi-Fi.
5. So I tried network interface thing (involving those two lines: dtoverlay=dwc2 on config.txt and modules-load=dwc2,g_ether on cmdline.txt, following guide from https://gist.github.com/gbaman/975e2db164b3ca2b51ae11e45e8fd40a )
6. Installed Bonjour Print Service as instructed
7. When it worked, it did show up as network device under the name Network Gadget with some more words in front of it, and it required installation of generic driver from Microsoft Corporation
8. I could ping to raspberrypi.local, but no matter what I try, it always ended up with "Connection refused" error when trying to connect to port 22 when ssh-ing.
9. Now it doesn't work at all, the device never shows up but the ACT LED is still on and flashes away as boot process continues (each tries were done after waiting longer than 90 seconds to ensure boot process is done)
Here's the content of each config files, including "wpa_supplicant.conf" file.
config.txt
<snip, content identical to stock file>
dtoverlay=dwc2
cmdline.txt:
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=37665771-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_ether
wpa_supplicant.conf:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="********"
psk="********"
scan_ssid=1
key_mgmt=WPA-PSK
}
I do have "ssh" file without extension and content in the drive called root, along with config.txt and cmdline.txt as they told me to do. They were there before first boot.
What went wrong here? Please help!