Run PlexConnect (remember you do not need sudo as you are already logged in as root)
The ATV2's host file could probably be altered so that you could disable the PlexConnect DNS server component but i have not really played around with it too much.
It does however open up more possibilities for a very portable media centre when daemon code and MyPlex support is added (you could take it anywhere and access your content, shared or otherwise).
Have a play about and provide some feedback if you want :D
Run PlexConnect (remember you do not need sudo as you are already logged in as root)
The ATV2's host file could probably be altered so that you could disable the PlexConnect DNS server component but i have not really played around with it too much.
It does however open up more possibilities for a very portable media centre when daemon code and MyPlex support is added (you could take it anywhere and access your content, shared or otherwise).
Have a play about and provide some feedback if you want :D
I set the ATV's DNS to the IP of the ATV, although 127.0.0.1 will probably work as well.
It also works if you disable the PlexConnect DNS server and edit the ATV's host file to point trailers.apple.com to the IP of your PMS.
After further though though you should be careful with the host file route if you plan to ever move the ATV from your home network (using the PlexConnect DNS server will probably work as a portable solution when MyPlex is up and running).
Okay, cool. I'm going to try this out. Two more questions, though. To start it, you just ssh in and type "PlexConnect.py" but how do you stop it running? And how do you uninstall it? Can I just delete the .deb file and PlexConnect folder or does it install stuff all over the place?
I set the ATV's DNS to the IP of the ATV, although 127.0.0.1 will probably work as well.
It also works if you disable the PlexConnect DNS server and edit the ATV's host file to point trailers.apple.com to the IP of your PMS.
After further though though you should be careful with the host file route if you plan to ever move the ATV from your home network (using the PlexConnect DNS server will probably work as a portable solution when MyPlex is up and running).
I guess currently the issue with the "very portable media centre" is, that you need another computer to ssh into the aTV to activate that code. This is where the daemon comes into play...
EDIT: the shutdown might not work with . you might need ...
I see that it installs Python, so that would remain behind unless there is a uninstall python script included which I didn't see when I unpacked the .deb file. But I guess it doesn't hurt to have it installed and I can just restore the Apple TV and then jailbreak it again if something goes wrong.
stopping would be .
uninstalling "rm -rf " or something.
I guess currently the issue with the "very portable media centre" is, that you need another computer to ssh into the aTV to activate that code. This is where the daemon comes into play...
thanks for the quick reply! I don't know how to flush the cache. When I get home, I'll try restarting it and trying it again. Do you know of another way?
plist in /System/Library/LaunchDaemons/
the file needs to have the string property appended with .plist as per the XML property list keys
XML PROPERTY LIST KEYS
The following keys can be used to describe the configuration details of your daemon or agent. Property lists are Apple's standard configuration file format. Please see plist(5) for more information. Please note: property list files are expected to have their name end in ".plist". Also please note that it is the expected convention for launchd property list files to be named .plist. Thus, if your job label is "com.apple.sshd", your plist file should be named "com.apple.sshd.plist".
change "var/root/PlexConnect/PlexConnect.py" to be where you installed it, in my case, in the home directory for root.
<?xml version="1.0" encoding="UTF-8"?>
Label
--RENAME THIS TO YOUR FILENAME MINUS .plist--
ProgramArguments
/usr/bin/python
/var/root/PlexConnect/PlexConnect.py
RunAtLoad
Can we bring this topic back up now that we have the daemon code and myplex incorporated. I would like to install this on a jailbroken ATV2 used at a remote location. I would like plex connect to run at startup on the Apple TV so the trailers app could be used to access my plex. I could also go down the method of installing an app using the add site method but it looks like both methods have kind of died out.
It’s late tonight but I am gonna try too get all this working tomorrow. Is anybody currently using only their Apple TV to run plexconnect?
The auto start stuff for OSX and then likely iOS should be sorted in the next few days, including a script to run that will automatically do all the launchctl stuff for you I will test it when done.
The auto start stuff for OSX and then likely iOS should be sorted in the next few days, including a script to run that will automatically do all the launchctl stuff for you ;)
I will test it when done.
Awesome. Any luck with this? Are you creating a script that will create a plist file and put all the stuff in the right places? Just curious how you are attacking this?
I had a play about with this at the weekend but ran out of time (got slowed down by SSH connectivity getting screwed up by NitoTV updates - found a fix though). There is a pull request on GitHub that is being tidied up at the moment, essentially:
- it gets the Linux daemon code working on OSX by performing an OS detection; if it finds it to be OSX (or iOS I believe, as they share the Darwin kernel) then it waits for the network interfaces to be active before starting the daemon (this is what prevented it from working at boot previously). - it also come with a plist and script that yo can run which will check for certs, generate them if needed and setup PlexConnect to launch as a daemon at boot (no need for an admin password and the daemon will auto restart itself if it crashes) - the auto install script needed a little tweaking (see GitHub) but does work
Hopefully this works on iOS without tweaking and combined with the add site hack (enabling you to disable the PlexConnect DNS server) makes a nice portable media player for this with jail broken ATV devices. I was getting issues getting it to auto restart on boot but I will continue to have a play with it
Thanks. Yea after I posted last night I messed around and got it working. Then this morning I worked on autostart and used the same plist I am using for Mac from the gituhub commit from dlmarston. I just copied that over and it seems to work just fine using the daemon.bash. I do however have a time.sleep(10) built into plexconnect.py on my mac and now atv until the bugs are worked out with the startup network detection.
Please let me know if you guys come up with a better way but for now All I have to do is change the dns ip to the ip address that is pulled from any dhcp router and it will automatically work. Pretty cool. Next to play around with addsite.