How to share image without disclosing SSID and PSK

Hi:
I created an image based on DietPi that contains Astrophotography software. I would like to share my image without disclosing my SSID and PSK. How can I make an image that I can distribute to others so that they don’t see my SSID and PSK, but can set their own SSID and PSK when setting up their image so that they can SSH and VNC into their own network?

Thank you for any help.

Best regards,

Harald

remove WiFI settings before creating the image?

Thank you. Yes, this will eliminate my SSID and PSK. However, how can someone burn the image on an SD card and then setup their own SSID and PSK without having to connect a keyboard and monitor to the Raspberry Pi? Is it possible to edit some config files on the /boot directory to enter the SSID and PSK before the first boot of the burned image so that the Raspberry Pi directly connects to the Router of the people using the image? Will the image be recognized as a “first boot” when it is derived from a system that was already up and running?

Sorry for all these questions. I am new to DietPi. I have distributed images derived from the Raspberry Pi image and for those, I could simply add a wpa_supplicant file and an empty SSH file on the boot directory before starting it in the Raspberry Pi. Is something similar possible with DietPi?

Thank you,

Harald

Is this working on every boot or just first time?

On DietPi we have such feature on first initial boot only where you can preconfigure things.

Theoretically you could re-enable this be running

systemctl enable dietpi-fs_partition_resize
systemctl enable dietpi-firstboot

Before creating the image, you might need to pre-create dietpi-wifi.txt and reset dietpi.txt

Thank you. This is exactly what I was looking for. I will give this a try later this week.

Thanks,

Harald

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.