GentooHowTo-Install-LMS-Configuration

Print PDF1 GentooHowTo-Install-LMS-Configuration 1      Source. 2 2      Explanation_ 2 3      Prerequisities. 2 4      Restore the general setting of LMS. 2 5      Restore plug-in_ 3 5.1       Autorescan_ 4 5.2       Other plugin_ […]

1

GentooHowTo-Install-LMS-Configuration

1      Source. 2

2      Explanation_ 2

3      Prerequisities. 2

4      Restore the general setting of LMS. 2

5      Restore plug-in_ 3

5.1       Autorescan_ 4

5.2       Other plugin_ 5

5.3       Custom Browse_ 5

5.4       Custom scan_ 5

5.5       licensemanager 5

5.6       Database Query 6

5.7       Dynamic PlayLists_ 6

5.8       Music Info_ 6

5.9       Rescan_ 7

5.10     SQL Playlist 7

5.11     TrackStat 7

 

 

 

 


1         Source.

2         Explanation

The goal is to restore the configuration of a backup after a full LMS reinstallation.

 

3         Prerequisities.

Do a backup (copy) of the original folder :

  • /etc/logitechmediaserver/plugin
  • /var/lib/logitechmediaserver/cache

4         Restore the general setting of LMS.

The setting for LMS server and players are in a Prefs file: /etc/logitechmediaserver/server.prefs

File with *-V0* are the original files : (fresh install)

File with *-V1-Funtoo are the last backup files : (old system)

-rw-r–r–  1 logitechmediaserver logitechmediaserver   340 Oct 27 18:27 favorites.opml

-rw-r–r–  1 logitechmediaserver logitechmediaserver   162 Oct 26 05:40 favorites.opml.backup

-rw-r–r–  1 logitechmediaserver logitechmediaserver   162 Oct 26 05:40 favorites-v0.opml

-rw-r–r–  1 logitechmediaserver logitechmediaserver   340 Jul  3 15:26 favorites-v1-Funtoo.opml

-rw-r–r–  1 logitechmediaserver logitechmediaserver  5294 Oct 26 05:40 log.conf

-rw-r–r–  1 logitechmediaserver logitechmediaserver  5294 Oct 26 05:40 log-v0.conf

-rw-r–r–  1 logitechmediaserver logitechmediaserver  5332 Jul  3 15:01 log-v1-Funtoo.conf

drwxr-xr-x  2 logitechmediaserver logitechmediaserver  4096 Oct 27 18:27 plugin

drwxr-xr-x  2 logitechmediaserver logitechmediaserver  4096 Oct 26 06:16 plugin-v0

drwxr-xr-x  3 logitechmediaserver logitechmediaserver  4096 Oct 26 08:46 plugin-v1-Funtoo

-rw-r–r–  1 logitechmediaserver logitechmediaserver 89669 Oct 27 18:27 server.prefs

-rw-r–r–  1 logitechmediaserver logitechmediaserver 15155 Oct 26 07:36 server-v0.prefs

-rw-r–r–  1 logitechmediaserver logitechmediaserver 89579 Oct 26 08:17 server-v1-Funtoo.prefs

 

For the first step :

  • we just need to restore “server-v1-Funtoo.prefs” to “server.prefs”.
  • log.conf can be the original file
  • favorites.opml can be the original file

Start the server and check if it doesn’t crash.

 


5         Restore plug-in

I get a crash of the server when I restore the cache folder.

So I decided to restore the Plug-in  one by one following the procedure :

  • Activate the plugin in LMS setting
  • Restore the Prefs of each plugin.

 

I know the list of plugin :

I will start with Autorescan


5.1      Autorescan

Activate the plugin :

After restart LMS, a new plugin has been installed on :

/var/lib/logitechmediaserver/cache/InstalledPlugins/Plugins/AutoRescan

I compare the two folders and it seems the same. I don’t need to restore files in the cache folder :

For this plugin, there is only one parameter set by default to 5 secondes :

I copy the setting from the backup to the new system  :

Restart server :

The setting has been updated :


5.2      Other plugin

The procedure will be the same for the other plug-in.

I’ll not describe every step except if there is something specific.

5.3      Custom Browse

5.4      Custom scan

 

5.5      licensemanager

The license is automatically activated :


5.6      Database Query

Original :

Restored :

 

5.7      Dynamic PlayLists

 

5.8      Music Info

5.9      Rescan

 

5.10SQL Playlist

 

 

5.11TrackStat

    

 

  

 

  

 

 

 

 

Copy the last DB and chown :

 

chown logitechmediaserver:logitechmediaserver library.db

chown logitechmediaserver:logitechmediaserver persist.db

logitechmediaserver logitechmediaserver 120947712 Oct 23 06:02 library.db

logitechmediaserver logitechmediaserver  41408512 Oct 23 02:12 persist.db