New Plugin Available: Plex Media Server!

Status
Not open for further replies.

GaiusBaltar

Explorer
Joined
Jan 15, 2014
Messages
61
To throw my 2 cents in.

I run the plex plugin (two copies actually) and when the plex pass bsd version is updated I download it and replace the plexmediaserver binary folder like this:

Code:
# cd /usr/pbi/plexmediaserver-amd64/share/
# wget http://address.copied.from.plex.pass.bsd.download.link
# tar -xjvf ./PlexMediaServer-0.9.downloaded.version.tar.bz2
# service plexmediaserver stop
# mv ./plexmediaserver/ ./plexmediaserver.old/
# mv ./PlexMediaServer-0.9.downloaded.version/ ./plexmediaserver/
# service plexmediaserver start


I've been doing this for some time now and have not had any trouble with this method.

Take with grain of salt. Always back up your data. Get regular exercise. Call you mother.


so you're basically just updating the version of plex that's running inside the prepackaged PBI with the latest version released on Plex's official site.
if so, awesome, as you just answered the question i was about to post :)
 

mstinaff

Dabbler
Joined
Jan 21, 2014
Messages
34
That is correct. The FreeNAS plugin page shows the original version info for the PBI, but the settings page on the Plex server will show the updated version.
 

mstinaff

Dabbler
Joined
Jan 21, 2014
Messages
34
As a matter of fact, I just now updated my Plex servers to 0.9.9.3 (released this morning) and everything is running fine. I'll watch to make sure the new Scheduled Tasks feature kicks off properly.
Also note that you have to use the new plexWeb 2.0 interface via plex.tv to see the new scheduled tasks feature (bug in the local plex web prevents it from showing up)
 

kckopp

Dabbler
Joined
Sep 13, 2013
Messages
22
As a matter of fact, I just now updated my Plex servers to 0.9.9.3 (released this morning) and everything is running fine. I'll watch to make sure the new Scheduled Tasks feature kicks off properly.
Also note that you have to use the new plexWeb 2.0 interface via plex.tv to see the new scheduled tasks feature (bug in the local plex web prevents it from showing up)

You are awesome! I wish I knew earlier that updating to PlexPass releases could be so easy.

Running 0.9.9.3 now. Thanks!
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
You are awesome! I wish I knew earlier that updating to PlexPass releases could be so easy.

Running 0.9.9.3 now. Thanks!

If you wanted to be a BA, you could even cronjob that thing to update itself every night at 3am. :P
 

kckopp

Dabbler
Joined
Sep 13, 2013
Messages
22
If you wanted to be a BA, you could even cronjob that thing to update itself every night at 3am. :p

I'm not BA :( . I think I'd need a method to grab the new PlexPass BSD download link. The only way I know to grab that is by logging in to https://plex.tv/, visiting the downloads section, switching to PlexPass releases and navigating to the BSD section of PMS downloads. I'd have no idea how to script that. :)
 

Supa

Patron
Joined
Jan 10, 2014
Messages
204
To throw my 2 cents in.

I run the plex plugin (two copies actually) and when the plex pass bsd version is updated I download it and replace the plexmediaserver binary folder like this:

Code:
# cd /usr/pbi/plexmediaserver-amd64/share/
# wget http://address.copied.from.plex.pass.bsd.download.link
# tar -xjvf ./PlexMediaServer-0.9.downloaded.version.tar.bz2
# service plexmediaserver stop
# mv ./plexmediaserver/ ./plexmediaserver.old/
# mv ./PlexMediaServer-0.9.downloaded.version/ ./plexmediaserver/
# service plexmediaserver start


I've been doing this for some time now and have not had any trouble with this method.

Take with grain of salt. Always back up your data. Get regular exercise. Call you mother.


Will Try this. Thankss
 

mstinaff

Dabbler
Joined
Jan 21, 2014
Messages
34
If you wanted to be a BA, you could even cronjob that thing to update itself every night at 3am. :p


Couldn't help myself

# PlexUpdate.sh
will download the latest public release to
/usr/pbi/plexmediaserver-amd64/sharePlexMediaServer-[version]-freebsd-amd64.tar.bz2
if there is no file there by that name

# PlexUpdate.sh download PlexPassUsername PlexPassPassword
will download the latest plexpass release to
/usr/pbi/plexmediaserver-amd64/sharePlexMediaServer-[version]-freebsd-amd64.tar.bz2
if there is no file there by that name

# PlexUpdate.sh AUTOUPDATE
Will download latest public release and update to it

# PlexUpdate.sh AUTOUPDATE PlexPassUsername PlexPassPassword
Will download latest plexpass release and update to it

DISCLAIMER I've tested it some, but I'm sure there are still many ways it can fail.
It will probably set fire to your server and curse your family for generations.
And auto updating probably not so much a good idea, but like I said, couldn't help myself.

