SlimServer server software that powers audio players from SlimDevices

From Buffalo NAS-Central

Jump to: navigation, search
sb3_hero_200.jpg

Contents

[edit] Background

The SlimServer[1] is an open source Perl based audio server supported by Slim Devices.

Streaming of music from a SlimServer to a Squeezebox or Softsqueeze allows users to play their music collections from virtually anywhere there is an Internet connection. SlimServer also supports a large number of audio formats include MP3, FLAC, WAV, Ogg, and AAC. Hardware that SlimServer supports includes the Slim Device Squeezebox and Roku Soundbridge.

The Squeezebox ethernet audio component, which has both analog and digital output jacks, and streams audio from a SlimServer. There is a free software emulator version of the Squeezebox called Softsqueeze which is written in Java.

There are numerous plug-ins and device drivers available for SlimServer. This includes support for automation systems, such as AMX and Crestron Electronics.

The SlimServer software runs under Linux, Microsoft Windows, and Apple Macintosh platforms.

[edit] Installing SlimServer 6.3.1 on Power PC with OpenLink firmware

[edit] Before you begin

You will find the same but much more detailed instructions (but without hacking the LinkStation by flashing the OpenLink Firmware) on http://wiki.slimdevices.com/index.cgi?SlimServer ->> Linkstation Installation (redirects to http://fieldnetworks.com/slim/linkstation.html. The instructions are for SlimServer v6.1.1, but v6.3.1 works also. v6.5.4 will not work, since it uses MySQL-DB instead of SQLite-DB)

Hence you can follow the OpenLink instructions here on nas-central.org an then switch directly to page 3 on http://fieldnetworks.com/slim/linkstation.html if you are a beginner and need more explanations. Success guaranteed.

Else go on with this guide.

[edit] Prepare the Linkstation

[edit] Installing OpenLink Firmware (PowerPC)

For detailed information and instructions see OpenLink

  • Flash the Linkstation using OpenLink 0.73b
download Openlink 0.73b from:
 http://downloads.nas-central.org/openlink/powerpc-hdhlan-openlink-0.73b.zip.
  • Open a telnet or hyperterminal session to the Linkstation
  • Change the root password with passwd root
  • Login
  • Install PPC-Tools software (example shown below for PPC - if you have LS2 or otherwise, check [1] for instructions for Mipsel/LS2 and PowerPC/HG)
 mkdir /mnt/share
 cd /mnt/share
 wget http://downloads.nas-central.org/ALL_PPC/ppc-tools-2_1.tgz
 mkdir devtools
 cd devtools
 tar xzvf ../ppc-tools-2_1.tgz
 ./install.sh
  • Install expat
 cd /mnt/share
 wget http://prdownloads.sourceforge.net/expat/expat-1.95.8.tar.gz 
 mkdir /mnt/share/expat
 cd /mnt/share/expat
 tar xzvf /mnt/share/expat-1.95.8.tar.gz
 cd expat-1.95.8
 ./configure --prefix=/usr
 make install

[edit] Installing SlimServer

[edit] Downgrading the Perl modules (from 5.8.7 to 5.8.5):

  • Backup Perl modules
 mkdir /mnt/old-stuff 

(only if this directory does not exist)

 mv /usr/share/perl /mnt/old-stuff/old-perl-versionnr
 mv /usr/bin/perl /mnt/old-stuff/old-perl-exec-versionnr
  • Install the Perl modules
 cd /mnt/share
 wget http://fieldnetworks.com/slim/perl-5.8.5-linkstation.tar.gz
 cp /mnt/share/perl-5.8.5-linkstation.tar.gz /
 cd /
 tar xzvf perl-5.8.5-linkstation.tar.gz
 ln -s /usr/local/bin/perl /usr/bin/perl
  • Creating a symbolic link
  • From cc to gcc
 ln -s /usr/bin/gcc /usr/bin/cc

[edit] Installing SlimServer Software

  • Download the most recent SlimServer [2] version: (Perl source .tar.gz) Version 6.5.4 will not work since it is using MySQL instead of SQLITE - would be a separate task - who does this job? ;-))
