Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: bricknell 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 (http://wiki.slimdevices.com/index.cgi?SqueezeCenterRPM) states you install the YUM repo using:
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:
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:
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:
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:
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:
service squeezecenter status
'squeezecenter' is not a valid service name
So...
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,
-
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.
-
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 (http://wiki.slimdevices.com/index.cgi?SqueezeCenterRPM) states you install the YUM repo using:
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.
-
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 (http://www.slimdevices.com/index.html)
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
-
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
-
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:
-
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.
-
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).
-
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?
-
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
-
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...
-
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?
-
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.
-
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.
-
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.
-
Hi
I installed the current version of Sqeezecenter as per the instructions here on a server running 7.3 & everything worked fine for a number of weeks. However, now I cannot open the configuration page at http://myserver:9001.
Was working fine before, but not now.
Any ideas?
TIA
Peter
-
However, now I cannot open the configuration page at http://myserver:9001.
By default, it should be http://myserver:9000.
Did you modify it or have you done a typo
-
Sorry, I should have mentioned I did change it to 9001.
Thanks,
Peter
-
I followed the wiki instructions to a tee. No problem with installation until I tried to start the squeezecenter with /etc/rc.d/rc7.d/S99squeezecenter start. The I received the following error:
/etc/rc7.d/S99squeezecenter: Couldn't find/execute init script for service squeezecenter
It's probably something stupid or obvious...
Thoughts? Suggestions? Solutions even better.