{"id":88,"date":"2016-04-23T20:51:03","date_gmt":"2016-04-23T20:51:03","guid":{"rendered":"https:\/\/pure-media.info\/?p=88"},"modified":"2017-04-06T03:52:02","modified_gmt":"2017-04-06T03:52:02","slug":"automatically-update-plex-on-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/pure-media.info\/index.php\/2016\/04\/23\/automatically-update-plex-on-ubuntu-14-04\/","title":{"rendered":"Automatically Update Plex on Ubuntu 14.04+"},"content":{"rendered":"<h3><a href=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/plex-updater.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"90\" data-permalink=\"https:\/\/pure-media.info\/index.php\/2016\/04\/23\/automatically-update-plex-on-ubuntu-14-04\/plex-updater\/\" data-orig-file=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/plex-updater.png?fit=250%2C250&amp;ssl=1\" data-orig-size=\"250,250\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"plex-updater\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/plex-updater.png?fit=250%2C250&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/plex-updater.png?fit=250%2C250&amp;ssl=1\" class=\"aligncenter size-full wp-image-90\" src=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/plex-updater.png?resize=250%2C250&#038;ssl=1\" alt=\"plex-updater\" width=\"250\" height=\"250\"><\/a><\/h3>\n<h3>This guide will show you how to update plex automatically with the new versions that come out, plex pass versions included in the process.<\/h3>\n<h3>First we need to download the script that will check for a new version of please and update it.<\/h3>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">wget https:\/\/raw.githubusercontent.com\/mrworf\/plexupdate\/master\/plexupdate.sh<\/code><\/p>\n<p><strong>New lets allow it to Execute<\/strong><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">chmod +x plexupdate.sh<\/code><\/p>\n<p><strong>&nbsp;Configure the setting here<\/strong><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">echo -e &gt; ~\/.plexupdate 'EMAIL=&lt;plex email account&gt;nPASS=\"&lt;plex password&gt;\"nDOWNLOADDIR=\/' <\/code><\/p>\n<p><strong>The automatic update script is all set now we just need to set a CRON to have it check at the desired interval this example I used Daily at midnight.<\/strong><\/p>\n<p><strong>Option 1 (EASY) is using Webmin, you can see how to install it in my other post <a href=\"https:\/\/pure-media.info\/index.php\/2016\/03\/31\/guide-to-install-webmin-on-ubuntu-and-securing-it\/\">HERE<\/a>.<\/strong><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/Scheduled-Cron-Jobs..png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"89\" data-permalink=\"https:\/\/pure-media.info\/index.php\/2016\/04\/23\/automatically-update-plex-on-ubuntu-14-04\/scheduled-cron-jobs\/\" data-orig-file=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/Scheduled-Cron-Jobs..png?fit=848%2C480&amp;ssl=1\" data-orig-size=\"848,480\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Scheduled Cron Jobs\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/Scheduled-Cron-Jobs..png?fit=300%2C170&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/Scheduled-Cron-Jobs..png?fit=800%2C453&amp;ssl=1\" class=\"aligncenter wp-image-89\" src=\"https:\/\/i0.wp.com\/pure-media.info\/wp-content\/uploads\/2016\/04\/Scheduled-Cron-Jobs..png?resize=744%2C421&#038;ssl=1\" alt=\"Scheduled Cron Jobs \" width=\"744\" height=\"421\"><\/a><\/p>\n<p><strong>Option 2 (Moderate) CLI add Cron<\/strong><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cron -e<\/code><\/p>\n<p><strong>Now add<\/strong><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">@daily \/home\/username\/plexupdate.sh -a -d<\/code><\/p>\n<p><strong>&nbsp;CTRL+x to save and your all set<\/strong><\/p>\n<p><strong>Now everyday at Midnight the server will check plex.tv to see if there is an update and if so update your plex.<\/strong><\/p>\n<h2>My password is rejected even though correct<\/h2>\n<p>If you use certain characters, such as dollar sign, in your password, bash will interpret that as a reference to a variable. To resolve this, enclose your password with single quotes instead of the normal quotes.<\/p>\n<p>Ie, <code>PASS=\"MyP4$$w0rD\"<\/code> will not work, but changing to it to <code>PASS='MyP4$$w0rD'<\/code> will<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will show you how to update plex automatically with the new versions that come out, plex pass versions<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[85],"tags":[78,16,31,40,43,10,49,2,79,80,4,7,68,81,18],"class_list":["post-88","post","type-post","status-publish","format-standard","hentry","category-tech-tip","tag-automatically","tag-command","tag-debian","tag-guide","tag-how-to","tag-install","tag-manager","tag-plex","tag-plex-tv","tag-script","tag-server","tag-ubuntu","tag-update","tag-upgrade","tag-webmin"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":false,"jetpack_shortlink":"https:\/\/wp.me\/p7oBs4-1q","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/comments?post=88"}],"version-history":[{"count":0,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/posts\/88\/revisions"}],"wp:attachment":[{"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/media?parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/categories?post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pure-media.info\/index.php\/wp-json\/wp\/v2\/tags?post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}