2016年2月11日木曜日

TeraStation TS5000 : Install plex, but failed

I tried to install plex on TS5000. I just enabled root accessibility on this device by below.
http://wind-spike.blogspot.com/2016/02/terastation-ts5000-how-to-obtain-root.html

First, I tried to check what system is it?
     root@TS5200D57A:~# uname -a
     Linux TS5200D57A 2.6.39.4-atom_usi #1 SMP Tue Dec 22 09:25:48 JST 2015 x86_64 unknown
Seems like I should choose anyting 64bit binary.


Next, I moved to plex download page. And choose computer and download the binary for ubuntu 64bit.

     # wget https://downloads.plex.tv/plex-media-server/0.9.15.2.1663-7efd046/plexmediaserver_0.9.15.2.1663-7efd046_amd64.deb

And then just try to install by dpkg command.
    # dpkg -i plexmediaserver_0.9.15.2.1663-7efd046_amd64.deb

I found that when I install this package, adduser, start and stop command is the issue.
So I added below trick on my TS5000.
     # addgroup plex
     # adduser -S -s /bin/bash -h /var/lib/plexmediaserver -G plex plex

     # echo "" > /sbin/apt-key
     # chmod +x /sbin/apt-key

     # echo "" > /sbin/start
     # chmod +x /sbin/start

     # echo "" > /sbin/stop
     # chmod +x /sbin/stop

This trick is basically just ignore the error in the postinstall script. TS5000 uses busybox so doesn't have the expected argument on adduser command.
Doesn't have apt so, ignore apt-key, not the system.d so ignore the start and stop command.

As a result of above, I could successfully install deb package anyway.

But when I execute the binary it says,
     # /usr/sbin/start_pms
     6 3000 /root/Library/Application Support
     8192
     ./Plex Media Server: error while loading shared libraries:
     /usr/lib/plexmediaserver/libboost_system.so.1.59.0: ELF file OS ABI invalid

sounds like plex doesn't like this kernel version.
So far I don't have a solution to fix current situation.


To be continued
Spike.

0 件のコメント:

コメントを投稿