How can I autostart plexconnect with new daemon

i am looking to see if there is a step by step tutorial for this. I am looking to have plexconnect auto start when my mac pro running snow leopard boots up to the desktop.

Its now on the main code of plexconnect, download the latest copy of plexconnect and look in the support folder for instructions. Its very easy to follow.

There are no instructions in the support folder unless you actually open up the script files and read the comments. I still think we need a separate Readme or tutorial file.

Its now on the main code of plexconnect, download the latest copy of plexconnect and look in the support folder for instructions. Its very easy to follow.

i must be missing something.  don't see instructions 

See my post above your last Jamie. I haven’t used the script yet so will leave it the creators to give official instructions.

See my post above your last Jamie.

to funny. we post the some thing

Thats what I meant, figured everyone could easily do that, its really not that bad to figure it out at least I thought by reading inside those files within the support folder. This is my experince with it so far if you look at the last posts in this topic:


https://forums.plexapp.com/index.php/topic/82906-preliminary-instructions-to-run-daemon-on-osx/

I have been trying all day today but must be doing something wrong. it won't work

Ok don’t post anymore for a sec I will write up a quick how to right here:


Using this file edit where it says REPLACE_THIS_PATH replace both instances to your main /plexconnect folder location using textedit:

https://github.com/iBaa/PlexConnect/blob/master/support/OSX/com.plex.plexconnect_daemon.bash.plist


Open up terminal type this in after navigating to /support/OSX (use sudo su before navigating)


sudo su

./installdaemon.bash


Note it doesnt seem like its stopping when you unload the daemon so I personally use these commands to start and stop plexconnect and never unload the plist, after I navigate to /plexconnect (type in sudo su before you navigate) in terminal I type this in to start and stop it till the code is fixed up:


sudo su

./plexconnect_daemon.bash start

./plexconnect_daemon.bash stop


Im sure this can be easily put into a readme but I belive they are more concened about getting the code fixed to unload the daemon via lauchctl and stop plexconnect at the moment, so a readme would need to be redone anyways once that happens.

>>Note it doesnt seem like its stopping when you unload the daemon

Right... and this is the main reason we don't have instructions for it yet. It's still in the works... 

I actually prefer the second solution, see branch "OSXautostart". It fully works within the launchctl world, running PlexConnect.py directly. We might shift this back into "master" once the last quirks are solved.

Installation is pretty much the same as described by Wahlman:

- open terminal

- cd

- cd support/OSX

- sudo ./install.bash

This will install a PlexConnect plist in /Library/LaunchDaemon (for the forthcoming boots) and directly start it as well.

- sudo ./remove.bash will shut down and uninstall - ie removing the plist.

- launchctl unload /Library/LaunchDaemon/com/plex/plexconnect.com will unload or stop the service for this boot.

- launchctl load /Library/LaunchDaemon/com/plex/plexconnect.com will restart the process again...

- launchctl list | grep com.plex.plexconnect.com gives you an indication if the process is running (first number - PID) and (if neccessary) an error number - however you decode that, I didn't figure out yet.

See also github - Pull Request #182 for more/other details.

ok i did all this but it does not autostart when i reboot

Figured it out!!!

I too was having problems with it on Snow Leopard, so I tried to dig in and figure out why it still said it wasn't running, and found this in the console:

11/30/13 4:20:36 PM com.plex.plexconnect_daemon.bash[74504] ImportError: No module named argparse

Turns out that Snow leopard is still running Python 2.6, so in order to make it work, you have to make the system point to 2.7. If you've already installed it (which I think you have to in order to get PlexConnect to work in the first place), you can follow these instructions to get the system to recognize it: http://wolfpaulus.com/jounal/mac/installing_python_osx/

Hope that helps!

i can get it to run. But it won't autostart after a shutdown. also when it says it running plex is not working the ATV3. it just goes to imovie

i can get it to run. But it won't autostart after a shutdown. also when it says it running plex is not working the ATV3. it just goes to imovie


You might want to clarify the above as it does not make sense.

You might want to clarify the above as it does not make sense.

when i do 

- open terminal

- cd

- cd support/OSX

- sudo ./install.bash

 

it then says it installed.

plexconnect is running.

but when i turn on the apple tv it just sit there accessing iMovies.  nothing ever comes up

Post your settings.cfg file.
Did you copy your certs into the updated PlexConnect folder?

yes i copy my certs

[PlexConnect]
port_pms = 32400
port_webserver = 80
ip_plexconnect = 0.0.0.0
certfile = ./assets/certificates/trailers.pem
ip_dnsmaster = 8.8.8.8
loglevel = Normal
enable_dnsserver = True
logpath = .
ip_pms = 192.168.178.10
enable_plexgdm = True
hosttointercept = www.icloud.com
port_ssl = 443
enable_webserver_ssl = True
prevent_atv_update = True
port_dnsserver = 53
enable_plexconnect_autodetect = True
Last login: Sun Dec  1 18:10:20 on ttys000
APPLE-MEDIA-CENTER:~ Macintosh$ cd /Users/Macintosh/Desktop/PlexConnect-OSXautostart\ 12:1:13/support/OSX 
APPLE-MEDIA-CENTER:OSX Macintosh$ sudo ./install.bash
  -> run createcert.bash
Installing PlexConnect...
Starting PlexConnect...
- 1 com.plex.plexconnect.bash
APPLE-MEDIA-CENTER:OSX Macintosh$ 

Mine looks like this on success:

sh-3.2# ./installdaemon.bash

  -> run createcert.bash

Installing PlexConnect_daemon...

Starting PlexConnect...

PlexConnect is running

 

I would goto you /library/lanchdaemons folder and run this

 

sudo su

launchctl unload com.plex.plexconnect_daemon.bash.plist

 

Then copy it to your /assets/OSX folder, movie to the the trash from /library/lanchdaemons then re-run this via terminal:

 

sudo su

./installdaemon.bash

 

If this doesn't work (as in it doesn't say Plexconnect is running) I think your edits may be incorrect in the com.plex.plexconnect_daemon.bash.plist file itself. This is mine and it works perfectly, yours may be different:

 

<?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">
Label
com.plex.plexconnect_daemon.bash
ProgramArguments
/shared/plexconnect/PlexConnect_daemon.bash
start
UserName
root
RunAtLoad
WorkingDirectory
/shared/plexconnect
Last login: Sun Dec  1 20:20:18 on ttys000
APPLE-MEDIA-CENTER:~ Macintosh$ cd /Library/LaunchDaemons 
APPLE-MEDIA-CENTER:LaunchDaemons Macintosh$ sudo su
sh-3.2# launchctl unload com.plex.plexconnect_daemon.bash.plist
launchctl: Couldn't stat("com.plex.plexconnect_daemon.bash.plist"): No such file or directory
nothing found to unload
sh-3.2#