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
Results 1 to 10 of 27
Thread: LMS on Solaris/OpenIndiana
-
2012-03-18, 08:09 #1Member
- Join Date
- Jan 2011
- Posts
- 47
LMS on Solaris/OpenIndiana
Last edited by chincheta0815; 2012-03-18 at 08:34.
-
2012-04-09, 06:13 #2Member
- Join Date
- Jan 2011
- Posts
- 47
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
-
2012-05-05, 10:40 #3Junior 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.
-
2012-05-05, 11:19 #4Member
- Join Date
- Jan 2011
- Posts
- 47
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?
-
2012-05-05, 12:20 #5Junior 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.
-
2012-05-09, 12:06 #6Junior 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.
-
2012-05-19, 04:32 #7Junior Member
- Join Date
- Mar 2012
- Posts
- 24
Added packages for Openindiana to the repo.
-
2012-06-10, 10:06 #8Junior Member
- Join Date
- Aug 2011
- Posts
- 27
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 dependencyLast edited by hatng; 2012-06-11 at 08:12.
-
2012-06-16, 07:08 #9Junior Member
- Join Date
- Mar 2012
- Posts
- 24
-
2012-06-16, 18:58 #10Junior Member
- Join Date
- Aug 2011
- Posts
- 27
i tried to run update but it seems i run the latest version of OI, and here's the gcc version:
it seems I have the old version of GCC, i tried to install version 4.6 but it won't allow me, some error about kernel"Code:root@openindiana:~# pkg update No updates available for this image. root@openindiana:~# pkg list | grep gcc developer/gcc-3 3.4.3-0.151.1.4 i-- system/library/gcc-3-runtime 3.4.3-0.151.1.4 i-- system/library/gcc-45-runtime (dilos.org) 4.5.2-1.2.6.0 i--
Code:root@openindiana:~# pkg install pkg://ANG-S11sfe/sfe/developer/gcc-46 Creating Plan - pkg install: No matching version of sfe/developer/gcc-46 can be installed: Reject: pkg://ANG-S11sfe/sfe/developer/gcc-46@4.6.3,5.11-0.0.175.0.0.0.2.0:20120505T121613Z Reason: All versions matching 'require' dependency pkg:/system/kernel@0.5.11,5.11-0.175 are rejected Reject: pkg://oi-experimental/system/kernel@0.5.11,5.11-1.1.1:20120518T234226Z pkg://solaris/system/kernel@0.5.11,5.11-0.175.0.0.0.2.1:20111019T075711Z Reason: Currently installed package 'system/kernel' is from sticky publisher 'openindiana.org'. This version is excluded by installed incorporation pkg://openindiana.org/consolidation/osnet/osnet-incorporation@0.5.11,5.11-0.151.1.4:20120503T051914Z

Reply With Quote

