Plex Media Server // PlexConnect Startup Scripts for OSX

Use this updated link to autostart plexconnect & other apps at boot (daemon bash is the best method for plexconnect to date):

 

https://forums.plexapp.com/index.php/topic/84307-launchctl-and-applescript-methods-for-plexconnect-on-mavericks-osx/

 

Always remeber the best update is no update! Save your .shsh today in case apple breaks the trailers app in new release's rendering plexconnect unusable:

http://thefirmwareumbrella.blogspot.com/

My signature links:

Basic osx troubleshooting post #6:
https://forums.plexapp.com/index.php/topic/80703-plex-media-server-plexconnect-startup-scripts-for-osx/?p=464735

How to install PlexConnect on OSX:
http://forums.plexapp.com/index.php/topic/80703-plex-media-server-plexconnect-startup-scripts-for-osx/

Autostart any app such as plex media center on OSX & password protect your login without any user input @ boot (plexautomation on mavericks):
http://forums.plexapp.com/index.php/topic/84307-launchctl-and-applescript-methods-for-plexconnect-on-mavericks-osx/

Autostart any app such as plex media center on OSX & password protect your login without any user input @ boot (plexautomation on mountain lion):
http://forums.plexapp.com/index.php/topic/81127-plex-media-center-automatic-startup-applescript-login-option-osx/

Install trailers.pem from appletv using a web server on osx (requires trailers.pem to be installed prior):
http://forums.plexapp.com/index.php/topic/80779-install-trailerspem-from-appletv-using-a-webserver-on-osx/

