www.nicecuppa.net

home totally freeware
Still saving for my mid-life crisis

Saturday, October 15, 2011
PS3 Media Server installed as service on Ubuntu

In my ongoing quest to get my Ubuntu machine just how I like it, I felt the need to get PMS running as a service on Ubuntu. I am running 11.04 and the following seems to work like a champ.

First let's get the prerequisites out of the way. Fire up a terminal window and enter the following:-

sudo apt-get install mplayer mencoder ffmpeg sun-java6-jre

After a flurry of activity on the terminal window it should finish and be back at the prompt. Next download the archive from http://www.ps3mediaserver.org/ and extract to some useful location. Mine is in my home folder.

Now we need to create a startup script in the init.d folder. Like this: -

cd /etc/init.d
sudo nano startpms


Cut and paste the text below into the file:-


#!/bin/bash
cd /path/to/PMS.sh
nohup ./PMS.sh &
exit


Exit out of nano by pressing CTRL-X then Y, and when back at the terminal prompt type:-

sudo chmod +x startpms

This makes the startpms script executable. Finally we need to register the startup script so it gets executed when on startup, like this:-

sudo update-rc.d startpms defaults

Restart your machine and you're done.

Labels: ,

 

Comments:

Post a Comment

Subscribe to Post Comments [Atom]





<< Home
© Nicecuppa 2010