- 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"
- 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
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)