You can generate a cert from the Apple TV or copy them over manually. Its only need for plexconnect to run otherwise its useless. I will edit the deb and throw in a junk cert eventually.
You can generate a cert from the Apple TV or copy them over manually. Its only need for plexconnect to run otherwise its useless. I will edit the deb and throw in a junk cert eventually.
okay and how about the settings.cfg ? will it get overwritten when we use git pull ?
No.
When on aTV2 with extra PlexConnect icon, there is no need to have certs - no HTTPS involved.
When on aTV2 with extra PlexConnect icon, there is no need to have certs - no HTTPS involved.
ah okay thanks for the infos. i'm using the extra PlexConnect icon. is it possible to move plexconnect to the 1 first line, like infuse from firecore does ?
select and hold on the new button - it will start shaking and can be moved around (starting iOS5.x?)
ah okay thanks for the infos. i'm using the extra PlexConnect icon. is it possible to move plexconnect to the 1 first line, like infuse from firecore does ?
select and hold on the new button - it will start shaking and can be moved around (starting iOS5.x?)
It will not go to the top shelf bit, as that requires actually building a true native application, but you can put it anywhere else.
Oh... THAT first line. :-)
And I thought: "Great, I still remember what f00b4r once told me..."
Oh... THAT first line. :-)
And I thought: "Great, I still remember what f00b4r once told me..."
It will not go to the top shelf bit, as that requires actually building a true native application, but you can put it anywhere else.
okay that worked all fine :) now we just need a super lazy update button for the git pull on atvs plexconnect settings :P is there something like that on the to do list ?
Auto update mechanism is on the roadmap
I made a plist called com.plex.plexconnect.auto.plist in my fork. Seems to update fine on osx on a scheduled basis. I would imagine it would work with Apple TV/ios devices as well. Maybe I will throw it in the .deb(s) eventually. If/when the auto update stuff is implemented it won't be needed and I can remove it. I wonder if I need certs because of the way I'm setting up the .deb. I will look into it and see if I can figure out how to remove them down the road. I figured they were need to launch plexconect in general due to it looking for the cert when you launch plexconnect.py via lauchctl after it runs plexconnect.bash.
Certs are not needed if you are using add site as you are therefore not hijacking the trailers app, ie the DNS part of PlexConnect is disabled and only the webserver (on port 80) and convertor is running.
Im aware they are not required for addsite to function but the way I built the .deb may be the issue in why plexconnect.py will not launch without, I have to look at it to be sure. Let me use filezilla and I will remove them if they are there to see if it still works.
[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 = False
logpath = .
ip_pms = 127.0.0.1
enable_plexgdm = False
hosttointercept = localhost
port_ssl = 443
enable_webserver_ssl = False
prevent_atv_update = True
port_dnsserver = 53
enable_plexconnect_autodetect = False
Maybe I need to change this settings.cfg so it doesn’t look for them. Then I can build a new atv .deb. I would imagine the iOS devices .deb will need a cert to work. This looks like a winner from @baa’s github.
[PlexConnect]
enable_dnsserver = False
enable_plexconnect_autodetect = False
ip_plexconnect = 127.0.0.1
hosttointercept = localhost
Rats its still throwing up this error when I run plexconnect.py using the settings.cfg from @baa’s github. Im going to stick with the old .deb I don’t care if it generates a cert its not like its hurting anything. Somehow I broke git on one of my appleTV’s now I have to restore to fix it. dammit…looks like the network is dead besides sftp explain that. Son of a…lesson learned if the $hit isn’t broken don’t fix it 
15:16:41 PlexConnect: ***
15:16:41 PlexConnect: PlexConnect
15:16:41 PlexConnect: Press CTRL-C to shut down.
15:16:41 PlexConnect: ***
15:16:41 PlexConnect: started: 15:16:41
15:16:41 PlexConnect: Version: 0.3.1+
15:16:41 PlexConnect: Python: 2.7.3 (default, Aug 11 2012, 10:54:38)
[GCC 4.2.1 Compatible Apple Clang 3.0 (tags/Apple/clang-211.11)]
15:16:41 PlexConnect: Host OS: darwin
15:16:41 PlexConnect: IP_self: 192.168.2.46
15:16:41 DNSServer: started: 15:16:41
15:16:41 DNSServer: ***
15:16:41 DNSServer: DNSServer: Serving DNS on 192.168.2.46 port 53.
15:16:41 DNSServer: intercept: [‘trailers.apple.com’] => 192.168.2.46
15:16:41 DNSServer: restrain: [‘mesu.apple.com’, ‘appldnld.apple.com’, ‘appldnld.apple.com.edgesuite.net’] => 127.0.0.1
15:16:41 DNSServer: forward other to higher level DNS: 8.8.8.8
15:16:41 DNSServer: ***
15:16:42 WebServer: started: 15:16:42
15:16:42 WebServer: ***
15:16:42 WebServer: WebServer: Serving HTTP on 192.168.2.46 port 80.
15:16:42 WebServer: ***
15:16:42 WebServer: started: 15:16:42
15:16:42 WebServer: Failed to access certificate: /private/var/stash/Applications/PlexConnect/assets/certificates/trailers.pem
15:16:42 PlexConnect: WebServer_SSL not alive. Shutting down.
15:16:42 PlexConnect: Shutting down.
15:16:43 WebServer: Shutting down.
15:16:46 DNSServer: Shutting down.
15:16:47 PlexConnect: shutdown
15:16:47 PlexConnect: shutdown
I’m testing this auto update.plist on my appletv now to see if it can pull updates on its own. Once I know it works for sure I will include it into the .deb eventually. It’s should be as easy as just reinstalling the .deb once I know it works. I don’t want to push out something that could cause issues.
Hello good sirs!
wahlman, I have been trying to get this thing to run for three days now without any luck and I really didn't want to post for requests as I wanted to get it running on my own. I am by no stretch an expert nor do I have basic knowledge. What I know about these things and these type of systems is closely described as simple. So, again, for three days I've been trying to get this to work, with no luck whatsoever. Between having re-jailbroken the device in-between each try, and trying for over twenty times (as to do it with a clean system) I was nearly close to giving up.
Your .deb works flawlessly and I salute you sir. Much thanks to Baa and f00b4r aswell as roidy.
I have two minor, hopefully unrelated, issues. Please see if you can help me with these.
1) PlexConnect is running (from what I understand it to be what you peeps refer to as addsite). I have logged in to MyPlex. However it does not discover my Library. I run PMS on a PC and the only use I have for PlexConnect is to run it locally. I'm guessing this has to do with stuff in Settings.cfg. -- [Edit] Solved this by changing ip_pms from 127.0.0.1 to local IP of the PC running PMS.
2) Whenever I try to install a new package, for example irssi, I do apt-get install irssi and the following error pops up:
I have issues with it as well. As long as plexconnect runs I wouldnt worry about it. Someone prior found a fix if you really want to fix the dependencies earlier in this topic but it is not required. Something with SQLite and another one that I cannot recall off hand.
I have issues with it as well. As long as plexconnect runs I wouldnt worry about it. Someone prior found a fix if you really want to fix the dependencies earlier in this topic but it is not required. Something with SQLite and another one that I cannot recall off hand.
You are correct and It works as intended. I will search for that fix though and give it a go just because :)
Thanks heaps for this, one more time!
[Edit] Some googling led me to apt-get -f update && apt-get -f upgrade. Worked like a charm!
I have included @ComputerSteve's python fix to complete the python install to allow aTV flash black to install and correct all dependencies that were an issue previously. Follow these easy terminal commands after you sftp over the *plexconnect.deb and *python_2.7.3-3_iphoneos-arm.deb to your atv2 (filezilla). I have installed this on multiple atv2's and so have others, set your dns to auto not manual. This automates nearly the entire aTV plexconnect installation for you. ssh into atv after you copied over the files and enter these commands after your navigated to the folder where you placed them:
rm -f ~/.ssh/known_hosts
echo "deb http://apt.awkwardtv.org ./" > /etc/apt/sources.list.d/awkwardtv.list
apt-get update
apt-get upgrade
apt-get install git
dpkg -i python_2.7.3-3_iphoneos-arm.deb <------copy over python_2.7.3-3_iphoneos-arm.deb to atv via sftp prior to running this command (use filezilla or another sftp program)
dpkg -i plexconnect.deb <------copy over plexconnect.deb to atv via sftp prior to running this command (use filezilla or another sftp program)
##once complete the aTV will reboot and you will have a new plexconnect button. Just sign into myplex and you should be all set.
Then to update:
cd /Library/LaunchDaemons
launchctl unload com.plex.plexconnect.bash.plist
cd /Applications/PlexConnect
git pull
cd /Library/LaunchDaemons
launchctl load com.plex.plexconnect.bash.plist
Nice if this fixes all the error messages but a cpl of questions:
- what’s in the deb that is different from copying over the usual zip from Github (does it remove sons of the install steps or fix other issues)?
- does the deb do a git pull before starting PlexConnect?
- the info above suggests doing a git pull to update whilst PlexConnect is running, surely you need to unload and restart it?
What it basically does when you dpkg -i plexconnect.deb is a git clone for plexconnect since I was able to figure out the proper code for cloning on ios devices:
git clone git://github.com/iBaa/PlexConnect.git
after it clones to /Applications/PlexConnect it copies the proper hosts file to / then it copies a settings.cfg to the cloned plexconnect dir to find the correct folder locations it needs to run plexconnect. It creates a random cert since I wasnt able to figure out why it wouldn’t run without so I figured out whats the difference its not hurting anything just having a random cert. It then installs a plist to autostart plexconnect and a new plexconnect button then finally reboots the atv since it needs to be for the new button to appear just like addsite requires you to do when you add a new site (button). Once it boots back up you are welcomed with a new plexconnect button (app) and the last thing you need to do is set dns to auto and sign into myplex. If you have a way of disassembling the plexconnect.deb you can look at the control files they tell you what it does in more detail but thats the basics of it. If you have installed plexconnect prior on your atv2 just trash the folder and run this deb and it should correct everything and allow for updates via git pull. I made this only for use of the plexconnect button so trailers is left un hijacked to automate the entire install with just one .deb after the dependencies are met. Thanks to @computersteve they now are and atv flash black is working 100% since python is properly installed now. To answer your last question you shouldn’t need to stop plexconnect if its running since the deb will correct the plist and reboot the atv. Just uninstall the old folder and run the plexconnect.deb and it should fix itself upon reboot.
Im looking into making a separate autoupdate.deb or including it in the original plexconnect.deb but I want to test it out and make sure its working before I release it. I’m not sure if I should make it optional or not. So far all the test I ran look good but im looking into a different update scheme that will check for updates instead of unloading the plist doing a git pull then loading it back up to check every time. I want it to check and either say no updates available or if there is a update then unload---->git pull—>then reload the plist.