Install Plex Media Server on Debian Linux

plex

Plex is an awesome media server software that is ‘family-proof’, even my technically challenged stepmom can use plex which makes it perfect if you are trying to create an htpc home media server solution for friends or family. Plex will stream to practically any device in your house: iPad, iPhone, Android tablets, Roku, Raspberry Pi and other PCs. Let’s install it on Debian Wheezy for x86 and x64 systems. If you are on an ARM device then use the Raspberry Pi guide.

Usenet Provider
Backbone
Retention
Speed
Connections
VPN
Monthly
Annual
UsenetServer
UsenetServer
2265
Unlimited
20
Yes
$10
$95.40
Usenetlink
Cloudgate
2000
100 Mbit
30
No
$15
$140
Astraweb
Astraweb
2264
Unlimited
20
No
$7.50
$96.00
UsenetBucket
XS News
1100
40 Mbit
25
No
€4.95
€60.00
Frugal
Blocknews
600
Unlimited
60
No
$4.99
$50.00

Install Plex Media Server on Debian

Grab the Plex gpg key and add Plex repositories, there are three separate lines in the block below.

If you get the key is not found error then it may have changed name, find the .key file from here and replace it in the wget line

wget -O - http://shell.ninthgate.se/packages/shell.ninthgate.se.gpg.key | sudo apt-key add -
echo "deb http://www.deb-multimedia.org wheezy main non-free" | sudo tee -a /etc/apt/sources.list.d/deb-multimedia.list
echo "deb http://shell.ninthgate.se/packages/debian wheezy main" | sudo tee -a /etc/apt/sources.list.d/plex.list

Update your repositories and install the keyring

sudo apt-get update && sudo apt-get install deb-multimedia-keyring -y

Update and install the plex media server

sudo apt-get update && sudo apt-get install plexmediaserver -y

See if you can connect at http://ip.address:32400/manage/index.html or http://ip.address:32400/manage/index.html#!/setup

Plex media server will autoboot 🙂

Fix Plex Permission Issues

If you are getting permission issues it is because Plex runs as its own user, there are two options: change permissions of the downloads folders or change the user Plex runs as.

To change permissions of your media folders, first add the plex user to your main user’s group

sudo usermod -aG htpcguides plex

Then set the permissions of your media folders to 775 so your group (and the plex user member of that group) can execute files

sudo chmod -R 775 /path/to/media

You can change the user Plex Media Server runs as to fix the permission issues you get from CouchPotato, SickRage, Sonarr, Headphones and others.

sudo nano /etc/default/plexmediaserver

Find this line

PLEX_MEDIA_SERVER_USER=plex

Change plex to your regular user

PLEX_MEDIA_SERVER_USER=username

Ctrl+X, Y and Enter to save the configuration

Restart the Plex Media Server service

sudo service plexmediaserver restart

Now you can Configure Plex Media Server

I also recommend using Dynamic DNS to access Plex instead of plex.tv.