GrabDuck

How to install Plex Media Server on Cubietruck and Cubieboard (Both Working) and ...

:

Install Plex Media Server

Now, I have it tested for both, Cubieboard and Cubietruck, and both are working correctly.

The OS image I´m using on Cubieboard is Cubieez:

http://www.cubieforums.com/index.php/topic,442.0.html

The OS image I´m using on Cubietruck is the one from:

http://www.igorpecovnik.com/2013/12/24/cubietruck-debian-wheezy-sd-card-image/

Updated the view to show the code:

How to install Plex Media Server with one huge command:

Install libexpat1, enable https transport, add the key for the repo and the uglymaoo’s repo, update your package list, and finally install Plex M.S.

On Wheezy (Same Command in two views):

1
sudo apt-get install libexpat1 -y && sudo apt-get install apt-transport-https -y --force-yes && sudo wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | sudo apt-key add - && echo "deb https://dev2day.de/pms/ wheezy main" | sudo tee /etc/apt/sources.list.d/pms.list && sudo apt-get update && sudo apt-get install plexmediaserver -y

2

sudo apt-get install libexpat1 -y && sudo apt-get install apt-transport-https -y --force-yes && sudo wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | sudo apt-key add - && echo "deb https://dev2day.de/pms/ wheezy main" | sudo tee /etc/apt/sources.list.d/pms.list && sudo apt-get update && sudo apt-get install plexmediaserver -y

 
On Jessie (Same Command in two views):

1
sudo apt-get install libexpat1 -y && sudo apt-get install apt-transport-https -y --force-yes && sudo wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | sudo apt-key add - && echo "deb https://dev2day.de/pms/ jessie main" | sudo tee /etc/apt/sources.list.d/pms.list && sudo apt-get update && sudo apt-get install plexmediaserver -y

2

sudo apt-get install libexpat1 -y && sudo apt-get install apt-transport-https -y --force-yes && sudo wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | sudo apt-key add - && echo "deb https://dev2day.de/pms/ jessie main" | sudo tee /etc/apt/sources.list.d/pms.list && sudo apt-get update && sudo apt-get install plexmediaserver -y

 

I have it tested for Wheezy with:

http://www.htpcguides.com/install-plex-media-server-on-banana-pi-with-bananian/

I have it tested for Jessie with:

http://www.htpcguides.com/install-plex-media-server-on-odroid-lubuntu-and-debian/

 

If you upgrade to Jessie from Wheezy, you´ll have to delete plex and to reinstall it again from the other repo. Maybe there is another way, but this is how I did it.

 

Delete Plex, and reinstall it from uglymagoo’s Jessie Repo:

Everything in one command:
sudo apt-get purge plexmediaserver && sudo wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | sudo apt-key add - && echo "deb https://dev2day.de/pms/ jessie main" | sudo tee /etc/apt/sources.list.d/pms.list && sudo apt-get update && sudo apt-get install plexmediaserver -y
Extended Version:

Uninstall Plex:

sudo apt-get purge plexmediaserver

Download the key:

sudo wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | sudo apt-key add -

Add the repo:

echo "deb https://dev2day.de/pms/ jessie main" | sudo tee /etc/apt/sources.list.d/pms.list

Update the package list:

sudo apt-get update

Finally, install Plex Media Server:

sudo apt-get install plexmediaserver -y

 

INSTALL TRANSCODING TOOLS:

MegaCommand (three parts):

Stop the Plex service and prepare folder for libc6:

sudo service plexmediaserver stop && mkdir /tmp/libc6

Download libc6:

wget -P /tmp/libc6/ http://ftp.us.debian.org/debian/pool/main/g/glibc/libc6_2.19-18_armhf.deb

If download command doesn´t work:

Go to: http://ftp.us.debian.org/debian/pool/main/g/glibc/

Unpackage it, copy what we need to Plex, create symlink to new .so, and delete trash:

dpkg-deb -x /tmp/libc6/libc6_*_armhf.deb /tmp/libc6 && PATH_PLEX=/usr/lib/plexmediaserver && cp -a /tmp/libc6/lib/arm-linux-gnueabihf/libm-*.so $PATH_PLEX && chmod ugo+x $PATH_PLEX/libm-*.so && unlink $PATH_PLEX/libm.so.6 && ln -s $PATH_PLEX/libm-*.so $PATH_PLEX/libm.so.6 && unset PATH_PLEX && rm -R /tmp/libc6 && apt-get install mkvtoolnix && sudo service plexmediaserver start

 

Extended Version:

Stop the Plex service and prepare folder for libc6:

sudo service plexmediaserver stop && mkdir /tmp/libc6

Download libc6:

wget -P /tmp/libc6/ http://ftp.us.debian.org/debian/pool/main/g/glibc/libc6_2.19-18_armhf.deb

If download command doesn´t work:

Go to: http://ftp.us.debian.org/debian/pool/main/g/glibc/

Unpackage libc6:

dpkg-deb -x /tmp/libc6/libc6_*_armhf.deb /tmp/libc6

Create Var PATH_PLEX:

PATH_PLEX=/usr/lib/plexmediaserver

Copy what we need to plex directories:

cp -a /tmp/libc6/lib/arm-linux-gnueabihf/libm-*.so $PATH_PLEX

Set permissions:

chmod ugo+x $PATH_PLEX/libm-*.so

Unlink libm.so.6:

unlink $PATH_PLEX/libm.so.6

Link with the downloaded one:

ln -s $PATH_PLEX/libm-*.so $PATH_PLEX/libm.so.6

Unset Var PATH_PLEX:

unset PATH_PLEX

Delete created folder

rm -R /tmp/libc6

Install tools for mkv:

apt-get install mkvtoolnix

Restart plex server:

sudo service plexmediaserver start

 

We have to thanks all of this to www.htpcguides.com and uglymagoo. So, thanksssssss for all the work.