plugin for Logitech Media Server (formerly Squeezebox Server)

Status
Not open for further replies.

Tom7320

Explorer
Joined
Aug 7, 2013
Messages
52
Hi there!

Thanks a lot for this great work! It works very well on 8.3.1 without any modifications! The only thing I had to do was to install sox. Now I even can listen to my flacs.... :)

But unfortunately I have a problem with my character encodings:

Bildschirmfoto 2013-08-07 um 17.34.47.png


LMS shows these files if I choose Own Music -> Folders, but does not index these Files/folders! Does anyone know how to fix this?!?

Help would be really appreciated!

THX a lot!
 

Tom7320

Explorer
Joined
Aug 7, 2013
Messages
52
Hmmm.... I still did not figure out how to set my locales in the jail. Does anyone have the same problem?
 

Tom7320

Explorer
Joined
Aug 7, 2013
Messages
52
I think I solved the problem! I added one line ($lc_ctype = "utf8";) to the file /usr/local/lms/Slim/Utils/Unicode.pm (line 240):

Code:
sub utf8encode_locale {
        $lc_ctype = "utf8";
        return utf8encode($_[0], $lc_ctype);
}


Now LMS uses UTF8 Encoding an everything seems to work.... :)

Source
 

Tom7320

Explorer
Joined
Aug 7, 2013
Messages
52
Just for the records: it works with FreeNAS 9.1. I used a standard jail and LMS from

http://www.xenopsyche.com/ip/lms/

You still have to add $lc_ctype = "utf8"; to the file /usr/local/logitechmediaserver-7.8.0-1349191090-FreeBSD/Slim/Utils/Unicode.pm.

Enjoy!
 

nunoicx

Cadet
Joined
Aug 25, 2013
Messages
5
Just for the records: it works with FreeNAS 9.1. I used a standard jail and LMS from

http://www.xenopsyche.com/ip/lms/

You still have to add $lc_ctype = "utf8"; to the file /usr/local/logitechmediaserver-7.8.0-1349191090-FreeBSD/Slim/Utils/Unicode.pm.

Enjoy!

Thank you for the information.

While I tried to install LMS into a standard jail of 9.1, it seems that no perl install detected. So I installed perl latest package 5.14 which is 5.14.4 into the standard jail successfully, but failed to install the LMS as it requires the perl 5.14.2?

any comments appreciated.
 

Tom7320

Explorer
Joined
Aug 7, 2013
Messages
52
Yes you are right! I also installed perl 5.14.4 (actually I installed mc which installs perl 5.14.4 as a dependency). After that I installed LMS:

Code:
./install.sh logitechmediaserver-7.8.0-1349191090-perl-5.14.2-FreeBSD-9.1-STABLE-amd64.tgz


Works like a charm!
 

nunoicx

Cadet
Joined
Aug 25, 2013
Messages
5
Finally I got the lms installed, no error message, but the squeezebox server doesn't work and I can't visit it on 192.168.1.xxx:9000 (where xxx is the ip address of the jail). Will the server start automatically? am I miss something?
 

Tom7320

Explorer
Joined
Aug 7, 2013
Messages
52
Add squeezeboxserver_enable="YES" to /etc/rc.conf. Then run service squeezeboxserver start!
 

nunoicx

Cadet
Joined
Aug 25, 2013
Messages
5
Thank you for the response.

When I tried to start the service follow the command, there are lots of errors, such as:
Can't load '/usr/local/logitechmediaserver-7.8.0-1349191090-FreeBSD/CPAN/arch/5.14/amd64-freebsd/auto/Media/Scan/Scan.so' for module Media::Scan: Shared object "libintl.so.9" not found, required by "Scan.so" at /usr/local/lib/perl5/5.14/mach/DynaLoader.pm line 190.
at /usr/local/logitechmediaserver-7.8.0-1349191090-FreeBSD/Slim/Utils/Scanner/LMS.pm line 18
Compilation failed in require at /usr/local/logitechmediaserver-7.8.0-1349191090-FreeBSD/Slim/Utils/Scanner/LMS.pm line 18.
...
BEGIN failed--compilation aborted at /usr/local/squeezeboxserver/slimserver.pl line 186.
/usr/local/etc/rc.d/squeezeboxserver: WARNING: failed to start squeezeboxserver
 

Tom7320

Explorer
Joined
Aug 7, 2013
Messages
52
Hm. Here ist what I did:

1. Within FreeNAS add a standard, VIMAGE, vanilla jail:

freenas.png


2. Enable SSH access to the VM for easy administration:
  • Open FreeNAS Shell
  • Login to your just created jail: jls, jexec 1 /bin/tcsh (change appropriately)
  • ee /etc/rc.conf
  • Make sure that sshd_enable = "YES" is in the file (for me it was already in there)
  • service sshd start
  • Add a user and put it the wheel group: adduser
3. From Mac, Windows, Linux whatever login to your VM using ssh: ssh 192.168.0.51 (use login credentials from the adduser command above)
4. Install some software (I always install mc first on a new system):
  • su
  • pkg_add -r mc
  • pkg_add -r wget
  • pkg_add -r sox
5. Get LMS:
6. Install and start LMS:

