Using MySQL is still doable if you run from the Perl source code. Takes a little work, especially if you want to run it as a Windows service, but there are advantages.
- For LMS 7.7 You'll need ActiveState's 'ActivePerl 5.14' (http://www.activestate.com/activeperl/downloads) for Windows. Note that each version of the server must be run under a specific version of ActivePerl. If you wanted to run SBS 7.5 or 7.6 they both require ActivePerl 5.10. It's possible to have more than one version of Perl installed, as long as you use the full path to the specific perl.exe binary. - You'll need an SVN client. 'TortoiseSVN' (http://tortoisesvn.net/) is a popular GUI-based client for Windows. There are also command-line only SVN compiles for Windows such as 'SlikSVN' (http://www.sliksvn.com/en/download/). - With the SVN client you then do a checkout of the Perl code from the SVN repository. Version 7.7 Trunk (currently 7.7.1) is found at the following URL: http://svn.slimdevices.com/repos/slim/7.7/trunk/server Note that you only need the 'server' directory above. If you do a checkout from its parent folder you'll pull down a lot of unnecessary extra stuff from the project, such as testing code. - You can update to the latest revision of the server at any time (no need to wait for nightly builds) by doing an SVN update. Downloads of updates are much smaller than downloads of the full Windows installer and don't require running the installer. You should, however, stop the server first. If you run LMS as a service this can easily be automated in a Windows batch/cmd file with something like: Code: -------------------- net stop squeezesvc "C:\Program Files\SlikSVN\bin\svn.exe" update "C:\Program Files\Squezebox\server" net start squeezesvc -------------------- I use both TortoiseSVN and SlikSVN, which are compatible. TortoiseSVN for doing checkouts and, occasionally, to roll back to some specific revision. The command line SlikSVN in batch files to do updates. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If you want to run the Perl code as a Windows service: - There are a couple of different software tools that you can use to run LMS as a Windows service. FireDaemon is one commercial program, but there are free Microsoft tools also. The two Microsoft tools that you need are part of various Windows Resource Kits that can be downloaded. (They might even already be installed with W2k8 Server). The first is "instsrv.exe", which lets you manually create or remove a Windows Service. The second is "srvany.exe", which is a program that serves to wrap your application and make it compatible with the Windows services interface. - From a command line, use instsrv.exe to create the Windows service. Code: -------------------- instsrv squeezesvc "C:\Program Files\Windows Resource Kits\Tools\srvany.exe" -------------------- Use the appropriate path to srvany.exe on your system. Note that the program being run as a service is actually srvany.exe, not perl.exe or slimserver.pl. - Using the registry editor, you then modify the service's registry entry. - The registry entry should be located at: HKDY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\squeezesvc - Under squeezesvc you can change the 'DisplayName' string to anything you like. This will be the service name shown in the Control Panel > Adminstrative Tools > Services applet. - You can also create a new String value here called 'Description' that is the longer text description that you see when viewing Services. - Create a new key under squeezesvc called 'Parameters'. - Under Parameters create a new String value called 'Application'. Set Application to the full path to your perl.exe file. For example: C:\Perl\bin\perl.exe - Under Parameters create a new String value called 'AppParameters'. Set AppParameters so the full path to slimserver.pl. Include any addition command-line parameters for LMS here. Fore example: "C:\Program Files\LMS\server\slimserver.pl" --prefsdir D:\slim\prefs --cachedir D:\slim\cache --logdir D:\slim\logs - In the Services management applet edit the service's properties if you want to set the Startup type to Automatic. You can also enter a username and password if you need to run the service under a Windows account other than Local System. When running the server like this as a service you'll see perl.exe as the process name in Windows Task Manager. -- JJZolx ------------------------------------------------------------------------ JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10 View this thread: http://forums.slimdevices.com/showthread.php?t=91432 _______________________________________________ beta mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/beta
