PlexConnect on aTV2/jailbroken -> launchctl

1st of all, thank you all! I need to get a few bucks going out here soon.

2nd, it all went well till the end when I ran the plexconnect.deb. I have a fresh 5.3 jailbreak using Firecore.

Here is the output:

Apple-TV:/var/stash/Applications root# dpkg -i plexconnect.deb
(Reading database ... 3398 files and directories currently installed.)
Preparing to replace plexconnect 3.1+ (using plexconnect.deb) ...
Unpacking replacement plexconnect ...
Setting up plexconnect (3.1+) ...
/var/lib/dpkg/info/plexconnect.postinst: line 5: git: command not found
./._PlexConnect
PlexConnect/
PlexConnect/._.DS_Store
PlexConnect/.DS_Store
PlexConnect/._.gitignore
PlexConnect/.gitignore
PlexConnect/._hosts
PlexConnect/hosts
PlexConnect/._python_2.7.3-3_iphoneos-arm.deb
PlexConnect/python_2.7.3-3_iphoneos-arm.deb
PlexConnect/._Settings.cfg
PlexConnect/Settings.cfg
/var/lib/dpkg/info/plexconnect.postinst: line 7: cd: /Applications/PlexConnect/support/OSX: No such file or directory
chmod: cannot access `createcert.bash': No such file or directory
chmod: cannot access `install.bash': No such file or directory
/var/lib/dpkg/info/plexconnect.postinst: line 10: ./createcert.bash: No such file or directory
/var/lib/dpkg/info/plexconnect.postinst: line 11: ./install.bash: No such file or directory
/var/lib/dpkg/info/plexconnect.postinst: line 12: cd: /Applications/PlexConnect/support/aTV_jailbreak: No such file or directory
chmod: cannot access `install_button.bash': No such file or directory
/var/lib/dpkg/info/plexconnect.postinst: line 14: ./install_button.bash: No such file or directory
Apple-TV:/var/stash/Applications root# Connection to 192.168.0.9 closed by remote host.
Connection to 192.168.0.9 closed.

Any idea how to correct it? I seems like a bit is missing from the folder

Edit: I took a look and it looks like the PlexConnect folder only has a "hosts" file, python_2.7.3-3_iphoneos-arm.deb, and a "Settings.cfg". Where are the other suppose to come from? Side note, first time running dpkg for python 2.7.3 it had a dependency issue but 2nd time it ran just fine.

Restore your aTV to 5.3 then follow post 231 for the best results. You can try to fix it manually but a fresh restore should guarantee a successful new plexconnect app. Everything is automated by the .debs I made. From your logs it looks like you didn’t install git which is outlined in post 231 prior to using the .debs I created to automate the install.

Restore your aTV to 5.3 then follow post 231 for the best results. You can try to fix it manually but a fresh restore should guarantee a successful new plexconnect app. Everything is automated by the .debs I made. From your logs it looks like you didn't install git which is outlined in post 231 prior to using the .debs I created to automate the install.

Hmm.. ran it again copy and pasting and it worked this time. I must have messed something up last time. wahlman.j you my friend will be getting some beer bucks next weekend! Thank you so much for all you're doing for the community.

Thank you wahlman.j the instruction for Plex Connect install were easy to follow and i'm up and running. One question I haven't touched Settings.cfg located /private/var/stash/Applications/PlexConnect, but my ATV2 keeps notifying me of IOS updates being available. The only way I have stopped them is by modifying hosts file located /private/etc and adding the following lines to the bottom of it. Will this effect the ability for Plex Connect to Auto Update? I would like to have everything Auto Update except IOS.

127.0.0.1 appldnld.apple.com
127.0.0.1 mesu.apple.com
127.0.0.1 appldnld.apple.com.edgesuite.net

EDIT: ATV2 Network DNS setting is on Automatic but the IP address is public DNS server is this the problem?

Yes thats the lines u wanna edit and no it wont affect ability to update plexcomnect auto, cause plexconnect dont have an auto update function yet :slight_smile:

Ok thanks for letting me know :slight_smile:

Thank you wahlman.j the instruction for Plex Connect install were easy to follow and i'm up and running. One question I haven't touched Settings.cfg located /private/var/stash/Applications/PlexConnect, but my ATV2 keeps notifying me of IOS updates being available. The only way I have stopped them is by modifying hosts file located /private/etc and adding the following lines to the bottom of it. Will this effect the ability for Plex Connect to Auto Update? I would like to have everything Auto Update except IOS.
 
127.0.0.1 appldnld.apple.com
127.0.0.1 mesu.apple.com
127.0.0.1 appldnld.apple.com.edgesuite.net
 
EDIT: ATV2 Network DNS setting is on Automatic but the IP address is public DNS server is this the problem?

When you run the plexconnect.deb it edits the settings.cfg to prevent appletv updates. Also if you install nitotv it prevents updates as well. If you have a jailbroken ios device you can install nito installer and it will install the update prevention for you:

![post-137692-0-98511200-1399507285.jpg|666x500](upload://xwQaSfPli8MsvWvMiFgKPX1oxVb.jpg)

Nito installer is available for windows and mac as well. Just search for it using google or something.

Yes I noticed the settings.cfg had the option to prevent ATV updates. It was set as per default, I didn’t change anything in the .cfg file, but I was still getting the ATV new update notifications? Anyway I modified the hosts file and all good now.


I was concerned if changing the hosts file would disable auto update of Plex Connect but it appears that is not currently available.

You can update if a update is available if you type this if you ssh into your atv:


update.bash


Or:


cd /Applications/PlexConnect

git pull


Assuming you installed my plexconnect.deb which clones baa’s github.

Thanks I’ll use update.bash when I see a newer version has been released. Appreciate your assistance the install process was super easy.

Fixed post #219

I have also included a easy spoof.deb in my dropbox to get all newer apps automatically. Im working on a autoupdate.deb so it will either update on its own or you can manually update by just typing this anywhere in terminal instead of doing post 219 to make it easier to update (nitoTV is the easiest way to install openssh for ssh access):

ssh root@ATVIP
## alpine
update.bash

Hopefully the plist will update automatically once implemented. I need to test still to see if it is or not but for the meantime you should be able to do use the instructions above to update manually once I release the autoupdate.deb for the time being.

edit - autoupdate.deb has been uploaded to my dropbox.

I finally found the correct sqlite3.deb's they are now in my dropbox also :D :D

https://www.dropbox....iog2/Z648L43AZN

---------------------------------------------------------------------------------------------------------------------------------------------

I hope this is the last tutorial I need to give on how to install this on iOS 5.x:

Follow these easy terminal commands after you sftp over all the desired .debs from here https://www.dropbox....iog2/Z648L43AZN 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 (nitoTV is the easiest way to install openssh for ssh access):

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

apt-get -f install

apt-get install git

dpkg -i sqlite3-lib_3.5.9-2_iphoneos-arm.deb

dpkg -i sqlite3_3.5.9-12_iphoneos-arm.deb
dpkg -i python_2.7.3-3_iphoneos-arm.deb

apt-get -f install

dpkg -i sqlite3-lib_3.5.9-2_iphoneos-arm.deb

dpkg -i sqlite3_3.5.9-12_iphoneos-arm.deb

dpkg -i python_2.7.3-3_iphoneos-arm.deb

dpkg -i autoupdate.deb
dpkg -i plexconnect.deb
##once complete the aTV will reboot and you will have a new plexconnect button. Just sign into myplex and you should be all set.

##Optional log back in to your atv via ssh after your atv reboots and type this if you want more apps by spoofing your iOS version to a higher IOS after navigating to the spoof.deb location:

dpkg -i spoof.deb

Hopefuly the autoupdate plist works if not you can manually update by typing this into a terminal window after you ssh into your a

tv:

update.bash

I was directed here to try these debs and commands to install PlexConnect on my ATV2 and install the plex button, but it didn't work unfortunately. Here's the log from the terminal command session. I'm a little lost as to where I went wrong. I have the ATV2 jailbroken to 5.3 using the Seas0npass.

UPDATE: I did a fresh install of the jailbreak 5.3, and followed all commands above. The button installed perfectly. Only problem now is that, after installing the button, restarting, then installing the certificate on the ATV and changing the DNS configuration over to Manual with the correct IP, I get "PlexConnect: No Plex Library Sections Available". I know my PMS is up and running because I can access it on the other ATV2 that didn't follow the commands above (just using the Trailers button), and my other devices can access the PMS as well.

I really appreciate the amazing work you've done, but I just can't seem to get it to discover my PMS. Please help!

UPDATE #2: I repeated the steps, but installed the trailers cert on the ATV before terminal commands and it wound up working after signing in to MyPlex. I now have two separate buttons, PlexConnect and Trailers, both of which work :) Thanks again for the hard work!

Thank you very much for the info. Hopefully it will come to help someone else.

I wanted to unspoof to see if it fixed some weird error that Netflix was throwing at me. An ATV-ui511:mdp. Incredibly annoying, plus things were running pretty slow for me and I was too anxious to wait for your answer so I've spent the last hour and a half to re-jailbreak and re-install. Your .debs are really wonderful in this aspect. Everything is up and running. Netflix works fine. PlexConnect works great.

Plus, I came to find out that the spoof had absolutely nothing to do with the Netflix errors. While setting things up in Settings.cfg (yes, I'm one of those -- I need to enable GDM) I came across ip_dnsmaster and I had totally forgotten that it runs on 8.8.8.8 by default. I'm pretty confident this is what was causing the Netflix errors, for some odd reason.

Anyway. Just thought I'd share if someone else was going through the same thing.

After installing PlexConnect on the ATV2 and installing the spoof.deb, I'm getting the same thing. I had one question, what should the ip_dnsmaster be set to? My local DNS settings that I used in the Manual DNS change of the Wi-Fi settings? My ISP's DNS? I just wanted to make sure so I can avoid any possible issues I'm unaware of that you guys might know about. Also, is there more than one Settings.cfg file on the ATV2? Just wondering which one I should aim for :)

Update: Just changed the Settings.cfg in the Applications/PlexConnect folder on my ATV to my ISP DNS and still nothing. Netflix will not let me view previous viewed video, same error message.

I could really, really use some help on this as I don't want to give up Netflix.

If you atv dns is set to auto in the ATV settings itself not plexconnect Netflix should work afaik unless your geographical area makes you only use 8.8.8.8 for DNS and then leave your ip set to dhcp. If anyone knows this better that lives outside of the USA please feel free to correct me.

If you atv dns is set to auto in the ATV settings itself not plexconnect Netflix should work afaik unless your geographical area makes you only use 8.8.8.8 for DNS and then leave your ip set to dhcp. If anyone knows this better that lives outside of the USA please feel free to correct me.

I live within the US, and I tried the dns auto trick already (I found a similar post you made searching around earlier) and it still didn't work. I tried it with ip_dnsmaster set to 8.8.8.8.

I wish i could help you further. I hate to ask again but if you restore to 5.3 then attempt to use netflix without installing the .debs does netflix work?

I wish i could help you further. I hate to ask again but if you restore to 5.3 then attempt to use netflix without installing the .debs does netflix work?

It did. I might restore back to 5.3 and not install the .debs this time around. Is there anyway to install just the PlexConnect button and title for the Trailers app without installing all the other .debs?

You can look at baa’s original method. I dont use netflix so i couldn’t tell you what is causing the issue. Now that i use plexconnect, personally i dont see a point :stuck_out_tongue: there is a lot of info in here. Try the restore first and see if it works. If it does goes from there. Try,to,narrow down what exactly kills netflix doing each step one by one be it baa or my .debs.

You can look at baa's original method. I dont use netflix so i couldn't tell you what is causing the issue. Now that i use plexconnect, personally i dont see a point :P there is a lot of info in here. Try the restore first and see if it works. If it does goes from there. Try,to,narrow down what exactly kills netflix doing each step one by one be it baa or my .debs.

Got my weekend project :) I'll report back each step of the way on what works and what doesn't.

I use netflix without any issues… Try the orginal way and report back

I use netflix without any issues.. Try the orginal way and report back

When you say original way, do you mean you didn't install the .deb files on the ATV? Do you have the PlexConnect button installed? or do you still access PlexConnect via the Trailers button?