Frank ...
Firstly your RPi2/3 0.4 beta image is running great on my RPi2 – no wireless disconnects in 7 days – so thanks again.
But back to the subject of this thread – I’ve done some experiments ...
Powered off my RPi2 using the UI and extracted the microSD card. Put it in the card reader of my Windows laptop and fired up Paragon Software’s ExtFS for Windows. It’s a free download (but you have to provide your email address to get the free license). It mounts the second Ext4 partition of the card which can then be manipulated from Windows.
I copied the wifi profile from the card directory /etc/netctl to my Desktop.
Next I took a second microSD card and burned your latest image but before removing it from my laptop & using ExtFS for Windows, I copied the wifi profile into the /etc/netctl directory.
Put this second card into my Rpi2 (which has no WIRED Ethernet connection) and it worked and I could access RuneAudio wirelessly to do any further setup steps.
Next I puTTy’d in and changed the name of the wifi profile in /etc/netctl to rune-static. Rebooted via the UI (MENU > Turn off > REBOOT) and it ran OK just as before. So it’s insensitive to the wifi profile name.
Next using the UI (MENU > Network) I created a second wifi profile but for dhcp. Rebooted via the UI, puTTy’d in - the second wifi profile was there and I changed the file name to rune-dhcp.
Finally turned off via the UI, copied both profiles from the card and zipped them up:
ADMIN: removed SSID & PSK
- rune-wifi-profiles.zip
- (941 Bytes) Downloaded 388 times
So Frank, not an elegant solution copying wifi profile(s) to the card using ExtFS for Windows but if you have no possibility of a wired Ethernet connection for setup (router under the stairs, in the loft or the next apartment, etc) then this is better than nothing – and it only has to be done once.
Of course both profiles must be personalised to insert the relevant SSID and PASSWORD in lieu of
marconi and
guglielmo before they are copied to the microSD card using ExtFS for Windows.
As editing text files with Microsoft Notepad, Wordpad or Word can introduce spurious characters, better to use Notepad++ which is a free download:
Also perhaps dhcp should be the only option - avoiding the need to know the router IP address. However if using dhcp, you may need to discover the IP address that has been assigned. For this I use netscan – another free download:
Moving on from this inelegant (but workable) solution to one which just involves inserting SSID, PASSWORD, etc into a text file
in the first FAT partition on the microSD card would be great.
Your earlier post suggested you thought this to be a reasonable idea and that it would not be difficult providing a link to a function in the code. Unfortunately redis, functions, etc are beyond my skill level. Also I’m not looking for a solution for myself. So IMHO much better that you do that when/if you have time and incorporate it in an image update for other users in future. And that would keep things "official".
Just my results and thoughts.