Code:
root@test:/usr/home/ts/lms # ./install.sh logitechmediaserver-7.8.0-1349191090-perl-5.14.2-FreeBSD-9.1-STABLE-amd64.tgz
This looks like FreeBSD-9.1 amd64 perl-5.14.4.
 
Install logitechmediaserver-7.8.0-1349191090-perl-5.14.2-FreeBSD-9.1-STABLE-amd64.tgz (y/N)? y
Group "slimserv" added.
User "slimserv" added.
/usr/local/squeezeboxserver doesn't exist, we'll do a new installation.
Creating directories...
Installing rc script...
Installing tarfile...
logitechmediaserver-7.8.0-1349191090-FreeBSD installed.
root@test:/usr/home/ts/lms # echo 'squeezeboxserver_enable="YES"' >> /etc/rc.conf
root@test:/usr/home/ts/lms # cat /etc/rc.conf
portmap_enable="NO"
sshd_enable="YES"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
hostname="test"
devfs_enable="YES"
devfs_system_ruleset="devfsrules_common"
squeezeboxserver_enable="YES"
root@test:/usr/home/ts/lms # service squeezeboxserver start
Starting squeezeboxserver.
Your locale was detected as C, you may have problems with non-Latin filenames.  Consider changing your LANG variable to the correct locale, i.e. en_US.utf8
[13-08-26 18:18:08.1850] main::init (354) Starting Logitech Media Server (v7.8.0, 1349191090, Mon Feb  4 11:12:01 GMT 2013) perl 5.014004
root@test:/usr/home/ts/lms # Your locale was detected as C, you may have problems with non-Latin filenames.  Consider changing your LANG variable to the correct locale, i.e. en_US.utf8
 
root@test:/usr/home/ts/lms #


7. If you like edit/usr/local/logitechmediaserver-7.8.0-1349191090-FreeBSD/Slim/Utils/Unicode.pm like I said before

8. Open http://192.168.0.51:9000 from a browser within your network

Let me know if it works!
 

nunoicx

Cadet
Joined
Aug 25, 2013
Messages
5
Excellent instruction! Follow it, and it works.

The only difference I did before was to use the following for perl installation:
#pkg_add -r perl -K
which might not set up the environment properly.

Tom7320, thank you very much!
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
Hm. Here ist what I did:

1. Within FreeNAS add a standard, VIMAGE, vanilla jail:

freenas.png


2. Enable SSH access to the VM for easy administration:
  • Open FreeNAS Shell
  • Login to your just created jail: jls, jexec 1 /bin/tcsh (change appropriately)
  • ee /etc/rc.conf
  • Make sure that sshd_enable = "YES" is in the file (for me it was already in there)
  • service sshd start
  • Add a user and put it the wheel group: adduser
3. From Mac, Windows, Linux whatever login to your VM using ssh: ssh 192.168.0.51 (use login credentials from the adduser command above)
4. Install some software (I always install mc first on a new system):
  • su
  • pkg_add -r mc
  • pkg_add -r wget
  • pkg_add -r sox
  • ...
  • When I am logged in from a Win7 machine using ssh, every one of those pkg_add commands results in two error messages:

"Unable to get .... No address record"

and

"unable to fetch .... by URL"

What am I doing wrong?
 

nunoicx

Cadet
Joined
Aug 25, 2013
Messages
5
Try use jls and jexec within the Freenas shell which mentioned in the documentation.

jls
JID IP Address Hostname Path
1 - jail1 /mnt/volume1/dataset1/jail1
2 - jail2 /mnt/volume1/dataset1/jail2
3 - jail3 /mnt/volume1/dataset1/jail3

To access a jail, specify its jail ID and the shell that you would like to use as options to the jexec command:
jexec 1 /bin/tcsh
jail1#

then do whatever pkg_add ...
 

Tom7320

Explorer
Joined
Aug 7, 2013
Messages
52
Can you sucessfully login to your jail with ssh? I understand it that way, that you can login but you can not download the packages?! Can you ping other server outside your own network (ping google.com)? Can you ping from either FreeNAS shell and your jail? If not how is your network configuration of FreeNAS? I have static IPs with "Nameserver" and "Gateway" set correctly to my internet router's IP adress.
 

Z300M

Guru
Joined
Sep 9, 2011
Messages
882
Try use jls and jexec within the Freenas shell which mentioned in the documentation.

jls
JID IP Address Hostname Path
1 - jail1 /mnt/volume1/dataset1/jail1
2 - jail2 /mnt/volume1/dataset1/jail2
3 - jail3 /mnt/volume1/dataset1/jail3

To access a jail, specify its jail ID and the shell that you would like to use as options to the jexec command:
jexec 1 /bin/tcsh
jail1#

then do whatever pkg_add ...
I found the problem: the router was not accessible from within the jail. I deleted that jail and created a new one, and now everything seems to be OK.
 
J

jkh

Guest
Okayyyyy here it is, a package with just an installme.sh to execute and you will get a working and up to date Logitech Media Server in your jail,

So, any chance you might be able to get this updated to a FreeNAS 9.1.1 PBI so we can put it on the server as a one-click install? :)

Thanks!
 
Status
Not open for further replies.
Top