Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 27

Hybrid View

  1. #1

    LMS on Solaris/OpenIndiana

    For all who want to use LMS in combination with the features Solaris/OpenIndiana provide (e.g. zfs with dedup etc.)

    Everything concerned with building the necessary perl modules should be discussed. The info provided can then be used to create a builme.sh script for compiling the modules with gcc

    This thread is based on http://forums.slimdevices.com/showthread.php?t=93300
    Last edited by chincheta0815; 2012-03-18 at 08:34.

  2. #2
    For all OpenIndiana/Solaris users:
    Please find below some files for building and running LMS. This script woudn't be possible without the work of evoz4 who gave really essential hints and did the debugging concerning libmediascan.

    buildModulesLMS-0.1.tar.gz

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Posts
    24

    IPS Solaris 11 package available for LMS 7.7.2

    I have created a repo with a number of packages mainly to support LMS.
    It uses perl 5.14.2 compiled with gcc 4.6.3 both of which are available in the repo together with all the other tools used to create it.

    I would recommend installing it into a fresh zone with an exclusive IP (static) that can have a multicast route configured.
    I couldn't find a way to do this with shared IP, but I might have missed a trick.
    To get UPnP to work properly you need a route like this:

    # route -p show
    persistent: route add default 192.168.1.1 -ifp net0
    persistent: route add 224.0.0.0 lms 0

    To install that software, add this publisher:

    # pkg set-publisher -p http://ang.homedns.org/dev/solaris11-sfe ANG-S11sfe

    Then install the package:

    # pkg install service/logitechmediaserver

    It may be a little slow, the uplink isn't too hot. Maybe somebody could mirror the repo?

    The package creates a user (lms) and group (mediasrv) that the server runs as, and it installs the service. All you have to do is enable it:

    # svcadm enable lmsd

    and then point a browser at port 9000 on the zone IP address and configure to your liking.

    The package includes all fixes that I'm aware are required, thanks to chincheta0815 for some of those.
    It depends on another package that is perl 5.14.2 compiled with gcc. After a number of attempts to
    use the Sol 11 bundled perl, it just seemed much simpler to do it this way.

    If anybody is interested I could also post the build method.

  4. #4
    Thank you very much! I will give it a try later on.

    I am especially interested in getting the UPNP plugin to work using the explanations you gave concerning the route.

    Therefore it would be of great help, if you could explain the route, e.g. what means "lms" and the "0" behind it...

    Would you be so kind and give me another time a clue?


    Quote Originally Posted by evoz4 View Post
    I have created a repo with a number of packages mainly to support LMS.
    It uses perl 5.14.2 compiled with gcc 4.6.3 both of which are available in the repo together with all the other tools used to create it.

    I would recommend installing it into a fresh zone with an exclusive IP (static) that can have a multicast route configured.
    I couldn't find a way to do this with shared IP, but I might have missed a trick.
    To get UPnP to work properly you need a route like this:

    # route -p show
    persistent: route add default 192.168.1.1 -ifp net0
    persistent: route add 224.0.0.0 lms 0

    To install that software, add this publisher:

    # pkg set-publisher -p http://ang.homedns.org/dev/solaris11-sfe ANG-S11sfe

    Then install the package:

    # pkg install service/logitechmediaserver

    It may be a little slow, the uplink isn't too hot. Maybe somebody could mirror the repo?

    The package creates a user (lms) and group (mediasrv) that the server runs as, and it installs the service. All you have to do is enable it:

    # svcadm enable lmsd

    and then point a browser at port 9000 on the zone IP address and configure to your liking.

    The package includes all fixes that I'm aware are required, thanks to chincheta0815 for some of those.
    It depends on another package that is perl 5.14.2 compiled with gcc. After a number of attempts to
    use the Sol 11 bundled perl, it just seemed much simpler to do it this way.

    If anybody is interested I could also post the build method.

  5. #5
    Junior Member
    Join Date
    Mar 2012
    Posts
    24
    The reference to lms is just the local resolution for the IP address of the network interface.
    So you if your IP address is 192.168.1.45 you would probably have an entry in
    /etc/hosts:

    192.168.1.45 lms

    To add the multicast route do:

    # route -p add 224.0.0.0 lms 0

    the 0 just means that it's a directly reachable destination.

    From the route man page:

    For backward compatibility with older systems, directly
    reachable routes can also be specified by placing a 0 after
    the gateway address:

    Looks like you can use -interface instead.

    Quote Originally Posted by chincheta0815 View Post
    Thank you very much! I will give it a try later on.

    I am especially interested in getting the UPNP plugin to work using the explanations you gave concerning the route.

    Therefore it would be of great help, if you could explain the route, e.g. what means "lms" and the "0" behind it...

    Would you be so kind and give me another time a clue?

  6. #6
    Junior Member
    Join Date
    Mar 2012
    Posts
    24

    How to create the Sol 11 package

    The tar file attachment contains 2 files. The first is called doit-all and can be run as a script, as root to attempt to setup the build environment and then as a build user to actually build the package. But I would expect most people will just follow it a step at a time. The second file is a patch file, each patch has a short explanation in the doit-all script. You can probably use this to build a package for openindiana but not require any of the packages from ANG-S11sfe, use the openindiana sfe & sfe/encumbered instead.
    Attached Files Attached Files

  7. #7
    Junior Member
    Join Date
    Mar 2012
    Posts
    24

    Added packages for Openindiana to the repo.

    The same repo now contain a package that will install on openindiana. I have checked that it at least installs and will start properly but OI is not my main system at the moment. Just follow the same instructions below to install on OI. Enjoy.

    Quote Originally Posted by evoz4 View Post
    I have created a repo with a number of packages mainly to support LMS.
    It uses perl 5.14.2 compiled with gcc 4.6.3 both of which are available in the repo together with all the other tools used to create it.

    I would recommend installing it into a fresh zone with an exclusive IP (static) that can have a multicast route configured.
    I couldn't find a way to do this with shared IP, but I might have missed a trick.
    To get UPnP to work properly you need a route like this:

    # route -p show
    persistent: route add default 192.168.1.1 -ifp net0
    persistent: route add 224.0.0.0 lms 0

    To install that software, add this publisher:

    # pkg set-publisher -p http://ang.homedns.org/dev/solaris11-sfe ANG-S11sfe

    Then install the package:

    # pkg install service/logitechmediaserver

    It may be a little slow, the uplink isn't too hot. Maybe somebody could mirror the repo?

    The package creates a user (lms) and group (mediasrv) that the server runs as, and it installs the service. All you have to do is enable it:

    # svcadm enable lmsd

    and then point a browser at port 9000 on the zone IP address and configure to your liking.

    The package includes all fixes that I'm aware are required, thanks to chincheta0815 for some of those.
    It depends on another package that is perl 5.14.2 compiled with gcc. After a number of attempts to
    use the Sol 11 bundled perl, it just seemed much simpler to do it this way.

    If anybody is interested I could also post the build method.

  8. #8
    Junior Member
    Join Date
    Aug 2011
    Posts
    27
    Quote Originally Posted by evoz4 View Post
    The same repo now contain a package that will install on openindiana. I have checked that it at least installs and will start properly but OI is not my main system at the moment. Just follow the same instructions below to install on OI. Enjoy.
    I have error while running install:
    pkg install service/logitechmediaserver
    Creating Plan /
    pkg install: No matching version of service/logitechmediaserver can be installed:
    Reject: pkg://ANG-S11sfe/service/logitechmediaserver@7.7.2,5.11-0.0.151.1.4:20120515T192444Z
    Reason: A version for 'require' dependency on pkg:/runtime/gcc@4.6.2,5.11-0.151.1 cannot be found
    Reject: pkg://ANG-S11sfe/service/logitechmediaserver@7.7.2,5.11-0.0.175.0.0.0.2.0:20120505T141330Z
    Reason: A version for 'require' dependency on pkg:/library/zlib@1.2.3,5.11-0.175 cannot be found

    so what dependency should I install

    PS. I have zlib and gcc installed already and im running openindiana. But still the same error about require dependency
    Last edited by hatng; 2012-06-11 at 08:12.

  9. #9
    Junior Member
    Join Date
    Mar 2012
    Posts
    24
    Sounds like this is an older version of OpenIndiana.
    If you can I would suggest upgrading to the latest using pkg update.
    Alternatively can you send the output from "pkg list | grep gcc", there maybe
    some dependency weirdness on earlier versions that I'm not aware of.

    Quote Originally Posted by hatng View Post
    I have error while running install:
    pkg install service/logitechmediaserver
    Creating Plan /
    pkg install: No matching version of service/logitechmediaserver can be installed:
    Reject: pkg://ANG-S11sfe/service/logitechmediaserver@7.7.2,5.11-0.0.151.1.4:20120515T192444Z
    Reason: A version for 'require' dependency on pkg:/runtime/gcc@4.6.2,5.11-0.151.1 cannot be found
    Reject: pkg://ANG-S11sfe/service/logitechmediaserver@7.7.2,5.11-0.0.175.0.0.0.2.0:20120505T141330Z
    Reason: A version for 'require' dependency on pkg:/library/zlib@1.2.3,5.11-0.175 cannot be found

    so what dependency should I install

    PS. I have zlib and gcc installed already and im running openindiana. But still the same error about require dependency

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •