Easy WIFI setup ? no ETH cable ?

Raspberry Pi related support

Re: Easy WIFI setup ? no ETH cable ?

Postby PeteB » 29 Mar 2016, 22:02

@johnbanks: You can create a wlan0 next to eth0, in /etc/netctl, and using the files in /etc/netctl/examples as a guide. You can do this while the SD card is still in the PC after you flashed it. This is what I actually did when I first set up runeaudio, and I could not get on my wifi for some reason, and did not know why.

It was NOT an elegant solution though, and I am not sure that Frank (or anyone else for that matter) would want to support the way I did it. Perhaps you can find a way to make it work seamlessly, but I could not. Definitely not the "easy" setup that the OP was looking for.

P.
PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

Re: Easy WIFI setup ? no ETH cable ?

Postby hondagx35 » 29 Mar 2016, 23:10

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Easy WIFI setup ? no ETH cable ?

Postby PeteB » 30 Mar 2016, 00:47

PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

Re: Easy WIFI setup ? no ETH cable ?

Postby hondagx35 » 30 Mar 2016, 01:13

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Easy WIFI setup ? no ETH cable ?

Postby PeteB » 30 Mar 2016, 03:51

PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

Re: Easy WIFI setup ? no ETH cable ?

Postby TommyBoy » 30 Mar 2016, 11:15

I am happy I managed to make you think about this a bit :-)
lets say a user share internet access via wifi only, he live near his friend in two apartments very close,
so the wifi works fine directly thru the wall, both are happy online..
now the one who is only online via wifi want to play with runeaudio and his new PI.
he can find a screen and a usb keyboard, and he can log in to the command line..
Now, what is next move ?
User avatar
TommyBoy
 
Posts: 111
Joined: 29 Mar 2016, 14:04
Location: Copenhagen Denmark

Re: Easy WIFI setup ? no ETH cable ?

Postby johnbanks » 31 Mar 2016, 10:58

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.
johnbanks
 
Posts: 124
Joined: 11 Jun 2014, 00:16

Re: Easy WIFI setup ? no ETH cable ?

Postby hondagx35 » 31 Mar 2016, 11:30

Hi johnbanks,

thank you for your time and experiments to improve RuneAudio.

- I have removed your credentials from the zip files.
- the only drawback is, that you lose the ability to remove the profiles via UI.
Network profiles have to be stored also in our database (redis).

I definitely will consider something like this with the next image.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Easy WIFI setup ? no ETH cable ?

Postby johnbanks » 31 Mar 2016, 12:27

Frank ...
Thanks for your fast and positive response.
Sad to have the credentials removed - he was a great man - an Italian - we all owe him a great deal :)
johnbanks
 
Posts: 124
Joined: 11 Jun 2014, 00:16

Re: Easy WIFI setup ? no ETH cable ?

Postby johnbanks » 14 Jun 2016, 22:43

johnbanks
 
Posts: 124
Joined: 11 Jun 2014, 00:16

support RuneAudio Donate with PayPal

Previous

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 38 guests
cron