NorwegianRockCat
Dabbler
- Joined
- Jan 19, 2015
- Messages
- 10
Hello,
I tried out things with FreeNAS 9.3-stable and got things working. There's a couple of gotchas that I don't think have been highlighted yet. So, in the hopes of helping out others, I thought I would post my experience to save a couple hours for someone (I hope).
Using the script from djoole gets you almost all the way, but the version of the modules that are installed via pkg on 9.3-stable are for Perl 5.18 (not 5.16). However, the version of Perl that is installed in the jail is 5.16. So, you have module mismatch and LMS won't start. No, problem right? run "pkg update" to update Perl. This gets rid of the one of the module mismatches.
Where's the second mismatch? LMS will run, but its scanning willl fall down and you'll have an empty (or almost empty) library, but it will happily play any file if you walk through its Music Folder. Turns out the Scan.so that was provided djoole is compiled for Perl 5.16 (which makes sense as that was what the script was originally targetted against); it won't work with 5.18 (wrong Magic number or something). So, now audio scanning doesn't work.
The Scan.so is for the AudioScan module that is part of the "vendor modules" for LMS. You can build these yourself by cloning the repo from github. Change to the "CPAN" directory and there's a a build script (buildme.sh) for building all of these modules (the link I gave is for the 7.8-branch, which is what djoole's script uses). At a quick glance, I couldn't find a way to only build the AudioScan module, so do a quick pkg install for gmake and libgd and run the buildme.sh script. After some time, the Scan.so will show up in the build directory buried somewhere (in several locations, but I just used find to grab it). Copy Scan.so into /usr/local/lms/CPAN/arch/5.18/amd64-freebsd-thread-multi/auto/Media/Scan (you may need to create that directory) and things should work. Whew! There's a reason djoole compiled that file for us.
Restart the lms service and retriggger the scan and you should see your media library filling up. Even better, your squeezeboxes should be playing some music from your FreeNAS!
I modified the original script to not delete the lms-amd64-freebsd.tar.gz that's downloaded and instead put the Scan.so there so its available for later. I could upload it here so others could use it. Though it requires one to be a bit savy with scripts.
Still thanks a lot for the script, I doubt I would have gotten this far on my own. I've been away from working with FreeBSD for about 10 years and this brought me right back.
I tried out things with FreeNAS 9.3-stable and got things working. There's a couple of gotchas that I don't think have been highlighted yet. So, in the hopes of helping out others, I thought I would post my experience to save a couple hours for someone (I hope).
Using the script from djoole gets you almost all the way, but the version of the modules that are installed via pkg on 9.3-stable are for Perl 5.18 (not 5.16). However, the version of Perl that is installed in the jail is 5.16. So, you have module mismatch and LMS won't start. No, problem right? run "pkg update" to update Perl. This gets rid of the one of the module mismatches.
Where's the second mismatch? LMS will run, but its scanning willl fall down and you'll have an empty (or almost empty) library, but it will happily play any file if you walk through its Music Folder. Turns out the Scan.so that was provided djoole is compiled for Perl 5.16 (which makes sense as that was what the script was originally targetted against); it won't work with 5.18 (wrong Magic number or something). So, now audio scanning doesn't work.
The Scan.so is for the AudioScan module that is part of the "vendor modules" for LMS. You can build these yourself by cloning the repo from github. Change to the "CPAN" directory and there's a a build script (buildme.sh) for building all of these modules (the link I gave is for the 7.8-branch, which is what djoole's script uses). At a quick glance, I couldn't find a way to only build the AudioScan module, so do a quick pkg install for gmake and libgd and run the buildme.sh script. After some time, the Scan.so will show up in the build directory buried somewhere (in several locations, but I just used find to grab it). Copy Scan.so into /usr/local/lms/CPAN/arch/5.18/amd64-freebsd-thread-multi/auto/Media/Scan (you may need to create that directory) and things should work. Whew! There's a reason djoole compiled that file for us.
Restart the lms service and retriggger the scan and you should see your media library filling up. Even better, your squeezeboxes should be playing some music from your FreeNAS!
I modified the original script to not delete the lms-amd64-freebsd.tar.gz that's downloaded and instead put the Scan.so there so its available for later. I could upload it here so others could use it. Though it requires one to be a bit savy with scripts.
Still thanks a lot for the script, I doubt I would have gotten this far on my own. I've been away from working with FreeBSD for about 10 years and this brought me right back.