How to install plexconnect.app to your ios 5.x and on atv2 jailbroken on osx (post #123):
http://forums.plexapp.com/index.php/topic/81972-installing-a-new-app-on-appletv-without-hijacking-trailers/page-7

dyndns plexconnect
https://forums.plexapp.com/index.php/topic/85523-dyndns-atv2-5x-plexconnect-pull-request/

Plexconnect on the go using dyndns (ios 5.x and jailbreak required)
http://forums.plexapp.com/index.php/topic/82687-plexconnect-on-the-go-using-ddns-ios-5x-and-jailbreak-required/

Plexconnect on the go using dyndns (no jailbreak required for atv2 & 3)
http://forums.plexapp.com/index.php/topic/86031-plexconnect-on-the-go-atv23-no-jailbreak/

Re-enable addsite jailbroken atv2 ios 5.x post #3:
https://forums.plexapp.com/index.php/topic/80703-plex-media-server-plexconnect-startup-scripts-for-osx/?p=463856

Addsite bag.plist post #236:
https://forums.plexapp.com/index.php/topic/81972-installing-a-new-app-on-appletv-without-hijacking-trailers/page-12

Add channels to plex media center:
http://forums.plexapp.com/index.php/topic/72875-more-channels-working/

control ps3 dlna plexclient with a harmony link only no bluetooth to ir adapter needed:
http://forums.plexapp.com/index.php/topic/71410-plex-client-for-playstation-3-or-4/?hl=%2Bps3+%2Bharmony+%2Blink#entry469125

What firmware apple is currently signing
http://theiphonewiki.com/wiki/SHSH

Free dyndns:
http://freedns.afraid.org/

This is how to renable addsite on a jailbroken untethered or tethered atv2 ios 5.x only at this time.

  1. Install a webserver on your os, if its osx I have a webserver tut here: http://forums.plexapp.com/index.php/topic/80779-install-trailerspem-from-appletv-using-a-webserver-on-osx/

  2. Goto profiles by going to the settings app on the appletv and go all the way to the bottom of the page and add this profile addsite.mc from here: https://github.com/intrepidusgroup/rpi-atv (download the zip) then restart your atv.

    If you have no profile option using the same link post #8 shows your how to add a profile easily with a atv remote (webserver still required).

  3. Use filezilla and login to your atv the default user is root, default password is alpine if you never changed them. Navigate to here using filezilla, if there is no ExtraInternetCategories.plist make one:


    /User/Library/Application Support/Front Row/ExtraInternetCategories.plist

  4. Add this code to ExtraInternetCategories.plist edit it to point to your webserver bag.plist and upload it to your atv if needed:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">







Name



URL

http://my.server.com/bag.plist








5. This is the bag.plist you will need to re-enable addsite post #236:

https://forums.plexapp.com/index.php/topic/81972-installing-a-new-app-on-appletv-without-hijacking-trailers/page-12


Prior to adding profiles and bag.plists always use a browser to make sure you can see your addsite.mc or bag.plist on your webserver otherwise it will not work.

lower case headline + merged two topics with same content.

duplicate post.

Troubleshooting techniques for osx (I assume you have followed this exactly to install prior)

https://github.com/iBaa/PlexConnect/wiki/Install-guides

Follow this to uninstall Plex media Server properly (post #339):

https://forums.plexapp.com/index.php/topic/17557-media-server-stuck-on-starting/page-17

Reinstall the pms app and using safari log back into myplex by going to plexweb eg (replace the ip with your actual mac local ip)

http://192.168.1.101:32400/web

Once signed into plexweb you must sign into myplex if you wish to use it. Add your channels and library content back into pms so it can start organizing all of your media and getting meta data etc.

After pms is setup you should rename your old plexconnect to something else and download a new copy from here:

https://github.com/iBaa/PlexConnect

Once you download the latest version of plexconnect extract it then copy your old certs over to /plexconnect/assets/certificates then open terminal and navigate to the new plexconnect folder then type this is in to let plexconnect automatically configure itself for your plexconnect host (you are required to run plexconnect once for it to generate all the required files)

sudo ./plexconnect.py

At this point plexconnect should be running, if not follow to the next steps.

I assume you pointed your atv dns to your plexconnect mac host.

Restart your mac, atv, router, and isp (also any switches or powerline ethernet adapters basically anything to do with your network)

Once again start plexconnect up and ensure that pms is running on you mac.

If at this point it still does not work you need to shut off any firewalls, virus protection, webservers or basically anything that could be running on ports: 80, 53, 443 or 32400 if that is your pms port which it should be if you left everything as default. (You can have a webserver it just must be on a different port then what plexconnect uses to operate, also a firewall and virus protection but in order to troubleshoot it is easier to just shut these things off)

If that does not help it is possible your os is old and corrupted, have a hardware issue or your atv ethernet or wifi is damaged.

I hope this helps as a osx basic troubleshooting guide and if not well at least I tried ;)

This is a full tutorial to install and fully automate Plex media server & PlexConnect to start on any atv2/3 (jailbroken or unjailbroken on any ios version 5.x and up since you need the trailers app as of this post date) without any user input if followed in its entirety on OSX. I only use Appletv's as plex clients:

WARNING! If you have a webserver you must change the port to something besides 80 since the atv2/3 uses this port by default. Here is the location of the file you need to edit to change you listening port /etc/apache2/httpd.conf where it says: listen 80 change it to listen 5555 or whatever you like on your Mac.

Create and install the cert to your apple tv from here or use the easy method to install cert:

https://langui.sh/2013/08/27/appletv-ssl-plexconnect/

Easy method to install trailers.pem from a webserver no microusb needed:

http://forums.plexapp.com/index.php/topic/80779-install-trailerspem-from-appletv-using-a-webserver-on-osx/

Delete plex client on your appletv if its installed, if you have atv flash black this should be a breeze for you. Otherwise google is your friend search for your answer! If your are not jailbroken skip this step(delete plex client).

Download plexconnect on your mac from here:

https://github.com/iBaa/PlexConnect

Unzip, rename the folder to plexconnect and place the unzipped folder in your /users/YOURUSERNAMEHERE directory

Run plexconnect using sudo ./plexconnect.py to generate the settings file on your fresh install of plexconnect then install trailers.pem to your plexconnect folder /plexconnect//assets/certificates/trailers.pem

Now to the autostarting plexconnect by using an automator to make an app. (Follow post #97 here)

http://forums.plexapp.com/index.php/topic/70149-has-anyone-created-an-applescriptapplication-to-launch-plexconnect-at-startup/page-12

plex media server plist made by me :P This will run plex after you login not at boot since at this time plex cannot start at boot since it was coded that way. This will keep plex running even if it crashes and if the plex media center app ever coded differently it will load plex prior to login.

Copy your plex app and rename it to PMS in /applications then Show package contents of your new app PMS and rename Applications/PMS.app/Contents/MacOS/Plex Media Server to PMS

Open terminal then enter these commands
sudo su
cd /(yourfilelocation)
cp com.plex.pms.plist /Library/LaunchDaemons/
cd /library/launchdaemons
chown root:wheel com.plex.pms.plist
chmod 644 com.plex.pms.plist
launchctl load com.plex.pms.plist

You will obviously need to change the plist to the proper directories for the plist and the working directory if you use alternates. This also allows you to not edit plexgdm.py anymore.

Here is the link to the plist & the modified plexconnect.py:

https://github.com/wahlmanj/com.plex.pms.plist

Reset your mac then goto your atv and change your network to manual and dont change anything but your dns to point to your pms server for example my mac ip is 192.168.1.101

I have yet to see trailers unavaliable yet when my mac is running which is typically 24/7 using the above methods.

Start Plex Media Center & PlexConnect automatically at boot without any user input:

http://forums.plexapp.com/index.php/topic/81127-plex-media-center-automatic-startup-applescript-login-option-osx/

Enable trailers on your atv if its disabled in parental controls and enjoy plex via the trailers app using plexconnect on your AppleTV!

Always remeber the best update is no update! Save your .shsh today in case apple breaks the trailers app in new release's rendering plexconnect unusable:

http://thefirmwareumbrella.blogspot.com/

Is there a way to automate plexserver on windows 7?

Please post in the proper thread this is for osx only.

I followed the steps word for word, but mine is still not automated :(

Im running Mavericks on a mac mini

Got me im running mavericks with launchctl to start and stop plexconnect and fastuser to lock out my machine @ boot. I can reset my mac and everthing works without any user input. Are you using this method? This post was wrote awhile ago so it might not be up to date try this one:

http://forums.plexapp.com/index.php/topic/84307-launchctl-and-applescript-methods-for-plexconnect-on-mavericks-osx/

*Update a new plexconnect has been released the to autostart plexconnect using launchctl using the daemon bash in osx. This is a much better way to autostart plexconnect.

Thanks, I will try the launchctl method and get back to you :)

There is a better method using the daemon bash here:

https://forums.plexapp.com/index.php/topic/88154-how-can-i-autostart-plexconnect-with-new-daemon/

Plus a lot of that is out of date on the original post (its from September), I use this now that I'm on mavericks with the daemon bash to auto start plexconnect among other things:

https://forums.plexapp.com/index.php/topic/84307-launchctl-and-applescript-methods-for-plexconnect-on-mavericks-osx/

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.