PlexUpdate.sh
Code:
#!/bin/sh
 
USERNAME=$2
PASSWORD=$3
URL="https://plex.tv/downloads?channel=plexpass"
PMSPARENTPATH="/usr/pbi/plexmediaserver-amd64/share"
PMSLIVEFOLDER="plexmediaserver"
PMSBAKFOLDER="plexmediaserver.bak"
 
DOWNLOADPAGE=`curl -m 5 -silent -u $USERNAME:$PASSWORD $URL`
if [ $? -ne 0 ]; then
    echo Error downloading $URL
else
    DOWNLOADURL=`echo $DOWNLOADPAGE | grep -o 'http[[:print:]]*-freebsd-amd64.tar.bz2'`
    if [ "x$DOWNLOADURL" = "x" ]; then
        echo Could not find a PlexMediaServer-[version]-freebsd-amd64.tar.bz2 download link on page $URL
    else
        DOWNLOADFILE=`basename $DOWNLOADURL`
        if [ ! -e $PMSPARENTPATH/$DOWNLOADFILE ]; then
            wget -qP $PMSPARENTPATH $DOWNLOADURL
            if [ $? -ne 0 ]; then
                echo Error downloading $DOWNLOADURL
            elif [ "$1" = "AUTOUPDATE" ]; then
                if [ ! -s $PMSPARENTPATH/$DOWNLOADFILE ]; then
                    echo $DOWNLOADFILE is zero bytes, cannot update with this file.
                else
                    rm -rf $PMSPARENTPATH/$PMSBAKFOLDER
                    service plexmediaserver stop
                    mv $PMSPARENTPATH/$PMSLIVEFOLDER/ $PMSPARENTPATH/$PMSBAKFOLDER/
                    mkdir $PMSPARENTPATH/$PMSLIVEFOLDER/
                    tar -xj --strip-components 1 --file $DOWNLOADFILE --directory $PMSPARENTPATH/$PMSLIVEFOLDER/
                    if [ $? -ne 0 ]; then
                        rm -rf $PMSPARENTPATH/$PMSLIVEFOLDER/
                        mv $PMSPARENTPATH/$PMSBAKFOLDER/ $PMSPARENTPATH/$PMSLIVEFOLDER/
                        echo Error exctracting $DOWNLOADFILE
                    fi
                    service plexmediaserver start
                fi
            fi
        fi
    fi
fi
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
I think it's important to note that the script does appear to work however if you don't have a paid PlexPass account you cannot upgrade to the latest paid version. I know it sounds obvious but some of us don't pay for this software other than I paid for the application on a few devices. I do like the ability to upgrade easily once a new public release hits the streets.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
You must be a commie to not have the PlexPass version. ;)
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
I don't have a smart phone nor a tablet either, happens when you are almost broke. Okay truth, I don't stream over the internet to other devices which is what I thought PlexPass paid subscription is for. When I'm not at home I'm at work and that was the truth about not having a smart phone. I do have a flip phone without internet connectivity. :D
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
I don't have a smart phone nor a tablet either, happens when you are almost broke. Okay truth, I don't stream over the internet to other devices which is what I thought PlexPass paid subscription is for. When I'm not at home I'm at work and that was the truth about not having a smart phone. I do have a flip phone without internet connectivity. :D

Plexpass isn't for streaming over the internet. It gives you access to new features that Plex offers before it's put into the public version. Some have small quirks, others have serious quirks. I've had no problem watching my movies despite new "features" that have serious problems.

As for your connectivity comments I'll just say this: "Dude, I don't know you bro!"
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
This is fantastic - thanks!

How do I go about updating Plex/Web interface to version 2?

Cheers

You'd likely have to edit the FreeNAS db file. It's not something I'd recommend you do.
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
Were you bullied as a child cyberjock :p
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
I'll say 'howdy' the next time I see her, although I doubt she remembers you o_O
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Plexpass isn't for streaming over the internet. It gives you access to new features that Plex offers before it's put into the public version. Some have small quirks, others have serious quirks. I've had no problem watching my movies despite new "features" that have serious problems.
And I thought it was so I could stream my media to another location over the internet, like listening to music at work or watching a movie while away from home. I have no idea why someone would pay 4 bucks a month just to stay on top of the latest software version. After all, there can't be that much of a change month to month once you have it working, maybe security updates if you are on the open internet.

As for your connectivity comments I'll just say this: "Dude, I don't know you bro!"
Yea, probably all the radiation I got while on the subs made me afraid to hold a cell phone to my head. I will admit that my wife and all my kids have very nice smart phones but my phone is paid by my company and I told them I didn't want the I-Phone 5. It would mean they could send me emails while I am off work and have full expectations that I should answer them. I was glad they got rid of the blackberry's.
 
Status
Not open for further replies.
Top