I m running the RPi as a headless device, with a small python server build with CherryPy serving a web interface. I m currently using the ethernet connection, but I plan on buying a wifi dongle soon.
I am looking for strategies to configure a wifi connection (assuming the dongle works fine per se) while keeping the RPi a headless device (no screen, no keyboard).
I see two main options :
- configure SSID and password from the web interface (my server doesn't do https and i'm a bit worried about security...),
- or put the SSID and password in a file in a fat32 partition (I could stick it in my laptop and create the file easily), and let Python read it and configure the connection (it could edit /etc/wpa_supplicant.conf).
I'm not really sure how to go about this. I'd like to know whether there exist better options.