PS3 Media Server on Synology DiskStation DS411+

# login as root to your DS411
ssh root@

# download lastest java
wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=42723 -O /tmp/java.bin

# extract
cd /tmp
sh /tmp/java.bin

# move to right place
mv /tmp/jre1.6.0_*/ /usr/java

# get PMS
wget http://ps3mediaserver.googlecode.com/files/pms-generic-linux-unix-1.20.412.tgz -P /tmp

# extract
tar xzf /tmp/pms-generic-linux-unix-1.*.tgz

# move
mv /tmp/pms-linux-1.*/ /usr/pms

# set port to 5002
cat < /usr/pms/PMS.conf
port=5002
folders=/volume1/video
EOF

# create start script
cat < /etc/rc.pms
#!/bin/sh

# set envirment
export JAVA_HOME=/usr/java
export PMS_HOME=/usr/pms

# start PMS server
cd /usr/pms
./PMS.sh > /tmp/pms.log
EOF

vi/etc/rc.local
#!/bin/sh -e
sh /etc/rc.pms
exit 0

# PMS.conf parameter
folders = (path of folders PMS should deliver to PS3)
hostname = (IP address of server - some people have reported setting this address manually has allowed PMS to appear on the PS3)
port = (port number - defaults to 5001 but can be changed by entering a value here)
language = (specify language to use - unsure how this works)
thumbnails = (true/false - display thumbnails)
thumbnail_seek_pos = (1 - nnn - specify how far into track thumbnail to display is (I think))
nbcores = (unsure of purpose but appears to relate to the number of cores your servers CPU has)
turbomode = (true/false - unsure of purpose but appears to relate to a turbo mode)
minimized = (true/false - start minimised or not - N/A for headless systems)
hidevideosettings = (true/false - hide the video settings option from being displayed on the PS3)
usecache = (true/false - display media libray - the best setting to enable)
charsetencoding = (character set to use - 850 is default)
engines = (transcoding engine to use - mencoder, AviSynth/FFmpeg, AviSynth/MEncoder, TsMuxer)
autoloadsrt = (true/false - unsure of purpose)
network_interface = (set the interface name - if you have more than one)
hide_extensions = (true/false - hide file extension)
hide_enginenames = (true/false - hide the names of the transcoding engines - I've never seen the engine names displayed except when hidevideosettings is set to true)
enable_archive_browsing = (true/false - browse archive files (zip, rar, etc)

# LINKS
http://www.java.com/de/download/manual.jsp
http://code.google.com/p/ps3mediaserver/downloads/list
http://www.synology-forum.de/showthread.html?p=123347
https://launchpad.net/~shiki/+archive/mediainfo/+build/1585826
http://www.synology-wiki.de/index.php/IPKG
http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh