aubuti;260213 Wrote: 
> Is there a way to scan the music library on a computer other than the
> one that is running SS/SC? I vaguely recall some posts about this from
> back around the time the scanner was split off to a separate process in
> SS 6.5.0, but I can't find them now.
> 
> The idea is that my main SC machine is a Buffalo LinkStation, which
> streams just fine but takes almost an hour to scan my ~4000 track
> library of FLAC. I also have SC on a new-ish Lenovo laptop running
> Ubuntu that scans that same library on the LS in less than 8 minutes
> (*and that's over the network*, versus the local scan the LS is taking
> an hour to do). Sometimes it would be convenient to do the scan on the
> Lenovo, and then copy the necessary files over to the LS. Can this be
> done, and if so, how?  TIA. 

I suppose it could be done by scanning and copying the database files
over to the other computer (shutting down both SlimServer and MySQL
while copying).  But that'd be pretty ugly and more than a little prone
to problems.  Better would be to export the MySQL database using
mysqldump.exe on the Lenovo and then import the dump into MySQL on the
LinkStation.

Better yet would be to have the scanner running on the Lenovo directly
access the database running on the Linkstation.  Probably will be a
little slower than running everything on the Lenovo, but you'll have to
see.

Never done this myself, but...

First, you'll need to be sure the MySQL server on the LinkStation is
accessible from other computers, not just from the LinkStation.  You
could test it by using something like SQLyog ('download'
(http://www.webyog.com/en/download_form.php?url=http%3A%2F%2Fwww.webyog.com%2Fdownloads%2FSQLyog615.exe)).
You'll need the IP address of the server, the MySQL port (standard is
3306), the database name (probably slimserver), the MySQL user name
(again, probably slimserver) and the password (by default, blank).

Then create a prefs files for the scanner.pl on the Lenovo that
references the database on the LinkStation.  Copy the current prefs
file to another folder, then edit it, changing the lines for the
database connection that look something like:


Code:
--------------------
    dbpassword: somepassword
  dbsource: dbi:mysql:hostname=127.0.0.1;port=3306;database=slimserver
  dbusername: slimserver
  
--------------------


Enter all the specifics for the LinkStation MySQL database for
SlimServer.

Then run the scanner.pl on the Lenovo with the /prefsdir switch
pointing at the folder holding the new prefs file.  If you run
scanner.pl with no arguments on the Lenovo it will display syntax and
additional command line options for things like logging and debugging.


Code:
--------------------
    
  C:\>"C:\Program Files\SqueezeCenter\server\scanner.pl" --wipe 
--prefsdir:"C:\altscprefs" \\LinkStation\musiclibrary
  
--------------------


-- 
JJZolx

Jim
------------------------------------------------------------------------
JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10
View this thread: http://forums.slimdevices.com/showthread.php?t=42425

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to