plugin for Logitech Media Server (formerly Squeezebox Server)

Status
Not open for further replies.

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Hi,

I know there is SlimNAS8Pro, running at least on 8.0.1-Release (i haven't tested it yet on earlier release).
But the development seems to be stopped, and i wanted to take advantage of the plugin/jail system of FreeNAS 8.2

So I'm looking for a plugin for Logitech Media Server

If anyone of you have any intel about that (maybe a work in progress somewhere?), feel free to share.

If nothing exists (which would be wierd), I might have a try, but i'm not experienced enough on this, and I think i would waste a lot of nights for nothing ;)

In the meantime, I'll try to install SlimNAS8Pro in my jail.
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Replying to myself, and to let know people.

It's been hard, but i finally got to build LMS 7.8 for amd64-freebsd :)

Libary is being scanned at the moment :)

Next step is making an install script, and the step after is making a PBI
 

ben

FreeNAS GUI Developer
Joined
May 24, 2011
Messages
373
Thanks! It was funny seeing those two posts next to each other in the "what's new" list.
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
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, with autostart at boot :)
[Download LMS 7.8.0-1342011222]

Read the README file for instructions (also in this post in the quotes).

And it should be quite easy to update it in the future (it's independant of the logitech package).

Now the only thing left is to make a PBI out of it, but i won't be able to look at it before august.

NB : in order to install some freebsd ports in my jail, i had to upgrade Perl from 5.12 to 5.14... and later i had to build the CPAN modules from source (builds didn't exist for AMD64-FreeBSD).
So if you have problems running my LMS package, let me know, and upgrade your perl to see if it works better (normally it should work with Perl 5.8/5.10/5.12/5.14 but i have tested only 5.14)


Logitech Media Server on FreeNAS 8.2.0-RC1 inside the jail
- by djoole -

1. Log into your jail (assuming 1 is the id of your jail) :
jexec 1 /bin/csh

2. Create a temp dir
mkdir /usr/local/tmp

3. Put the package in your temp dir

4. unpack it :
cd /usr/local/tmp && tar xzf lms-freenas-amd64-7.8.0-1342011222.tgz

5. launch the install script :
./installme.sh

6. Enjoy your music again :)


Updating LMS should be this easy (not tested, make a backup of your prefs and plugins) :
1. Download latest LMS Freebsd package from http://downloads.slimdevices.com/
2. Unpack my package
3. Replace lms.tgz by the package you just downloaded (becareful it must be named lms.tgz!!)
4. Repack
5. Share and Use
 

geronimo1958

Contributor
Joined
Nov 19, 2011
Messages
112
After i enter the command

./installme.sh

I get

./installme.sh: Command not found.

The extraction worked. I can see the directory with the installme.sh

Any ideas??? I look forward to getting LMS running on my FreeNAS 8 box.
 

geronimo1958

Contributor
Joined
Nov 19, 2011
Messages
112
Didn't work.

I need to upgrade to 8.2 and redo my Jail. I tried to upgrade the Jail and go a long error message. Need clean start.
 

geronimo1958

Contributor
Joined
Nov 19, 2011
Messages
112
Deleted Jail under 8.2.0-RC1.

Upgraded to 8.2 Relase

Installed new jail.

Copied .tgz file to tmp directory as per instructions.

./installme.sh

get same error as before.

???????
 

geronimo1958

Contributor
Joined
Nov 19, 2011
Messages
112
I did a little experimenting. I created a simple shell script and opened its permissions up with chmod 777 and that shell script gets the same error.

Is there another service that needs to be running??
 

geronimo1958

Contributor
Joined
Nov 19, 2011
Messages
112
I got the test shell script running (had a typo)
#!/bin/csh
clear
echo "Good morning"

I changed the installme.sh from

#!/bin/bash to #!/bin/csh but that did not work

I did notice that while in the ee editor that the installme.sh has ^M at the end of each line. Is that the culprit?
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Jeez, i thought i repacked the script without the ^M
It's my fault, i created the installme.sh, README, and lms files from Notepad++ under Seven.

I'm not at home right now, but i'll try to correct the package.
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Well, I've checked all the files and they are correct.
I think maybe you modified installme.sh from your Windows PC and it added the ^M chars.
Just remove them, or download again my package.
 

geronimo1958

Contributor
Joined
Nov 19, 2011
Messages
112
Copied the lms-freenas-amd64-7.8.0-1342011222.tgz file directly to the FreeNAS system using the wget command.

Running ./installme.sh generates the previously referenced error

Edit using vi show ^M at the end of each line. Remove using vi.

Run ./installme.sh again.

Get the following error(s):

group=lms: Command not found.
user=lms: Command not found
installdir=/usr/local/lms: Command not found.
tmpdir=/usr/local/tmp/lms-freenas-amd64-7.8.0-1342011222: Command not found.
version=logitechmediaserver-7.8.0-1342011222-FreeBSD: Command not found.
if: Expression Syntax.

?
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
It seems the script is not parsed like a shell script on your system...
Can you make sure you have /bin/sh in your jail?
And just to make sure :
Are you using FreeNAS 8.2 (RC or Release) ?
Do you have the jail PBI plugin installed, and are you sure you're installing my package inside the jail?
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
About the ^M problems, this should be okay now... i had corrected the pb but not uploaded the new tgz!!
It's done now
 

geronimo1958

Contributor
Joined
Nov 19, 2011
Messages
112
I am running 8.2.0-RELEASE.
/bin/sh is present in the jail.
Yes, I am running everything inside the jail.
I will re download the files and give it another shot.
 

unholyeyebrows

Explorer
Joined
Apr 19, 2012
Messages
55
Seems to fail on 8.20 release.

Hi

I've just tried to install the script on a freshly installed Jail (8.20 release) and get the following error:


software# mkdir lms
software# mv lms-freenas-amd64-7.8.0-1342011222.tgz lms
software# cd lms
software# tar xzf lms-freenas-amd64-7.8.0-1342011222.tgz
software# ls
lms-freenas-amd64-7.8.0-1342011222 lms-freenas-amd64-7.8.0-1342011222.tgz
software# cd lms-freenas-amd64-7.8.0-1342011222
software# ls
CPAN-amd64-freebsd.tgz VERSION lms
README installme.sh lms.tgz
software# ./installme.sh
Starting lms.
/libexec/ld-elf.so.1: /usr/local/lms/CPAN/arch/5.12/amd64-freebsd/auto/EV/EV.so: Undefined symbol "Perl_xs_apiversion_bootcheck"
/usr/local/etc/rc.d/lms: WARNING: failed to start lms

Any ideas what might be going wrong here? I'm running this on a 64 bit FreeNAS installation.

Thanks
Nick
 
Status
Not open for further replies.
Top