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 https://www.pine64.com/downloads 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 https://www.raspberrypi.org/documentation/installation/installing-images/README.md 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 ‘resize_rootfs.sh’ 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 ./resize_rootfs.sh
# Run the resize script
sudo sh ./resize_rootfs.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
#     192.168.11.241:/volume1/movie 5.5T 903G 4.6T 17% /mnt/library/movie
#     192.168.11.241:/volume1/video 5.5T 903G 4.6T 17% /mnt/library/video
#     192.168.11.241:/volume1/movie-gino 5.5T 903G 4.6T 17% /mnt/library/movie-gino
#     192.168.11.241:/volume1/music 5.5T 903G 4.6T 17% /mnt/library/music
#     192.168.11.241:/volume1/tv-show 5.5T 903G 4.6T 17% /mnt/library/tv-show
#     192.168.11.241:/volume1/photo 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 http://www.htpcguides.com/install-plex-media-server-on-raspberry-pi-2/ 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 dev2day.de on apt-get update or install
sudo curl https://dev2day.de/pms/dev2day-pms.gpg.key | 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] https://dev2day.de/pms/ 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 *