How to bypass Setup Wizard and Autoconfigure LMS? #887
-
On a new installation of LMS, :9000/settings/server/wizard.html is launched. I would like to bypass this setup wizard so that when LMS is launched everything is already preconfigured. I attempted to do this by modifying /var/lib/squeezeboxserver/prefs/server.prefs I added the music directory paths, custom skin and added "wizardDone: 1" at the end of the prefs. Unsure if this is the correct way to bypass the wizard and autoconfigure LMS but this method doesn't seem to work. LMS 8.3.1 Is it possible to bypass the wizard and if so how? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
That should work if done correctly. Are you sure the file paths, permissions, formatting of the file etc. are correct? You mention a custom skin. Would you be able to add another file? You could create sub initPrefs {
my ($class, $prefs) = @_;
$prefs->{wizardDone} = 1;
} |
Beta Was this translation helpful? Give feedback.
-
The server.prefs file is in yaml format, isn't it? Perhaps LMS is invoking some kind of perl yaml syntax checking on the server.prefs file and calling up the wizard if it fails. You could perform relaxed yaml syntax checking using yamllint to insure you have a valid server.prefs file. Normally, yamllint objects to indentation errors and long lines in server.prefs. But you can relax those checks with: yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" server.prefs In your case, with the spurious "-" in the playlistdir path, yamllint detects the error, throwing up: server.prefs |
Beta Was this translation helpful? Give feedback.
That should work if done correctly. Are you sure the file paths, permissions, formatting of the file etc. are correct?
You mention a custom skin. Would you be able to add another file? You could create
Slim/Utils/OS/Custom.pm
with the following lines:See eg. https://github.com/Logitech/slimserver/blob/feb5e256ad91cf07e58a0cee1a49392b21c7bdd6/Slim/Utils/OS/OSX.pm#L84