Posts

Install Plex Media Server On Ubuntu 14.04

Image
The Goal To install  Plex Media Server (PMS)  version on  Ubuntu 14.04 . The Process Thankfully the process is very straightforward - as things tend to be with Linux. Follow the steps below to install PMS. 1 . Go to the Plex download page, the link is  here . 2 . Scroll down the page and select  Linux  as the OS and then click on  CHOOSE DISTRIBUTION  as highlighted in the image below: 3 . In the list that appears right-click over your OS version, mine was  Ubuntu 64-bit (10.04 Lucid or newer)  per the image below: Then click on the OS version and click on  Copy link address , in my case this link was: https://downloads.plex.tv/plex-media-server/1.3.3.3148-b38628e/plexmediaserver_1.3.3.3148-b38628e_amd64.deb 4 . Next, ssh onto your Ubuntu server and update it in preparation for the PMS install: sudo apt-get update 5 . Then run wget followed by the link for the Plex software you obtained in step 3: wget ...

Setup and configure ssh public key authentication on Ubuntu

The Goal To setup and configure ssh key-based Authentication on Ubuntu 14.04  to provide more secure and convenient passwordless access to other Linux servers via ssh. This guide assumes that you already have the OpenSSH client installed on the source client and the OpenSSH server installed on the destination server and that both systems are Ubuntu 14.04. However, the process steps below apply to many different versions of Linux. The Process If you don't have the required software installed at either end follow the instructions below: To install the OpenSSH client run the command below on the client: sudo apt-get install openssh-client To install the OpenSSH server first update the system then perform the package install by running the command below : sudo apt-get update sudo apt-get install openssh-server Now that you have the required software setup at either end we can proceed with the ssh keys setup. 1 . Firstly, on the client server generate the ssh key p...

Install PlexPy on Ubuntu 14.04

The Goal To install PlexPy on Ubuntu 14.04 . So what is PlexPy? Well, it a python based web application for monitoring your Plex Media Server ( PMS ). I have it installed and it is very useful. Go to the official website here for more information. We will also configure PlexPy to start on boot by configuring it to run as a service. The Process Firstly, ssh onto the Ubuntu server you want to install PlexPy onto. 1 . Install Git sudo apt-get install git-core 2 . Change diriectory to /opt cd /opt 3 . Clone PlexPy from the official git repository: git clone https://github.com/JonnyWong16/plexpy.git 4 . Change directory to plexpy (in /opt) cd plexpy 5 . Start PlexPy: sudo python PlexPy.py Note : PlexPy will be installed to /opt/plexpy. PlexPy is now installed, you will now have to configure it according to your desired settings. Open a browser and go to the IP address of the server running PlexPy @ http://x.x.x.x:8181. Next, we will configu...

Auto Update Plex on Ubuntu 14.04

Image
The Goal In a previous post I detailed how to update Plex Media Server (PMS) on Ubuntu 14.04 . Having to perform those steps every time a new update becomes available is a hassle, so the goal here is to automatically update PMS every time a new update is available. The Process Well, the process is very easy thanks to mrworf's   plexupdate git repo. Go there for the official instructions as they will be kept up-to-date. So, to proceed, run the following command: bash -c "$(wget -qO - https://raw.githubusercontent.com/mrworf/plexupdate/master/extras/installer.sh)" It will ask you a series of questions, answer them per your own requirements. I answered yes to the question  Would you like to automatically install the latest release when it is downloaded?  Once the installer completed it automatically downloaded the latest version of PMS and installed it successfully: If you decide to change any of the plexupdate options at a later date simpl...

Determine a daemon's user and group in Ubuntu

The Goal To find the user and group under which a daemon runs in Ubuntu. You would need this information for a myriad of reasons, the most common reason I require this information is to set permissions on files and folders that the daemon requires access to. The Process To obtain the user and group under which nginx run run the following command: # ps aux|grep nginx|grep -v grep root 30635 0.0 0.0 96136 2908 ? Ss 19:33 0:00 nginx: master process /usr/sbin/nginx www-data 30636 0.0 0.1 96764 5256 ? S 19:33 0:00 nginx: worker process www-data 30637 0.0 0.0 96492 3632 ? S 19:33 0:00 nginx: worker process www-data 30639 0.0 0.0 96492 3632 ? S 19:33 0:00 nginx: worker process www-data 30640 0.0 0.0 96492 3632 ? S 19:33 0:00 nginx: worker process The first column shows that the nginx master process is started with the root user account. This process spawns the worker processes which run under the con...

Stop, start, restart Plex Media Server on Ubuntu 14.04

The Goal Now and again I have to manually stop, start or restart Plex Media Server (PMS) running on my Ubuntu 14.04 server. Due to it being done so infrequently (as Linux is very stable) I tend to forget the exact commands - quite embarrassing really as the name of the PMS service couldn't be any easier to remember.  In any case, note to self, the commands are below. The Commands Stop PMS sudo service plexmediaserver stop Start PMS sudo service plexmediaserver start Restart PMS sudo service plexmediaserver restart I hope this post also helps others out there on the interwebs!

Update Plex Media Server on Ubuntu 14.04

Image
The Goal To upgrade Plex Media Server (PMS) version on Ubuntu 14.04 . Whenever a new update for PMS is available you will see the following notification appear when you login to the Plex web app: Unfortunately you cannot update PMS on Ubuntu 14.04 seamlessly from within the web app, it is a manual process. Fortunately the steps below detail the process on how successfully upgrade PMS. The Process 1 . Go to the Plex download page, the link is here . 2 . Scroll down the page and select Linux as the OS and then click on CHOOSE DISTRIBUTION as highlighted in the image below: 3 . In the list that appears right-click over your OS version, mine was Ubuntu 64-bit (10.04 Lucid or newer) per the image below: Then click on the OS version and click on Copy link address , in my case this link was: https://downloads.plex.tv/plex-media-server/1.3.3.3148-b38628e/plexmediaserver_1.3.3.3148-b38628e_amd64.deb 4 . Next, ssh...