Install And Configure Plex Media Server

Plex-logo
Plex Media Server organises and streams your media library, Videos, Music and Photos, Plex will also automatically search and add the video and music covers for your media collection.

There is a Smart TV app for Plex which works very well and a Roku app for those without smart TVs, remote servers can be added so its not only content on your local network that can be viewed, there is also a iOS and Android application for viewing your media collection on your mobile devices.

This guide will run through how to install and configure Plex media server, please note this can only be done on a VPS or dedicated server with root SSH access, a dedicated server is really required for Plex if your going to be streaming.

You will need to signup for a Plex account before starting the install and configuration, you can register here

This guide is based on Debian/Ubuntu systems. Login through SSH as the root user and enter the following commands.

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

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

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

If everything went according to plan Plex Media Server should now be installed and its now time to configure.

The configuration is slightly harder than the install, first of all you need to connect through a socks proxy.

Open your SSH client for this guide I am using Putty, enter your server IP address into the top line, this line is marked Host Name (or IP address)

Putty Session

On the left hand side of Putty, there is a category section click the bottom where SSH is and then choose Tunnels.

Putty Tunnel

Inside the tunnels section you need to enter these details.

Source Port: 9999
Destination: Enter your IP Address

Once these details are entered click the “Dynamic” option and then click Add and Open, you will then need to login through SSH with your user credentials. The SSH session will need to stay open until you complete the configuration in your browser.

Putty Tunnel Configuration

Now you need to open your browser for this guide I am going to use Firefox, In Firefox go to Tools > Options > Advanced > Network > Settings

Click Manual proxy configuration
Socks host: localhost
Port: 9999
Click the Socks V5 and then OK

Firefox Connection Settings
Now you should be logged in through the socks proxy and you need to type this address into your address bar inside Firefox http://localhost:32400/web

You will need to agree to the Plex EULA and then login to your plex account, once this is done the socks proxy is no longer required.

Plex EULA