B2+Lenny+SqueezeCenter
Posted: 23 Sep 2009, 16:16
Hi all,
*** NOT FOR THE WEAK OF HEART ***
A while ago I decided to upgrade my Bubba2 to Lenny, as all the servers I have are on this version. I edited my /etc/apt/sources.list to point directly to my local debian mirror, removed the entries to the excito repositories, did and apt-get update/dist-upgrade and ended up with a working Lenny installation!
Of course you will have notices that I lost all the Bubba2 installed software. I wasn't too worried losing the Bubba HTML administration interface as I don't really use it. What I did lose was squeezecenter and this was a BIG blow. I tried adding "deb http://debian.slimdevices.com stable main" to my /etc/apt/sources.list but Logitech does not support PPC!
After messing around for quite a while I eventually managed to work out what was going on. If anybody wants to do this then here is what I think is a minimum set of steps. Perform all of these as root. (Be careful if you start SqueezeCenter by hand as root as it creates some files and will leave them with root privileges which means when you try to use the init scripts it won't work... You have been warned).
1.- Download squeezecenter_7.3.3_all.deb from the Logitech Squeezebox site
2.- Install SqueezeCenter using "dpkg -i squeezecenter_7.3.3_all.deb". You will probably have some dependency problems here, I resolved them using "dselect".
3.- The installation tries to start SqueezeCenter but this will fail, so stop it using /etc/init.d/squeezecenter stop.
4.- Run "/usr/share/squeezecenter/Bin/build-perl-modules.pl DBD::mysql DBI XML::Parser::Expat HTML::Parser JSON::XS Compress::Zlib YAML::Syck GD Encode::Detect Template". When it asks for the SqueezeCenter directory enter /usr/share/squeezecenter.
5.- Make sure that the file /var/lib/squeezecenter/cache/my.cnf has permissions 644 otherwise the mysql initialisation will fail.
6.- Start SqeezeCenter with /etc/init.d/squeezecenter start et voilá!
It took me a while to sort out step 4. If you run /usr/sbin/squeezecenter-server by hand instead of using the init script then it will give you a list of missing packages which for some reason does not include Encode::Detect and Template. Encode::Detect just made the squeezecenter crash. Template only seems to affect the SqueezeCenter HTML interface and I had to start debugging the SqueezeCenter software itself to find this one.
I have now have a working Bubba2 with Debian Lenny and an all singing all, dancing SqueezeCenter installation.
Hope this helps someone.
Regards
Simon Martin.
*** NOT FOR THE WEAK OF HEART ***
A while ago I decided to upgrade my Bubba2 to Lenny, as all the servers I have are on this version. I edited my /etc/apt/sources.list to point directly to my local debian mirror, removed the entries to the excito repositories, did and apt-get update/dist-upgrade and ended up with a working Lenny installation!
Of course you will have notices that I lost all the Bubba2 installed software. I wasn't too worried losing the Bubba HTML administration interface as I don't really use it. What I did lose was squeezecenter and this was a BIG blow. I tried adding "deb http://debian.slimdevices.com stable main" to my /etc/apt/sources.list but Logitech does not support PPC!
After messing around for quite a while I eventually managed to work out what was going on. If anybody wants to do this then here is what I think is a minimum set of steps. Perform all of these as root. (Be careful if you start SqueezeCenter by hand as root as it creates some files and will leave them with root privileges which means when you try to use the init scripts it won't work... You have been warned).
1.- Download squeezecenter_7.3.3_all.deb from the Logitech Squeezebox site
2.- Install SqueezeCenter using "dpkg -i squeezecenter_7.3.3_all.deb". You will probably have some dependency problems here, I resolved them using "dselect".
3.- The installation tries to start SqueezeCenter but this will fail, so stop it using /etc/init.d/squeezecenter stop.
4.- Run "/usr/share/squeezecenter/Bin/build-perl-modules.pl DBD::mysql DBI XML::Parser::Expat HTML::Parser JSON::XS Compress::Zlib YAML::Syck GD Encode::Detect Template". When it asks for the SqueezeCenter directory enter /usr/share/squeezecenter.
5.- Make sure that the file /var/lib/squeezecenter/cache/my.cnf has permissions 644 otherwise the mysql initialisation will fail.
6.- Start SqeezeCenter with /etc/init.d/squeezecenter start et voilá!
It took me a while to sort out step 4. If you run /usr/sbin/squeezecenter-server by hand instead of using the init script then it will give you a list of missing packages which for some reason does not include Encode::Detect and Template. Encode::Detect just made the squeezecenter crash. Template only seems to affect the SqueezeCenter HTML interface and I had to start debugging the SqueezeCenter software itself to find this one.
I have now have a working Bubba2 with Debian Lenny and an all singing all, dancing SqueezeCenter installation.
Hope this helps someone.
Regards
Simon Martin.