Run PLEX Media Server on ESPRESSObin

In this page we will show you how to download and install PLEX Media Server on ESPRESSObin running Ubuntu 16.04 or Ubuntu 14.04. The tutorial presumes you have successfully booted Ubuntu 16.04. or Ubuntu 14.04 on ESPRESSObin as instructed in Boot from MicroSD card/USB stick - Ubuntu and set up initial network configuration as instructed in Ubuntu - initial network configuration.

Firstly, add the armhf architecture with:

root@localhost:~# dpkg --add-architecture armhf

after which update the package index:

root@localhost:~# apt-get update

Install the necessary packages including network time support:

root@localhost:~# apt-get install wget
root@localhost:~# apt-get install ntp
root@localhost:~# apt-get install ntpdate

Now generate locale configuration:

root@localhost:~# locale-gen en_US.UTF-8

Now we will install necessary armhf support packages to your Ubuntu 16.04 system:

root@localhost:~# apt-get install curl
root@localhost:~# apt-get install libc6
root@localhost:~# apt-get install libc6:armhf
root@localhost:~# apt-get install libcurl3
root@localhost:~# apt-get install libgcc1
root@localhost:~# apt-get install libgcc1:armhf
root@localhost:~# apt-get install libstdc++6-armhf-cross

Make a directory (we will name it simply plex) where you will download and extract PLEX Media Server package:

root@localhost:~# mkdir plex && cd plex
root@localhost:~/plex# wget https://downloads.plex.tv/plex-media-server/
root@localhost:~/plex# tar -xvf PlexMediaServer-
root@localhost:~/plex# tar -xvf package.tgz

Now copy the Resources/start.sh script to the plex directory:

root@localhost:~/plex# cp Resources/start.sh ./

and grant execution permissions to start.sh and several others PLEX scripts:

root@localhost:~/plex# chmod u+x start.sh
root@localhost:~/plex# chmod u+x Plex*
root@localhost:~/plex# chmod u+x CrashUploader

What is left is to create a symbolic link to /usr/arm-linux-gnueabihf/lib/libstdc++.so.6 file from our current plex directory:

root@localhost:~/plex# ln -s /usr/arm-linux-gnueabihf/lib/libstdc++.so.6 ./

Lastly, run the start.sh script in background with:

root@localhost:~/plex# ./start.sh &

and your PLEX Media Server should start running. Access the server via web browser by typing http://ESPRESSObin_IP_address:32400/web in URL where ESPRESSObin_IP_address is the IP address of our bridged interface (br0 in our case) as set up in Ubuntu - initial network configuration:


Here you will be able to name your ESPRESSObin PLEX Media Server, sign in with your existing PLEX account or create a new one, and start managing your library.