SqueezeCenter and Apple TV Take 2
Feb 17th, 2008 by Scott Gruby
I decided to take the plunge today and install the Apple TV Take 2 update on my Apple TV and attempt to get the SqueezeBox software (now called SqueezeCenter) running on it. I previously had this running on Apple TV version 1.1, but I want the ability to rent movies, so I had to update my Apple TV and decided to install the new SqueezeCenter at the same time. Unfortunately this has been quite complicated. I almost have things working.
- Following the instructions in this thread, I created a PatchStick to install SSH on my updated Apple TV. Prior to updating the Apple TV, I copied all the necessary SSH files off my Apple TV
- Pick up the latest SqueezeCenter (7.0) and the XM Radio Plugin
- Create a folder on the Desktop called SlimServer
- In that folder create 2 files. The first is called StartupParameters.plist and it contains:
{ Description = "SlimServer"; Provides = ("SlimServer"); Requires = ("Disks"); Uses = ("mDNSResponder", "Resolver", "DirectoryServices", "NFS", "Network Time"); OrderPreference = "Last"; Messages = { start = "Starting SlimServer"; stop = "Stopping SlimServer"; }; }The second is called SlimServer and it contains:
#!/bin/sh . /etc/rc.common SERVER_RUNNING=`ps -axww | grep "slimp3.pl|slimp3d|slimserver.pl|slimserver" | grep -v grep | cat` StartService() { ConsoleMessage "Starting SlimServer" if [ z"$SERVER_RUNNING" = z ] ; then pushd "/Users/frontrow/server" sudo -u frontrow "SqueezeCenter.app/Contents/Resources/start-server.sh" popd fi if [ z"$#" != z"0" ] ; then ConsoleMessage -S fi } StopService() { if [ z"$SERVER_RUNNING" != z ] ; then kill `echo $SERVER_RUNNING | sed -n 's/^[ ]*([0-9]*)[ ]*.*$/1/p'` fi } RunService "$1" - Tar up the folder:
cd ~/Desktop tar -cvf slim.tar SlimServer
- On a Tiger machine:
cd /System/Library/Perl tar -cvf ~/Desktop/perl.tar 5.8.6
- Mount the SqueezeCenter dmg file that was downloaded above
- From the image, copy Install Files/SqueezeCenter.prefPane/Contents/server to your desktop
- Place the XMRadio plugin in ~/Destkop/server/Plugins
- Modify ~/Desktop/server/SqueezeCenter.app/Contents/Resources/start-server.sh to add
HOME=/Users/frontrow; export HOME
before the ./slimserver.pl lines
- Replace the mDNSResponderPosix with the one from the SlimServer 6.5.4 as the one for SqueezeCenter apparently is a PPC only app and the Apple TV doesn’t have Rosetta. The SqueezeCenter developers are going to fix this.
- Tar up the folder:
cd ~/Desktop tar -cvf server.tar server
-
sftp -1 frontrow@appletv.local
(Password is frontrow)
put slim.tar put server.tar put perl.tar
- Login via ssh using
ssh -1 frontrow@appletv.local
password is frontrow
- Change the root file system to read/write using
sudo mount -uw /
- Uncompress the files
tar -xvf perl.tar tar -xvf server.tar tar -xvf perl.tar
- Move the Perl modules into a good spot
sudo mkdir /Library/Perl sudo mv 5.8.6 /Library/Perl
- Move the SlimServer folder using
sudo mv /Users/frontrow/SlimServer /Library/StartupItems/
- Make the SlimServer file executable
sudo chmod +x /Library/StartupItems/SlimServer/SlimServer
-
Change the owner
sudo chown -R root:wheel /Library/StartupItems/SlimServer
- Disable auto updating
sudo bash -c 'echo "127.0.0.1 mesu.apple.com" >> /etc/hosts'
- Restart the AppleTV
sudo reboot
- From Safari goto: http://appletv.local:9000/
- Change the music directory in the SlimServer prefs to /mnt/Media/Media Files
- Use iTunes to change the ID3 tags to version 2.2.0 and use that option to Reverse the Unicode strings to repair some issues with my database
I’m still trying to get the XM Radio plugin to allow 2 simultaneous connections, but other than that, I’m done. This has been a torturous process, but I figure by the next time I have to do this, I’ll be able to do it in minutes ![]()

http://gizmodo.com/357626/web-browse-on-apple-tv-with-safari-hd-out-now
Now thats cool.
Managed to get my SC 7 working on the Apple TV 2.0 as well. Note that it is very important to leave /System/Library/Perl/…./libperl.dylib intact. If you make the mistake of overwriting it with a Tiger version, all Perl does is complain about an ‘Illegal instruction’ and throws a Seg fault (via Crashreporter).
I did not manage to get the scanner working correctly: it works OK for a small set (say 100 songs) but not for my full library (NFS mounted volume). Looks like the autocommit of MySQL does not work. Any ideas?
Hi
Can you give us some feedback about how responsive the ATV is running SC7? I am possibly considering buying an ATV just for this purpose but really want to know about how well its cpu/ram actually handles a large music library when served to single (or multiple) slimboxes.
Thanks for any info!
There isn’t a top or uptime command built into the ATV, so I can’t see the load. However, my wife and I watched a movie last week (regular definition to a 4:3 aspect ratio TV) on the ATV while SC7 was serving up XM radio to 2 Squeezeboxes. I haven’t tried playing music stored on the ATV out to the 2 boxes and watching a movie, yet. (The streaming uses a lot less CPU as far as I can tell.)
According to ubench, an 1.3GHz iBook G4 has around 80% of the performance of an AppleTV (ubench tests CPU and RAM only, not I/Os). I bet throughput won’t be a problem at all with SC7; The RAM might impose a limit, I don’t know.
FYI, on my ATV I have simply copied the uptime and top binaries from 10.4.11/intel. Top fails with “illegal instruction” but uptime works fine.
Will this work on the latest sc and the latest appletv updates as of August 2008?
Thanks for your hard work! I would love to use my appletv as the sc server so I don’t have to leave my macbook pro on all the time (using insomniax)
It should work fine. I haven’t upgraded to SqueezeCenter 7.1, yet (I’m running 7.0.1), but I do have the latest AppleTV update.