-
Notifications
You must be signed in to change notification settings - Fork 12
Ability to set advanced WiFi options #12
base: develop
Are you sure you want to change the base?
Conversation
* Use only WPA2-AES * Connect to hidden Wifi network
Changing the startup script, and more importantly testing it with a variety of wifi cards (most of which are full of driver bugs) is the challenge here. There is no point merging this without the corresponding changes. |
Thanks! I was developing startup script changes and I have created a pull request for them now. I have also added a notification in Websettings about buggy drivers. P.S. I am testing all of this now on my Raspberry Pi model B with TP-Link TL-WN725N Ver:2.1 Wifi adapter and updated Raspbian (and Python packages) as described in https://github.com/woutervanwijk/Pi-MusicBox/wiki/Updating-components-to-latest-versions |
Looks like there is another bug - |
In settingsspec.ini there is a definition: wifi_scan_ssid = "boolean(default=true)" Hovever if this value is not present in .ini file the setting appears as disabled in web.
I have done some tests. Preparations
Test resultsTest case 1: new settings are not present in .ini file
Defaults are also shown in Websettings. Test case 2: Websettings is opened and Update settings (reboot) is clicked without opening/changing anything.
Defaults are also shown in Websettings. Test case 3: both settings changed in Websettings
Changed settings are also displayed in Websettings. |
If none of the new settings are changed in Websettings, these pull-requests only add @kingosticks Can you do the testing with various adapters? |
Is there any way I can facilitate review of this change and get it merged? |
Hi sorry I forgot to reply to this one. I don't have any spare wireless sticks to do any useful tests I am afraid. As a general rule, advanced/specific options which most people don't care about/need, are generally left out of musicbox.The few that do want them can then go on to customise their install as needed. I haven't really had look at this yet to see where this stuff falls. |
Thanks for response! |
That certainly sounds like a good idea. Lets try and keep the simple case simple. |
I have made this change (it is referenced in pull request pimusicbox/pimusicbox#271). Repeated test resultsTest case 1: new settings are not present in .ini file
Defaults are also shown in Websettings. Test case 2: Websettings is opened and Update settings (reboot) is clicked without opening/changing anything.
Defaults are also shown in Websettings. Test case 3: both settings changed in Websettings
Changed settings are also displayed in Websettings. |
Currently there are no changes to |
I will get to this, sorry.
|
Hey, finally had a good look at this. The code technically looks fine and I appreciate all your efforts here but I've got a couple of questions.
I'd imagine most people just leave the |
Hi! Thanks for looking into this and sorry for my late response!
Mostly this patch is for "security paranoids" and I know that there are bigger security issues in Pi MusicBox (e.g. globally writable boot partition that contains files modified by Mopidy process). However I think that possibility to customize Pi MusicBox configuration could be improved. May be we could introduce an option (that would be hidden in interface) in |
I think that is a very good idea. As it is, providing you don't set the Regarding scan_ssid, its just a case of having something that works for
|
We could allow people to just drop their custom asound.conf or
|
Ability to place config files inside FAT32 partition sounds like a great idea! 👍 A related off-topic: The only thing I am wondering now is how to protect |
Yes. Just those two currently I think. Ability to place config files inside FAT32 partition sounds like a great A related off-topic: The only thing I am wondering now is how to protect — |
I have two ideas about restricting access to
What do you think about these options? I actually like second idea much better, because it is much more simple. |
With the hope of preventing what exactly?
|
With the idea of preventing globally writable |
I'm not sure what it originally had but you'd hope so. Would an additional very small partition specifically for the two musicbox There is the possibility that we'll want the musicbox process to be able to
|
Hi! Sorry for my late response! I think additional partition is not very good idea! I suggest staying as close to Raspbian as possible. Actually I think it would be a great idea to create apt package of Pi MusicBox that could be used to update Pi MusicBox specific customizations (or even installed on vanilla Raspbian to turn it into Pi MusicBox). For making parts of
|
This fixes #10 on Websettings side. ❗ Additionally changes in startup script (pimusicbox/pimusicbox#271) are required!