So we have a how-to, yet it works only when OS was already installed. In case when the device is fresh and .iso (say raspberian) was just flashed sctipts differ: there is no wpa_supplicant
folder and interfaces
looks diferently.
How to set WiFi configuration before first insertion of flashed raspberian into WiFi capable RPi 3 device (I have only WiFi in my router)?