PS3 Media Server on Debian Squeeze

My music collection consists of Ogg Vorbis files.  Rather than re-encoding them again for PlayStation 3, I decided to serve music files via a media server.  Fortunately this is very easy to do.

Installation

Mostly following this note:

$ sudo aptitude update
$ sudo aptitude install sun-java6-jre
$ sudo aptitude install mplayer mencoder ffmpeg
$ sudo update-alternatives --config java  # choose Sun Java if multiple Java installs exist

Move to temporary directory and download Linux source tarball:

... download .tgz file ...
$ tar -xvjf pms*.tgz
$ sudo mv pms-generic-linux-unix-1.20.412 /usr/local/pms-1.20.412
$ sudo ln -s /usr/local/pms-1.20.412 /usr/local/pms
$ sudo chmod a+x /usr/local/pms/PMS.sh

To launch the server properly, I have to run the PMS.sh script from the /usr/local/pms directory.  Instead of having to cd into that directory each time, I created the following startup script and saved it as /usr/local/bin/pms:

#!/bin/sh
(cd /usr/local/pms && exec ./PMS.sh)

Giving the executable permissions:

$ sudo chmod a+x /usr/local/bin/pms

This way, the pms command will launch the media server anywhere on the system.

Scrobbling with Last.fm

I want music tracks to be scrobbled with Last.fm.  Looking at this forum thread, there is a plugin to make this possible.

Download the LastFMScrobbler.zip, unzip the content and move the LastFMScrobbler.jar file to /usr/local/pms/plugins.

Restart the PMS server.

Choose the General Configuration tab.  Under the Plugin Systems section, there is an entry for Last.fm Scrobbler plugin.  Click on it and I’m asked to provide the username and password for Last.fm.  This info gets stored unencrypted in a text file, so be careful about the password…

Restart the PMS server and the music tracks should now be scrobbled.  Check on my Last.fm profile page.

This entry was posted in Uncategorized and tagged , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>