Easy setup guide for Ubuntu / Debian (DEB packages and repo)

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Easy setup guide for Ubuntu / Debian (DEB packages and repo)

Postby happy.neko » Mon Dec 26, 2011 3:29 am

Ubuntu users can install PS3 Media Server (and keep it up to date) automatically with simple command:

Code: Select all
sudo add-apt-repository ppa:happy-neko/ps3mediaserver
sudo apt-get update
sudo apt-get install ps3mediaserver

Have fun! You do not need to install any additional software like mplayer etc, everything is already included. And don't forget to restart server after update.

Supported Ubuntu versions:
  • Raring (Ubuntu 13.04)
  • Quantal (Ubuntu 12.10)
  • Precise (Ubuntu 12.04 LTS)
  • Oneiric (Ubuntu 11.10)
  • Natty (Ubuntu 11.04)
  • Maverick (Ubuntu 10.10)
  • Lucid (Ubuntu 10.04 LTS)

If system tray icon is missing
From version 11.04 upwards Ubuntu has known bug (Canonical insists its a feature) when Unity desktop hides system tray icons for some applications. To enable icons for all applications open Terminal and enter this command:

Code: Select all
gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

then logout from system and login again. Now you should see PS3 Media Server tray icon.

(debian instructions may be outdated!)
Debian users can manually download and install deb package (automatic updates will not work):
Debian users, please do not attempt to install latest Precise package (ps3mediaserver - 1.53.99+git+mencoder34587-2) due to init.d differences between Ubuntu and Debian.

32-bit
Code: Select all
wget http://mirrors.us.kernel.org/ubuntu//pool/main/u/ubuntu-font-family-sources/ttf-ubuntu-font-family_0.80-0ubuntu1~medium_all.deb
sudo dpkg -i ttf-ubuntu-font-family_0.80-0ubuntu1~medium_all.deb
wget https://launchpad.net/~happy-neko/+archive/ps3mediaserver/+files/ps3mediaserver_1.53.99%2Bgit%2Bmencoder34587-1oneiric1_i386.deb
sudo dpkg -i ps3mediaserver_1.53.99+git+mencoder34587-1oneiric1_i386.deb

64-bit
Code: Select all
wget http://mirrors.us.kernel.org/ubuntu//pool/main/u/ubuntu-font-family-sources/ttf-ubuntu-font-family_0.80-0ubuntu1~medium_all.deb
sudo dpkg -i ttf-ubuntu-font-family_0.80-0ubuntu1~medium_all.deb
wget https://launchpad.net/~happy-neko/+archive/ps3mediaserver/+files/ps3mediaserver_1.53.99%2Bgit%2Bmencoder34587-1oneiric1_amd64.deb
sudo dpkg -i ps3mediaserver_1.53.99+git+mencoder34587-1oneiric1_amd64.deb

You can check for updated packages here. Click on package name, download i386 or amd64 version and install it with sudo dpkg -i.

How to run PS3 Media Server in headless mode as service / daemon (easy guide)
1. Configure PS3 Media Service in GUI mode as normal user, save and quit.
2. Edit /etc/default/ps3mediaserver
Code: Select all
sudo gedit /etc/default/ps3mediaserver

  • Change PMS_START to "yes"
  • Change PMS_USER to your login name
  • Change PMS_PROFILE to "/home/YOUR_LOGIN/.config/ps3mediaserver"
3. Start server
Code: Select all
sudo start ps3mediaserver

Now PS3 Media Server will autorun during system startup. Remember to stop it with
Code: Select all
sudo stop ps3mediaserver
if you want to start it in GUI mode later to prevent network conflicts.

This is the easiest way to run PS3 Media Server on headless server:
Configure PS3 Media Server locally in GUI mode then copy ~/.config/ps3mediaserver folder to server to /home folder of appropriate user. Then edit /etc/default/ps3mediaserver (see above) and start server.


If you want to modify this package (for developers only):

0. I am using quilt patching system:
Code: Select all
sudo apt-get install quilt


It's useful to have a slightly customized default, so let's create an alias dquilt for Debian packaging by adding the following line to ~/.bashrc.
alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg"


Then let's create ~/.quiltrc-dpkg as follows.
d=. ; while [ ! -d $d/debian -a `readlink -e $d` != / ]; do d=$d/..; done
if [ -d $d/debian ] && [ -z $QUILT_PATCHES ]; then
# if in Debian packaging tree with unset $QUILT_PATCHES
QUILT_PATCHES="debian/patches"
QUILT_PATCH_OPTS="--reject-format=unified"
QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto"
QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
if ! [ -d $d/debian/patches ]; then mkdir $d/debian/patches; fi
fi


1. Download and auto-patch source:
Code: Select all
apt-get source ps3mediaserver
cd ps3mediaserver-XXX


2. Add you patches:
Code: Select all
dquilt new my-new-patch.patch
dquilt add first-modified-file-in-patch
dquilt add second-modified-file-in-patch
..
<now edit added files>
...
dquilt refresh

Check your new patch in debian/patches/my-new-patch.patch.

3. If you want to build you package:
Code: Select all
debchange -v new-version

