Installing Plex Media Server on a pine64

I give all the credit to ‘mattmacwall‘ on the plex forums but I wanted to add a piece to his install instructions that will make for a more seamless install of plex media server (plexmediaserver).  Most of what you will find below was copied and pasted verbatim.

Step 1: Prepare the system

Download the longsleep Debian 8 image from and burn it to an SD card. If you don’t know how to do this, then the Raspberry Pi Foundation have a good guide at for Mac, Windows and Linux.

One thing I did notice is that the initial root partition is only 3.5G in size. You’ll need to grow this using gparted or a similar tool before you boot, otherwise Plex will fail because it runs out of disk space.

malamaker: I used the built in shell script ‘’ found in the ‘/usr/local/sbin’

# Change to the directory
cd /usr/local/sbin
# Set the correct permissions on the script before running it
sudo chmod +x ./
# Run the resize script
sudo sh ./
# Reboot your pine64 for the resized partition to be reflected
sudo shutdown -r now
# Check to make sure your root partition is resized
df -h
# Example of results, '**' marks the results you should look for...
#     Filesystem Size Used Avail Use% Mounted on
# **  /dev/mmcblk0p2 15G 1.9G 13G 13% /
#     devtmpfs 962M 0 962M 0% /dev
#     tmpfs 995M 4.0K 995M 1% /dev/shm
#     tmpfs 995M 8.6M 986M 1% /run
#     tmpfs 5.0M 4.0K 5.0M 1% /run/lock
#     tmpfs 995M 0 995M 0% /sys/fs/cgroup
#     /dev/mmcblk0p1 50M 13M 38M 25% /boot
# 5.5T 903G 4.6T 17% /mnt/library/movie
# 5.5T 903G 4.6T 17% /mnt/library/video
# 5.5T 903G 4.6T 17% /mnt/library/movie-gino
# 5.5T 903G 4.6T 17% /mnt/library/music
# 5.5T 903G 4.6T 17% /mnt/library/tv-show
# 5.5T 903G 4.6T 17% /mnt/library/photo
#     tmpfs 199M 0 199M 0% /run/user/110
#     tmpfs 199M 0 199M 0% /run/user/1000


Step 2: Install the software

Once you’ve booted the Pine64 successfully, we can proceed with the installation of the Plex Media Server.

I followed the instructions at however, when it talks about adding the debian package repository, you need to do a few things slightly differently via the following commands:

# Install curl
sudo apt-get install curl
# Add the gpg key so you don't get an error when reaching out to on apt-get update or install
sudo curl | sudo apt-key add -
# Run add the ARMHF architecture to the Debian Packages that can be installed here
sudo dpkg --add-architecture armhf 
# Make sure that we install the correct version of the arm package
echo "deb [arch=armhf] jessie main" | sudo tee /etc/apt/sources.list.d/pms.list
# Update the package lists
sudo apt-get update
# Install the media server and all the dependencies
sudo apt-get install binutils:armhf plexmediaserver-installer -y

This should then install and start the media server.

Your email address will not be published. Required fields are marked *