PS3 Media Server on Synology 411j revisited
23 Apr 2014

PS3 Media Server on Synology 411j revisited

23 Apr 2014

Previously I wrote about installing this awesome media server onto a Synology NAS here. However this guide referred to another guide on a different site which subsequently went down, and I couldn’t find a copy of it anywhere else.

So here’s an attempt to rebuild the guide to include the missing steps. Since I’ll just be copying and pasting from the original forum discussion, there might still be errors. If you encounter any, let me know in the comments and we’ll see how we can get it corrected. As always, follow these steps at your own risk. This “worked” when my DSM was 4.0-2197; I cannot guarantee that these steps will work any more (or work at all).

  1. Install nano via ipkg. It’s much easier than vi for the purpose of editing files.
  2. Download the Java SE Embedded Runtime from Oracle here. Choose one Linux version that is appropriate for your Synology’s CPU (in my case, ARMv5 Linux). Try this link to check. Get a file that starts with ejre instead of ejdk. For me, I would download ejre-7u55-fcs-b13-linux-arm-sflt-headless-17_mar_2014.tar.gz. Transfer this file to /volume1/@tmp.
  3. Create a local java installation directory, then copy the archive contents over. The last command was just to test that java can run. If it doesn’t, maybe you downloaded the wrong version.
    The directory ejre7u55 may be different depending on the version you downloaded (and I didn’t really check if it was ejre7u55 either :P). Adapt accordingly.
  4. Update /etc/profile to include the path to Java.
    You should be able to add the following safely to the end of the file:-
    Press Ctrl-O to save, then Ctrl-X to exit.
  5. Update /opt/etc/profile. Don’t recall why this step is needed but it doesn’t seem to hurt.
    File contents (I think this file didn’t exist before, or was empty):
  6. At this point, you can try relogging into the terminal and run java without a path to check your file changes.
  7. Install classpath via ipkg.
  8. Install svn and coreutilsvia ipkg.
  9. Install git via ipkg.
  10. Now we install mplayer.
    During one of the steps above, it’ll ask you to include ffmpeg from git. I just did it just to continue.
  11. Continue following the guide till after the libpthread section.
    Backup and replace libpthread libraries.
    Directory arm-non-linux-gnueabi might be different. Adapt accordingly.
  12. Now we install libzen, libmediainfo, and the mediainfo CLI, in that order. Instead of copying the lib files, I created symbolic links. I didn’t have to do copy/link the libmediainfo files.
  13. We install libffi, again using symbolic links instead of copying. make install worked for me.
    These libffi versions might be different now. Adapt accordingly.
  14. Download PS3 Media Server (grab the generic-linux file, like this one), and put it in /volume1/@tmp. Then unpack it, and move it to a permanent location:
  15. Add libjnidispatch to the jar file. gjar needs to be run in the PMS folder to preserve the relative placement of the .so file within the jar file.
    The last command changes ownership of the PMS directory to admin. Replace with another user if you’re worried about running PMS as root/admin.
    Directory linux-arm may also be different if your NAS not using an ARM processor. The libjna download may also be different. Adapt accordingly.
  16. Link a few more library files for mencoder to work.
    Last line is just to check if mencoder is still looking for anything. Link accordingly.
  17. Think you need to generate a D-Bus UUID:
  18. Edit your pms.conf file according to your needs. Then you can try running PMS:
    If it doesn’t work, check the debug.log to see if we missed anything.
Leave a comment
More Posts
Comments
Comment

Leave a Reply