Manually updating Plex on FreeNAS, including PlexPass versions. -PMS_Updater.sh

Are you running Plex Media Server on FreeNAS as a plugin, but don’t like waiting for the updates from FreeNAS?
PMS_Updater for FreeNAS is exactly what you need!

PMS_Updated allows you to update the FreeNAS Plex install from CLI with out waiting for the plugin updates from the devs, the updater will connect to your specified jail, download the most recent version of Plex and run the update if needed.

To do so, first we need to either access our FreeNAS console, or login via SSH. (for Windows users, check out Putty)
Once logged into your FreeNAS server, you want to determine what Jail number your Plex server is installed in, to do so execute the following

jls

You will get an output of Jails installed, choose your Plex Server. In this example mine is 1.
Our next line with log into that Jail to update Plex, so be sure to use the number from the jls command above.

jexec 1 csh

The first time you run this, you may need to install the following.

pkg install ca_root_nss
pkg install wget
pkg install perl5

Once in the Jail, we can download the PMS_Update script

fetch -o PMS_Updater.sh https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh

Or for PlexPass use

fetch -o PMS_Updater.sh https://raw.githubusercontent.com/luluhoc/PMS_Updater/master/PMS_UpdaterPLEXPASS.sh

After the appropriate updater is downloaded, make sure to modify the permissions for the file to execute correctly.

chmod 755 PMS_Updater.sh

And then execute the script.

./PMS_Updater.sh -vv -a

You should now be on the latest version of Plex, you may need to start your Plex Server in the FreeNAS plugins page.


For a list of known issues and bugs, please check the Issues Page from the Author of this script.
At the time of writing this article (3/23/19), there are 2 known bugs with the current release.


Forcing an update when all else fails

A few times the script above has failed me, to get around I still execute the jexec for the jail I wish to update.

jexec 1
fetch -o PMS_Updater.sh https://raw.githubusercontent.com/luluhoc/PMS_Updater/master/PMS_UpdaterPLEXPASS.sh
chmod 755 PMS_Updater.sh 

And I then use WinSCP to copy the install files over to the plex jail location. The installers can be downloaded from Plex.tv and choosing FreeBSD.

And then execute the following command. (Just be sure to name the downloaded Plex server files to PlexBuild.tar.bz2)

./PMS_Updater.sh -l PlexBuild.tar.bz2 -vv -a

How to determine what RaspberryPi you have from Command Line

Do you have a Raspberry Pi, yet aren’t sure exactly what make/model or hardware you have? The following will show you exact details about your device.
From a command line, or SSH session into your Raspberrry Pi, run the following command.

cat /proc/cpuinfo

And look for the line that states – Revision, this can then be cross checked with the list below.


RevisionRelease DateModelPCB RevisionMemoryNotes
BetaQ1 2012B (Beta)?256 MBBeta Board
0002Q1 2012B1.0256 MB
0003Q3 2012B (ECN0001)1.0256 MBFuses mod and D14 removed
0004Q3 2012B2.0256 MB(Mfg by Sony)
0005Q4 2012B2.0256 MB(Mfg by Qisda)
0006Q4 2012B2.0256 MB(Mfg by Egoman)
0007Q1 2013A2.0256 MB(Mfg by Egoman)
0008Q1 2013A2.0256 MB(Mfg by Sony)
0009Q1 2013A2.0256 MB(Mfg by Qisda)
000dQ4 2012B2.0512 MB(Mfg by Egoman)
000eQ4 2012B2.0512 MB(Mfg by Sony)
000fQ4 2012B2.0512 MB(Mfg by Qisda)
0010Q3 2014B+1.0512 MB(Mfg by Sony)
0011Q2 2014Compute Module 11.0512 MB(Mfg by Sony)
0012Q4 2014A+1.1256 MB(Mfg by Sony)
0013Q1 2015B+1.2512 MB(Mfg by Embest)
0014Q2 2014Compute Module 11.0512 MB(Mfg by Embest)
0015?A+1.1256 MB / 512 MB(Mfg by Embest)
a01040Unknown2 Model B1.01 GB(Mfg by Sony)
a01041Q1 20152 Model B1.11 GB(Mfg by Sony)
a21041Q1 20152 Model B1.11 GB(Mfg by Embest)
a22042Q3 20162 Model B (with BCM2837)1.21 GB(Mfg by Embest)
900021Q3 2016A+1.1512 MB(Mfg by Sony)
900032Q2 2016?B+1.2512 MB(Mfg by Sony)
900092Q4 2015Zero1.2512 MB(Mfg by Sony)
900093Q2 2016Zero1.3512 MB(Mfg by Sony)
920093Q4 2016?Zero1.3512 MB(Mfg by Embest)
9000c1Q1 2017Zero W1.1512 MB(Mfg by Sony)
a02082Q1 20163 Model B1.21 GB(Mfg by Sony)
a020a0Q1 2017Compute Module 3 (and CM3 Lite)1.01 GB(Mfg by Sony)
a22082Q1 20163 Model B1.21 GB(Mfg by Embest)
a32082Q4 20163 Model B1.21 GB(Mfg by Sony Japan)
a020d3Q1 20183 Model B+1.31 GB(Mfg by Sony)
9020e0Q4 20183 Model A+1.0512 MB(Mfg by Sony)

The above is obtained from eLinux.org

PuTTY Releases Important Software Update to Patch 8 High-Severity Flaws

The popular SSH client program PuTTY has released the latest version of its software that includes security patches for 8 high-severity security vulnerabilities.

PuTTY is one of the most popular and widely used open-source client-side programs that allows users to remotely access computers over SSH, Telnet, and Rlogin network protocols.

Almost 20 months after releasing the last version of its software, the developers of PuTTY earlier this week released the latest version 0.71 for Windows and Unix operating systems.

Read more…