(increment last digit)

Source package:
Code: Select all
dpkg-buildpackage -S -sa


Binary package:
Code: Select all
dpkg-buildpackage




Original post:

Hello everyone.

I have created DEB package with latest PS3 Media Server 1.50.1 for fellow Ubuntu users. It is based on work by paissad, my linux build-pms-binaries.sh contribution and some patches I find useful.

The main difference is that this package is bundled with all required pre-patched binary tools (ffmpeg, mencoder, tsmuxer, flac, libmediainfo, etc). Therefore you do not have to install them manually, mess with additional repositories etc. Just download DEB, install it and run PS3 Media Server from menu Applications -> Net or with ps3mediaserver via console.

Package is in testing stage now, so your feedback is much appreciated.

Also zogsterjack successfully installed this package on Debian Wheezy, so Debian users feel free to test it.



FILES and DIRECTORIES
Executable
/usr/bin/ps3mediaserver

User configuration
$HOME/.config/ps3mediaserver/PMS.conf
$HOME/.config/ps3mediaserver/WEB.conf

System-wide configuration
/etc/ps3mediaserver/

Renderers' profiles
/etc/ps3mediaserver/renderers/

Log directory
/var/log/ps3mediaserver/

Media database directory
/var/lib/ps3mediaserver/

Plugins directory
/usr/lib/ps3mediaserver/plugins/

Init.d script
/etc/init.d/ps3mediaserver
/etc/default/ps3mediaserver (daemon startup options)
Last edited by happy.neko on Wed May 09, 2012 6:43 pm, edited 20 times in total.
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm
Top

Re: Complete DEB package for Ubuntu 11.10

Postby no_Legend » Tue Dec 27, 2011 11:45 am

Hi,

just a small question is it possible to install you package on a debian 6?
no_Legend
 
Posts: 27
Joined: Fri Feb 12, 2010 7:03 pm
Top

Re: Complete DEB package for Ubuntu 11.10

Postby happy.neko » Tue Dec 27, 2011 6:20 pm

I don't know. Please check it out.
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm
Top

Re: Complete DEB package for Ubuntu 11.10

Postby sampras » Thu Dec 29, 2011 7:09 pm

i currently have a working a 1.50 running on ubuntu 11.10, so can you tell me what patches you've added to this build so people can tell if it will beneift them?
sampras
 
Posts: 9
Joined: Fri Nov 18, 2011 12:56 pm
Top

Re: Complete DEB package for Ubuntu 11.10

Postby bandolero » Tue Jan 03, 2012 2:10 am

AWESOME!!!!!!!!!!!!!!!!!

This solved troubles i had for years, finally my ubuntu station can stream MKV in AVC just like on the windows side, just istalling your package! I struggled a mess to find the right ffmpeg or mencoder, and now it works just out of the box. THANKS!

We should give evidence to this tread, hope you will mantain the package with incoming versions. I just love it!

Are you going to mantain it up-to-date? Hope you do.

:D:D:D:D
bandolero
 
Posts: 4
Joined: Tue Jan 03, 2012 2:03 am
Top

Re: Complete DEB package for Ubuntu 11.10

Postby sbox » Wed Jan 04, 2012 3:19 am

Wow. Thank you so very much for putting this together. MKV files are playing beautifully on my iPhone :)
sbox
 
Posts: 2
Joined: Wed Feb 09, 2011 6:50 pm
Top

Re: Complete DEB package for Ubuntu 11.10

Postby tyrate » Wed Jan 04, 2012 8:04 pm

Thank you so much you've made my life just a little easier! :D
tyrate
 
Posts: 2
Joined: Fri Dec 09, 2011 9:31 pm
Top

Re: Complete DEB package for Ubuntu 11.10

Postby happy.neko » Thu Jan 05, 2012 9:34 pm

sampras wrote:i currently have a working a 1.50 running on ubuntu 11.10, so can you tell me what patches you've added to this build so people can tell if it will beneift them?

sorry for the delay. Link for patches archive http://www.mediafire.com/?x25xs65uytxt2d2
Later I'll release proper deb-source package.

bandolero, sbox, tyrate
I'm glad that it works for you. I need more feedback to fix possible problems before releasing 32-bit version.
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm
Top

Re: Complete DEB package for Ubuntu 11.10

Postby bandolero » Sat Jan 07, 2012 2:02 am

sbox wrote:Wow. Thank you so very much for putting this together. MKV files are playing beautifully on my iPhone :)


i'm interested. what player are you using on iphone precisely? getting shuttering video with mkv's on air player
bandolero
 
Posts: 4
Joined: Tue Jan 03, 2012 2:03 am
Top

Re: Complete DEB package for Ubuntu 11.10

Postby chirauki » Mon Jan 09, 2012 8:09 am

Man!

Awesome work, really. Everything worked fine in Ubuntu 11.10 amd64 here. Just struggling now to get subtitle color other than white :P

Thanks for this, if I can help you somehow let me know.

thx.
chirauki
 
Posts: 4
Joined: Tue Mar 30, 2010 8:34 pm
Top

Next

Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 3 guests