PlexConnect on aTV2/jailbroken -> launchctl

Wahlman. Grand meister. Any way to “unspoof” without having to re-jailbreak? :slight_smile:

yes. look in this topic for the location of the spoofed info.plist and set it back to 5.3 by using filezilla to download then reupload it back to your atv:

https://forums.plex.tv/topic/81972-installing-a-new-app-on-appletv-without-hijacking-trailers/

Its in the middle of the topic somewhere. I do not have a backup sorry.

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.

I got round to re-JB'ing my ATV2 to 5.3 after running it on stock 6.0+ for the last few months.

Such a huge difference it makes having its own icon on the home screen and being more responsive than my old PlexConnect proxy running on the same server as PMS!

About the only think I miss is being able to hide home screen icons as you can on the latest iOS builds, but I can live without that for now. Having a much more native experience of running Plex on my ATV2 more than makes up for it :)

Thanks again.

I got round to re-JB'ing my ATV2 to 5.3 after running it on stock 6.0+ for the last few months.

Such a huge difference it makes having its own icon on the home screen and being more responsive than my old PlexConnect proxy running on the same server as PMS!

About the only think I miss is being able to hide home screen icons as you can on the latest iOS builds, but I can live without that for now. Having a much more native experience of running Plex on my ATV2 more than makes up for it :)

Thanks again.

You can still hide them under the parental controls settings  ;)

I just wanted to say thanks to wahlman.j, Baa, f00b4r and everybody else that contributed to this thread. It took a while to read through everything and figure out what was the final list of steps, but the tutorial in post #231 worked great. I still got a few dependency errors with the git, sqlite and python installations, running those apt-get and dkpg commands in different orders repeatedly eventually got everything installed.

It's great to have Plex back on my ATV2 as its own app, without having to hijack other apps or having to change DNS settings. Since my Plex server is not always running, the latter was causing issues with Airplay not working properly. Now everything is perfect!

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 atv:

update.bash

Outstanding work!!! Thank you very much for your efforts in bringing PlexConnect to the (jailbroken) AppleTV2 itself. I followed above post instructions to the letter and everything worked perfectly in the first try. It's much more convenient to have everything running from the little black box. I just donated a few bucks as a token of my appreciation for your work.

Thank you once again.

Hello wahlman.j,

Is it possible to change the web server port to 81 or something in order to avoid conflicting with AirControl? I seem to remember that in the original PlexConnect setup (away from the AppleTV itself), there was a settings.cfg file with different settings (port_webserver, port_dnsserver, etc.). Would it be as simple as to download the same file from the AppleTV with Filezilla, change the web server port and upload it back? If so, where exactly on the AppleTV are the files located? 

Thanks in advance.

UPDATE: I located the files in /Applications/PlexConnect and tried changing port_webserver from 80 to 81 in Settings.cfg , rebooted the AppleTV and AirControl was once again functional. Unfortunately, PlexConnect did not work anymore. Every time I try to run it I only get the "PlexConnect is unavailable, try again later." message...

Then, I tried changing the port_webserver setting in Settings.py, deleted Settings.pyc, ran command python -m py_compile Settings.py from the AppleTV command prompt so  Settings.pyc would be recreated, deleted Settings.cfg, rebooted again and verified that Settings.cfg was recreated as in the first run. I also verified it now included the new port_webserver setting I defined in the Settings.py script. Too bad it still doesn't work and the AppleTV throws back the same error message as above.

Granted, I'm no python developer, but a little googling brought me this far. Of course, there is something I must be missing. 

Any help would be much appreciated, as I would like to run PlexConnect on the AppleTV itself, while keeping AirControl, in order to use automation already in place.

You can only change port 80 if you use a reverse proxy so the ATV doesn’t notice.

You can only change port 80 if you use a reverse proxy so the ATV doesn't notice.

Thanks for your message. I've been reading several posts about running PlexConnect on OS X Server and was wondering how to do the same on the AppleTV itself. Any suggestions on WHERE the AppleTV AirControl web server config files are located would be much appreciated. I couldn't figure this myself.

Thanks for your message. I've been reading several posts about running PlexConnect on OS X Server and was wondering how to do the same on the AppleTV itself. Any suggestions on WHERE the AppleTV AirControl web server config files are located would be much appreciated. I couldn't figure this myself.

TBH i don't know the answer to that but maybe the folks at the Firecore forum would be able to shed some light on that if noone here can.

Thanks again for your help. I have already posted there as well. Let's hope someone knows how to accommodate both services.

I found a easy looking tutorial video in regards to running a Webserver on a atv2. I imagine you would still need to edit httpd.conf to change the listening port from 80 but it may open up some doors if anyone wants to try it:


Thanks!

The domain ioserver.it seems to be unavailable. Will try again later.

Now, I do not speak italian, but by pausing the movie and displaying it in full screen, I was able to read the italian web server description, while the operator was copying the link to paste over the terminal screen. My confessed poorly understanding was that the script supposedly disables normal AppleTV functionality, in order to free needed memory. If that is true, the web server won't be useful for my purposes.

Just be careful, the ATV is a low power device (a lot of the media stuff is hardware decoded) so you will start hitting a wall if you keep adding more and more services to it.

Ya, I’ve seen a lot of reboot running xbmc and more apps/services on the aTV2 due to the memory issue. I meant for the webserver video as a test option for everyone wanting to try it out, I assume you can remove it also, I hope.

hi, i would like to put plex on my apple tv 2 (jailbreak) but i don't know, where i put this files https://www.dropbox....iog2/Z648L43AZN to my appletv (filezilla) and after on terminal i run just this 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 

 

and it's good ?? Thanks in advance

Download filezilla and connect to your Appletv IP address to sftp the files over for example if this was your ip


192.168.1.101 user=root password=alpine port=22


Then to enter command you need to ssh over to the appletv after you installed nitotv on it then enter the other terminal commands on a mac you enter this for an example to connect to your appletv:


ssh root@192.168.1.101

thank you, but i would like to know where i put the files on filezilla https://www.dropbox....iog2/Z648L43AZN ?? On Var/mobile/Applications ? 

This is were I put them once I ssh in as root:

cd /Applications

then I just follow the post I created earlier.