wget http://www.slimdevices.com/downloads/SlimServer_v6.3.1/SlimServer_v6.3.1.tar.gz
tar -xzvf SlimServer_v6.3.1.tar.gz
mv SlimServer_v6.3.1 /mnt/slimserver
  • Start SlimServer
 mkdir /mnt/slim-data
 cd /mnt/slimserver
 ./slimserver.pl --daemon --prefsfile /mnt/slim-data/slimserver.pref --cachedir /mnt/slim-data
  • Auto start
 cd /mnt/share
 wget http://fieldnetworks.com/slim/start-slim.sh
 mv /mnt/share/start-slim.sh /mnt/slim-data
 chmod +x /mnt/slim-data/start-slim.sh
 ln -s /mnt/slim-data/start-slim.sh /etc/rc2.d/S95slimserver
 or try
 ln -s /mnt/slim-data/start-slim.sh /etc/rc.d/rc2.d/S95slimserver 
 -----
 You can verify that it worked by rebooting your LinkStation (type "reboot" at the command prompt).
 Give it a few minutes, and your SqueezeBox should reconnect to the SlimServer.

[edit] Installing SlimServer 6.3.1 FreeLink

Untested

First you have to flash the LinkStation with FreeLink-Firmware.

The version of Slimserver in the Debian Unstable branch is 6.3.0-3 [3] Make sure that the unstable branch is in your sources.list

nano /etc/apt/sources.list

make sure these lines exist, add them if they do not:

deb http://mirrors.kernel.org/debian/ unstable main contrib non-free
deb-src http://mirrors.kernel.org/debian/ unstable main contrib non-free

do an update

apt-get update

use apt-get to install Slimserver

apt-get install slimserver

you should be able to follow the instructions below then to upgrade.

[edit] Install SlimServer

  • Download the most recent SlimServer [4] version: (Perl source .tar.gz)
wget http://www.slimdevices.com/downloads/SlimServer_v6.3.1/SlimServer_v6.3.1.tar.gz
tar -xzvf SlimServer_v6.3.1.tar.gz
mv SlimServer_v6.3.1 /mnt/slimserver
/mnt/slimserver/Bin/build-perl-modules.pl

note - The above command may not run. If not, you can use:

apt-get install libcompress-zlib-perl libxml-parser-perl libdbi-perl libdigest-sha1-perl libhtml-parser-perl libclass-dbi-pager-perl libxml-parser-perl libtime-modules-perl

apt-cache search may help locate missing modules. The slimserver.pl command below will not run until all necessary modules are installed.

  • Start SlimServer
 cd /mnt/slimserver
 ./slimserver.pl --daemon --prefsfile /mnt/slim-data/slimserver.pref --cachedir /mnt/slim-data
  • Auto start
 cd /mnt/share
 wget http://fieldnetworks.com/slim/start-slim.sh
 mv /mnt/share/start-slim.sh /mnt/slim-data
 chmod +x /mnt/slim-data/start-slim.sh
 ln -s /mnt/slim-data/start-slim.sh /etc/rc2.d/S95slimserver

[edit] Other tasks

[edit] Upgrading SlimServer:

  • Stop current SlimServer
 killall slimserver.pl
  • Backup old software
 mv /mnt/slimserver /mnt/old-stuff/slimserver-version-x.y.z
 cp -r /mnt/slim-data /mnt/old-stuff/slim-data-version-x.y.z
 reboot or ./slimserver.pl --daemon --prefsfile /mnt/slim-data/slimserver.pref --cachedir /mnt/slim-data

[edit] Installing Mplayer on PPC based Linkstation

By default, SlimServer installed on linux does NOT support AAC/Apple lossless out of the box, only those installed under windows or Mac OSX will have that capability. The following shows how you can install MPlayer which will enable your squeecebox to play aac/apple lossless.

  • Download MPlayer files from mplayerhq.hu
 cd /mnt/share
 wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-ppc-20061022.tar.bz2
 wget http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2
  • Unzip and untar the packages (I cannot get this to work on the LS), the following commands do that
 tar jxf MPlayer-1.0rc1.tar.bz2
 tar jxf essential-ppc-20061022.tar.bz2
  • Compile and install Mplayer

You need to move the codecs to /usr/local/lib/codecs/

 mkdir /usr/local/lib/codecs/
 mv essential-ppc-20061022/* /usr/local/lib/codecs

Configure, make and install

 cd /mnt/share/MPlayer-1.0rc1
 ./configure
 make
 make install

Edit the /mnt/slimserver/convert.conf. Find

 mov aif * *
      [mov123] $FILE$

And make it

 #mov aif * *
 #     [mov123] $FILE$
 mov wav * *
       [mplayer] -novideo -ao pcm:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null wma wma squeezebox2 *

Reboot LinkStation, you are there.

[edit] References

  1. Wikipedia:SlimServer
  2. Slim Devices : Support : Downloads
  3. Debian - Package: slimserver (6.3.0-3)
  4. Slim Devices : Support : Downloads
Personal tools
Downloads
Optware
hosted by
hosted by osuosl.org