If someone is interested to run the plex media server on the TK1, here is a short summary how i did it. All credits go to the installation guide from the cubox box: inkubux / Cubox-i / wiki / Plex Wheezy — Bitbucket
To run the PMS armel code, a chroot with an armel distribution is needed.
First download the Drobo Plex Media Server package (plex.tgz) from plex.tv.
Install debootstrap and schroot
sudo apt-get install debootstrap
sudo apt-get install schroot
Then create a directory and install debian armel wheezy in it
sudo mkdir -p /var/chroot/wheezy-armel
sudo debootstrap --no-check-gpg --arch=armel wheezy /var/chroot/wheezy-armel ftp://ftp.debian.org/debian/
Now setup the schroot conf files
cp /etc/schroot/schroot.conf /etc/schroot/schroot.conf.old
sudo gedit /etc/schroot/schroot.conf
Add the folowing text to schroot.conf
[wheezy-armel]
description=Contains plex media server
type=directory
directory=/var/chroot/wheezy-armel
aliases=plex
users=ubuntu
root-groups=root
root-users=root
First time to enter the chroot environment. Change the chroot prompt.
(host) sudo chroot /var/chroot/wheezy-armel
(chroot) echo wheezyArmel > /etc/debian_chroot
(chroot) exit
(host): in normal root directory
(chroot): in armel whezzy chroot environment
Correct locales in chroot environment
(host) sudo chroot /var/chroot/wheezy-armel
(chroot) apt-get install locales
(chroot) locale-gen en_US en_US.UTF-8
(chroot) dpkg-reconfigure locales
--> select en_US.UTF-8
Install more needed packages in chroot
(chroot) apt-get install libexpat1
PMS >= 0.9.10.1.585 (actually plex pass users only) needs libpng16-16, so
experimental repo must be added as source:
Install PMS in chroot
(chroot) cd /tmp
(chroot) mkdir plex
(chroot) cd plex
Copy the PMS installation archive plex.tgz to the temp folder in chroot (use e.g. another terminal)
(host)sudo cp <<download path>>/plex.tgz /var/chroot/wheezy-armel/tmp/plex
Unzip PMS archiv and move files to destination
(chroot) tar -zxvf plex.tgz
(chroot) mkdir -p /opt/plex/
(chroot) mv Application/ /opt/plex
(chroot) mkdir -p "/opt/plex/Library/Application Support"
(chroot) chmod -R a+w /opt/plex/Library/
Create PMS startscript in chroot.
(chroot) nano /usr/local/bin/plexmediaserver
Add folowing lines to plexmediaserver:
#!/bin/sh
SCRIPTPATH=/opt/plex/Application
export LD_LIBRARY_PATH=“${SCRIPTPATH}”
export PLEX_MEDIA_SERVER_HOME=“${SCRIPTPATH}”
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export LC_ALL=“en_US.UTF-8”
export LANG=“en_US.UTF-8”
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=“/opt/plex/Library/Application Support”
ulimit -s 3000
cd $PLEX_MEDIA_SERVER_HOME
/opt/plex/Application/Plex\ Media\ Server
Make the script executable
(chroot) chmod +x /usr/local/bin/plexmediaserver
Start PMS in chroot
(chroot) plexmediaserver
Test connection from browser
(host) http://localhost:32400/web/index.html
Leave chroot and run PMS as user ubuntu
(chroot) exit
(host) schroot -d /opt/plex -c plex /usr/local/bin/plexmediaserver
Test connection from browser
(host) http://localhost:32400/web/index.html
Enjoy PMS!