Automated headless Wi-Fi install on Pi Zero W

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
zenchimet
Posts: 2
Joined: Tue Jan 07, 2020 8:24 am

Automated headless Wi-Fi install on Pi Zero W

Post by zenchimet »

My pi isn't showing up on my network. I'm checking the gateway directly so I would see if it had an IP. I've done my best to follow the automated setup instructions without success. Any help would be greatly appreciated!

I have in dietpi.txt:

AUTO_SETUP_TIMEZONE=America/Vancouver
AUTO_SETUP_NET_WIFI_ENABLED=1
AUTO_SETUP_HEADLESS=1

AUTO_SETUP_AUTOMATED=1

AUTO_SETUP_INSTALL_SOFTWARE_ID=17 #git client: git clone etc |

AUTO_SETUP_INSTALL_SOFTWARE_ID=87 #sqlite: database | http://dietpi.com/phpbb/viewtopic.php?f ... 1335#p1335

AUTO_SETUP_INSTALL_SOFTWARE_ID=93 #pi-hole: block adverts for any device on your network +git +webserver +sqlite | http://dietpi.com/phpbb/viewtopic.php?f ... rt=20#p174

CONFIG_BOOT_WAIT_FOR_NETWORK=2

And in dietpi_wifi.conf I have my SSID and password, WPA2-PSK, and I've enabled 2.4ghz on the gateway.
User avatar
Joulinar
Posts: 2566
Joined: Sat Nov 16, 2019 12:49 am

Re: Automated headless Wi-Fi install on Pi Zero W

Post by Joulinar »

Hi,

ich was checking it on my RPi4B and it was working quite well. I just changed these 4 line in first place

dietpi.txt

Code: Select all

##### Networking Options #####
AUTO_SETUP_NET_ETHERNET_ENABLED=0
AUTO_SETUP_NET_WIFI_ENABLED=1
dietpi-wifi.txt (both are case sensitive)

Code: Select all

# - Entry 0
aWIFI_SSID[0]='xxx'
aWIFI_KEY[0]='xxx'
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
zenchimet
Posts: 2
Joined: Tue Jan 07, 2020 8:24 am

Re: Automated headless Wi-Fi install on Pi Zero W

Post by zenchimet »

Hmm that was my first attempt but it never joined. Maybe I'll try a different sd card? It's a new pi - could it be defective?
User avatar
Joulinar
Posts: 2566
Joined: Sat Nov 16, 2019 12:49 am

Re: Automated headless Wi-Fi install on Pi Zero W

Post by Joulinar »

To check such issues you might need to connect a screen and keyboard for testing purposes. than you would be able to see what happen and can login. This should allow you as well to check WiFi settings more easily.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply