Koozali.org: home of the SME Server

Slimdevices Squeezecenter

Offline bricknell

  • *
  • 8
  • +0/-0
Slimdevices Squeezecenter
« on: April 23, 2008, 04:21:16 PM »
I've just returned from spending far too long trying to install Logitech's / Slimdevices new Squeezecenter software on my Server Only SME7 box.  Given that there seems to be scant information on the web regarding the install of this software, I thought I'd write up my findings here so others may benefit from my misfortune / correct any errors I may have made along the way  :)

Information on http://wiki.slimdevices.com/index.cgi?SqueezeCenterRPM states you install the YUM repo using:

Code: [Select]
rpm -Uvh http://repos.slimdevices.com/yum/squeezecenter/release/squeezecenter-repo-1-4.noarch.rpm
Whilst that gave me a squeezecenter.repo file under yum, it didn't put the repo into the yum update repository db.  So, after much searching (in vain) on the contribs and logitec/slimdevices forums, I took the text of squeezecenter.repo:

## Only enable one repository in this list...

[squeezecenter-release]
name = SqueezeCenter Release Repository
baseurl = http://repos.slimdevices.com/yum/squeezecenter/release/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-SqueezeCenter

[squeezecenter-testing]
name = SqueezeCenter Branch Repository
baseurl = http://repos.slimdevices.com/yum/squeezecenter/testing/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-SqueezeCenter

[squeezecenter-unstable]
name = SqueezeCenter Trunk Repository
baseurl = http://repos.slimdevices.com/yum/squeezecenter/unstable/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-SqueezeCenter


and added it to the YUM repository db manually:
Code: [Select]
db yum_repositories set squeezecenter repository BaseURL http://repos.slimdevices.com/yum/squeezecenter/release/ EnableGroups no GPGCheck yes GPGKey file:///etc/pki/rpm-gpg/RPM-GPG-KEY-SqueezeCenter Name 'SqueezeCenter Release Repository' Visible yes status enabled

expand-template /etc/yum.conf

Then tried to install it:
Code: [Select]
yum install squeezecenter
Which downloads the package, but bombs out with the error:

warning: rpmts_HdrFromFdno: V3 RSA/MD5 signature: NOKEY, key ID c3cdadd1
Public key for squeezecenter-7.0-1.noarch.rpm is not installed
Retrieving GPG key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-SqueezeCenter
Importing GPG key 0xC3CDADD1 "Logitech <gpg@slimdevices.com>"
Is this ok [y/N]: y
Key imported successfully
Import of key(s) didn't help, wrong key(s)?

Public key for squeezecenter-7.0-1.noarch.rpm is not installed


I then tried a manual update using:
Code: [Select]
rpm -Uvh http://repos.slimdevices.com/yum/squeezecenter/release/squeezecenter-7.0-1.noarch.rpm...but that just tells me I've got the latest version already installed... er... where?  I can't find it?!

Thinking the problem may be with the GPG key, I changing the repository db entry to ignore the key:

Code: [Select]
db yum_repositories remove squeezecenter

db yum_repositories set squeezecenter repository BaseURL http://repos.slimdevices.com/yum/squeezecenter/release/ EnableGroups no GPGCheck no Name 'SqueezeCenter Release Repository' Visible yes status enabled

expand-template /etc/yum.conf

Now yum install squeezecenter works :-)  Well, it installs.  But after a signal-event post-upgrade and signal-event reboot I still get:

Code: [Select]
service squeezecenter status
'squeezecenter' is not a valid service name

So...
Code: [Select]
ln -s /etc/rc.d/init.d/squeezecenter /etc/rc.d/rc7.d/S99squeezecenter
service squeezecenter start
and we're away...
Starting SqueezeCenter:                                    [  OK  ]

Hurrah for my perseverance.  Boo to Logitec for providing an RPM that doesn't do what they say it should, and double boo for a YUM installation package that does not complete the installation itself, instead requiring manual, undocumented, steps :-(

Now I can finally go to http://servername:9000 and configure the Squeezecentre.  Which leads me to different issues that are not part of this thread...!

Anyway, sorry for the length of post, and if anyone can see any errors I have made or knows of a better way to get Squeezecentre running on SME7, then "I'm all ears"  :grin:

Best regards,

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Slimdevices Squeezecenter
« Reply #1 on: April 23, 2008, 04:53:17 PM »
I knew if I procrastinated somebody would do this.

I was playing with this on Windows the other day with a plan to run it on SME.

I just did a lazy install..

[root@c3 ~]# rpm --import http://repos.slimdevices.com/yum/squeezecenter/RPM-GPG-KEY-SqueezeCenter
[root@c3 ~]# wget http://repos.slimdevices.com/yum/squeezecenter/release/squeezecenter-7.0-1.noarch.rpm
[root@c3 ~]# yum localinstall squeezecenter-7.0-1.noarch.rpm
[root@c3 ~]# /etc/rc.d/init.d/squeezecenter start

Was leaving the SME intergration for another day.

I'm just testing it with the JAVA player SoftSqueeze.
Regards,
William

IF I give advise.. It's only if it was me....

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Slimdevices Squeezecenter
« Reply #2 on: April 23, 2008, 09:42:42 PM »
I've just returned from spending far too long trying to install Logitech's / Slimdevices new Squeezecenter software on my Server Only SME7 box.  Given that there seems to be scant information on the web regarding the install of this software, I thought I'd write up my findings here so others may benefit from my misfortune / correct any errors I may have made along the way  :)

Information on http://wiki.slimdevices.com/index.cgi?SqueezeCenterRPM states you install the YUM repo using:

Code: [Select]
rpm -Uvh http://repos.slimdevices.com/yum/squeezecenter/release/squeezecenter-repo-1-4.noarch.rpm
Whilst that gave me a squeezecenter.repo file under yum, it didn't put the repo into the yum update repository db.  So, after much searching (in vain) on the contribs and logitec/slimdevices forums, I took the text of squeezecenter.repo:

<cut>

Hurrah for my perseverance.  Boo to Logitec for providing an RPM that doesn't do what they say it should, and double boo for a YUM installation package that does not complete the installation itself, instead requiring manual, undocumented, steps :-(

<cut>

Anyway, sorry for the length of post, and if anyone can see any errors I have made or knows of a better way to get Squeezecentre running on SME7, then "I'm all ears"  :grin:
You can not expect stock packages to work out of the box on SME Server as the layout and configuration system on SME Server is very different to normal linux distributions in order to have a lot of things controlled and automated. That is the reason that you see a lot of so called integration RPMs. These RPMs will install the stock RPM and implement the necessary files for use and functioning on SME Server.

If you only install the stock RPM you will have to do manual configuration most of the times described in installation manuals your self, taking into account the differences in architecture and file locations on SME Server compared to other linux distributions.

You could have a look at the SME Server Development Guide linked in the wiki to learn more on the SME Server internals. One other word of please advice write howto's in the wiki please and add a referral to the forums, that way it is easier to collaborate and modify/fix things.
« Last Edit: April 23, 2008, 09:45:49 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Slimdevices Squeezecenter
« Reply #3 on: April 24, 2008, 09:20:02 AM »
I'm currently unable to edit the wiki due to spelling errors so just a quick how to.

Thanks to bricknell for getting me started...

************************************************************

Lets setup some repositories.

db yum_repositories set squeezecenter-release repository \
BaseURL http://repos.slimdevices.com/yum/squeezecenter/release/ \
EnableGroups no \
GPGCheck no \
GPGKey http://repos.slimdevices.com/yum/squeezecenter/RPM-GPG-KEY-SqueezeCenter \
Name 'SqueezeCenter Release Repository' \
Visible no \
status disabled

db yum_repositories set squeezecenter-testing repository \
BaseURL http://repos.slimdevices.com/yum/squeezecenter/testing/ \
EnableGroups no \
GPGCheck no \
GPGKey http://repos.slimdevices.com/yum/squeezecenter/RPM-GPG-KEY-SqueezeCenter \
Name 'SqueezeCenter Branch Repository' \
Visible no \
status disabled

db yum_repositories set squeezecenter-unstable repository \
BaseURL http://repos.slimdevices.com/yum/squeezecenter/unstable/ \
EnableGroups no \
GPGCheck no \
GPGKey http://repos.slimdevices.com/yum/squeezecenter/RPM-GPG-KEY-SqueezeCenter \
Name 'SqueezeCenter Trunk Repository' \
Visible no \
status disabled


expand-template /etc/yum.conf

May as well grab the key that we don't use.

rpm --import http://repos.slimdevices.com/yum/squeezecenter/RPM-GPG-KEY-SqueezeCenter

Lets install the star attraction.

yum --enablerepo=squeezecenter-release install squeezecenter

Lets make sure it starts if and when we reboot.

ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99squeezecenter

Better give ourselves some control and open the music to the world.

db configuration set squeezecenter service \
status enabled \
TCPPorts 9000,3483 \
UDPPorts 9000,3483 \
access public


Tell SME what we have done.

signal-event remoteaccess-update

Lets make somewhere for music and playlists.

mkdir -p /opt/squeezecenter/playlists
mkdir -p /opt/squeezecenter/music


And give squeezey ownership of the above.

chown squeezecenter:squeezecenter /opt/squeezecenter/playlists
chown squeezecenter:squeezecenter /opt/squeezecenter/music


Now let the music begin...

/etc/rc.d/rc7.d/S99squeezecenter start

************************************************************

Note.

  • I'm not sure on the location of music/playlists and permissions. Maybe an I-Bay would be better.
  • The above opens your SME to the world. Change public to private to limit access to your defined local networks.

Want to know what this 'slim' stuff is all about then look here...

SLIM DEVICES - a logitech company

When installed, a java soft player can be downloaded from the administration page at

http://<SMEserver>:9000



Edit: Corrected start-up sym link.

Edit: Hide repositories from server manager

« Last Edit: April 25, 2008, 02:54:31 AM by william_syd »
Regards,
William

IF I give advise.. It's only if it was me....

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Slimdevices Squeezecenter
« Reply #4 on: April 24, 2008, 10:29:10 AM »


ln -s /etc/rc.d/init.d/squeezecenter /etc/rc.d/rc7.d/S99squeezecenter

[cut]

Better give ourselves some control and open the music to the world.

db configuration set squeezecenter service \
status enabled \
TCPPorts 9000,3483 \
UDPPorts 9000,3483 \
access public


I will do:
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99squeezecenter

in such way squeezecenter service will start according the 'status' value

hth
ciao
Stefano

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Slimdevices Squeezecenter
« Reply #5 on: April 24, 2008, 10:54:10 AM »
I will do:
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S99squeezecenter

in such way squeezecenter service will start according the 'status' value

hth
ciao
Stefano


opps.. that's what I meant.  No wonder the wiki wont let me in. :lol:

Regards,
William

IF I give advise.. It's only if it was me....

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Slimdevices Squeezecenter
« Reply #6 on: April 24, 2008, 08:25:04 PM »
I'm currently unable to edit the wiki due to spelling errors so just a quick how to.

Thanks to bricknell for getting me started...

************************************************************

Lets setup some repositories.
Please only instruct users to setup needed repositories, most of them do not need the test, let alone debug versions.

If you import the key, please also set the GPGCheck to yes, as this improves savety by only installing packages signed by the authors/owners of the repo.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Slimdevices Squeezecenter
« Reply #7 on: April 25, 2008, 02:49:47 AM »
Please only instruct users to setup needed repositories, most of them do not need the test, let alone debug versions.

If you import the key, please also set the GPGCheck to yes, as this improves savety by only installing packages signed by the authors/owners of the repo.

If a user has left the 'safety' of the server manager and is working at the console I'm sure they can decide what they want. I'll concede that leaving them visible in server manager was not the best idea.

I had issues with the GPG-key. Something isn't right with the way the package was signed (or not signed).

Regards,
William

IF I give advise.. It's only if it was me....

Offline chrislaurie

  • *
  • 96
  • +0/-0
Re: Slimdevices Squeezecenter
« Reply #8 on: July 22, 2008, 06:22:16 PM »
I'm trying this but it is not working. Some problem with the key (I think). I do have GPGCheck set to no. Here is the putty log:

 squeezecenter           noarch     7.0.1-1          squeezecenter-release   18 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 18 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: V3 RSA/MD5 signature: NOKEY, key ID c3cdadd1
Public key for squeezecenter-7.0.1-1.noarch.rpm is not installed
Retrieving GPG key from http://repos.slimdevices.com/yum/squeezecenter/RPM-GPG-KEY-SqueezeCenter
Importing GPG key 0xC3CDADD1 "Logitech <gpg@slimdevices.com>"
Is this ok [y/N]: y
Key imported successfully
Import of key(s) didn't help, wrong key(s)?


Public key for squeezecenter-7.0.1-1.noarch.rpm is not installed

Any suggestions?

Offline chrislaurie

  • *
  • 96
  • +0/-0
Re: Slimdevices Squeezecenter
« Reply #9 on: July 22, 2008, 07:16:22 PM »
Aha - installation solved.

I had to remove the gpg download as well as set GPGCheck to no in ther repository. I used this repository:

db yum_repositories set squeezecenter-release repository \
BaseURL http://repos.slimdevices.com/yum/squeezecenter/release/ \
EnableGroups no \
GPGCheck no \
Name 'SqueezeCenter Release Repository' \
Visible no \
status disabled

and of course remember:

expand-template /etc/yum.conf



Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Slimdevices Squeezecenter
« Reply #10 on: July 22, 2008, 07:26:04 PM »
I had to remove the gpg download as well as set GPGCheck to no in ther repository. I used this repository:
I think it would have been better if you just would have imported their key like this:
rpm --import http://repos.slimdevices.com/yum/squeezecenter/RPM-GPG-KEY-SqueezeCenter

Nevermind...
« Last Edit: July 22, 2008, 07:31:24 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline chrislaurie

  • *
  • 96
  • +0/-0
Re: Slimdevices Squeezecenter
« Reply #11 on: July 22, 2008, 08:05:18 PM »
Thanx a lot for your response anyway.

I have it working now, the web interface everything.

What I want to sort out now: How to give squezzecenter access to my mp3 that are sitting in the sub-dir of an ibay. I tried to point it there through settings but it comes up with nothing  - I suspect it is a rights/owner/group issue. I use the ibay because it is easy to upload and access through other players/software.

Can I not have a symlink or something? I am out of my depth there with the linux stuff.

Any suggestions?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Slimdevices Squeezecenter
« Reply #12 on: July 22, 2008, 08:30:36 PM »
Thanx a lot for your response anyway.

I have it working now, the web interface everything.

What I want to sort out now: How to give squezzecenter access to my mp3 that are sitting in the sub-dir of an ibay. I tried to point it there through settings but it comes up with nothing  - I suspect it is a rights/owner/group issue. I use the ibay because it is easy to upload and access through other players/software.

Can I not have a symlink or something? I am out of my depth there with the linux stuff.

Any suggestions?
Have a look in your log files for clues, especially in /var/log/messages and /var/log/httpd/error_log.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: Slimdevices Squeezecenter
« Reply #13 on: August 29, 2008, 02:58:44 PM »
I've gone ahead and created a wiki entry in "How-to" at http://wiki.contribs.org/SqueezeCenter.

Please review and either comment or edit.
SME since 2003

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: Slimdevices Squeezecenter
« Reply #14 on: August 29, 2008, 03:03:45 PM »
What I want to sort out now: How to give squezzecenter access to my mp3 that are sitting in the sub-dir of an ibay. I tried to point it there through settings but it comes up with nothing  - I suspect it is a rights/owner/group issue. I use the ibay because it is easy to upload and access through other players/software.

Can I not have a symlink or something? I am out of my depth there with the linux stuff.

Any suggestions?

I have mine set up with music in an ibay and it is fine. I don't think a symlink will work; you should instead use the administrator interface to browse to your ibay directory where the media is. Also ensure that the group permissions you gave the ibay allow other users to access the files. In my case I have that ibay with Group=everyone but with password required outside of local network.
SME since 2003