PlexConnect on aTV2/jailbroken -> launchctl

If using 5.1 then you need to use play rather than select to skip the pre play screen.
Jailbreak for latest OS should be out in a week so maybe worth upgrading soon :wink:


Maybe… I don’t know sincerely…

If using 5.1 then you need to use play rather than select to skip the pre play screen.
Jailbreak for latest OS should be out in a week so maybe worth upgrading soon :wink:

Ohh thank you, using play only and skipping pre play it works!!! Thx :slight_smile:


Sent from my iPad using Tapatalk

Nice... have never seen this one before.
- used in the PreplayScreen - isn't supported on aTV firmwares before 5.1 or so... Which version are you running?


So as Baa said instead this is raised when the client OS does not support the preplayscreen so on the listed item just click the play button on the ATV remote not the select and the file should just play.

never mind found it 

So as Baa said instead this is raised when the client OS does not support the preplayscreen so on the listed item just click the play button on the ATV remote not the select and the file should just play.

The Jan 2nd 2013 commit removed this issue and the pre-play screen will work on 5.1 now with one caveat, there is no facility to change the audio/subs track as the button has been removed (as 5.1 users could not use the pre play screen anyway there is no negative impact to this commit).

This is how I was able to get PlexConnect running on my atv2s on the new iOS 5.3 untethered. I copied over via sftp the PlexConnect folder with my trailers.pem & python also from the OP. Once they were in place I fired up a ssh session and installed python using these commands:


dpkg -i python…

apt-get -f install

apt-get update

apt-get upgrade

cd /Applications/PlexConnect

chmod +x PlexConnect.py

chmod +x PlexConnect_daemon.py

cd support

cd OSX

chmod +x PlexConnect.bash

chmod +x createcert.bash

chmod +x install.bash

chmod +x restart.bash

chmod +x uninstall.bash

./install.bash

cd …

cd aTV_jailbreak

chmod +x install_button.bash

./install_button.bash


I then used sftp to copy over my modified settings.cfg shown below. After this was done I restarted my aTV by unplugging the power cord and plugging it back in. Onceit booted up everything worked perfectly. I’m sure you could do away with some of these commands or do a different method but I’m just saying what worked for me. I also use my aTVs remotely so my setup my differ from yours, but here is my settings.cfg:


[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

Looks like you cannot even add the addsite.mc profile on atv2 5.3 untethered it won’t allow the profile, I will have to look into fixing that :wink:


Edit: Looks like spoofing to from 5.3 to 6.1 brings back addsite if anyone needs it.


@m.abrahams remove trailers.apple.comwhere it says ip_pms = 127.0.0.1 <--------ONLY


EVERYTHING is false except for the prevent atv update is set to true.


I don’t know what you are doing to your hosts file here is mine that works on 5.3:

hosts.zip


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


Best way so far that I know is to just delete the old copy of plexconnect and sftp a new one over. Im working on fixing it on OSX no time frame when it will be done…Just backup your settings.cfg and trailers.pem then once you update run plexconnect once then copy those files back to your atv then powercycle or restart form the settings menu.

https://forums.plex.tv/topic/94954-plexconnect-automatic-updater-osx/


Not if you backup your trailers.pem and settings.cfg, no. Just run ./plexconnect.py after you copy over the new commit of plexconnect (updated code).

i followed the steps above. when i click on plexconnect logo on ATV i get plexconnect is unavailable. i have 127.0.0.1 trailers.apple.com in the host file and its still not working.. 

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             localhost 
fe80::1%lo0	localhost
127.0.0.1	mesu.apple.com
127.0.0.1	appldnld.apple.com
127.0.0.1	appldnld.apple.com.edgesuite.net
127.0.0.1       atv.plexconnect
[PlexConnect]
enable_webserver_ssl = False
logpath = .
enable_dnsserver = False
prevent_atv_update = True
port_dnsserver = 53
enable_plexconnect_autodetect = True
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
ip_pms = 127.0.0.1
enable_plexgdm = True
port_ssl = 443
hosttointercept = localhost

this is my host and my settings.. what am i doing wrong?

thank you that worked!

also, i like to stay current on the builds.. how do i update when theres a new build?

do i have to go through the install process each time?

thank you that worked!

also, i like to stay current on the builds.. how do i update when theres a new build?

do i have to go through the install process each time?

no

just remove the old build and save ur certs/setting then ssh in the new one and start it up :)

i just tried to install it on my parents apple tv and i know i have the settings right. is there anything else that i could be missing? im getting the unavailable again


Are the certs in the proper folder?

It was an issue with python not installing correctly we already fixed it yesterday :wink:

This is how I was able to get PlexConnect running on my atv2s on the new iOS 5.3 untethered. I copied over via sftp the PlexConnect folder with my trailers.pem & python also from the OP. Once they were in place I fired up a ssh session and installed python using these commands:

dpkg -i python........
apt-get -f install
apt-get update
apt-get upgrade
cd /Applications/PlexConnect
chmod +x PlexConnect.py
chmod +x PlexConnect_daemon.py
cd support
cd OSX
chmod +x PlexConnect.bash
chmod +x createcert.bash
chmod +x install.bash
chmod +x restart.bash
chmod +x uninstall.bash
./install.bash
cd ..
cd aTV_jailbreak
chmod +x install_button.bash
./install_button.bash

I then used sftp to copy over my modified settings.cfg shown below. After this was done I restarted my aTV by unplugging the power cord and plugging it back in. Onceit booted up everything worked perfectly. I'm sure you could do away with some of these commands or do a different method but I'm just saying what worked for me. I also use my aTVs remotely so my setup my differ from yours, but here is my settings.cfg:

[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

Just sftped the python deb file to my atv but when i try to install it i get this : root# dpkg -i python_2.7.3-3_iphoneos-arm.deb

Selecting previously deselected package python.

(Reading database ... 1267 files and directories currently installed.)

Unpacking python (from python_2.7.3-3_iphoneos-arm.deb) ...

dpkg: dependency problems prevent configuration of python:

 python depends on libffi; however:

  Package libffi is not installed.

 python depends on sqlite3; however:

  Package sqlite3 is not installed.

dpkg: error processing python (--install):

 dependency problems - leaving unconfigured

Errors were encountered while processing:

 python

is there a complete guide for the installation that sums up all changes since the atv 5.3 is untethered?

If you followed that guide everything would have worked. Your next terminal step is:


apt-get -f install


Once you do that continue the on down the command list.

Ok got it working now. Feels like a charm. Finally no more need of plexify etc. But how do i update the PlexConnect without doing all the steps again ?

Did i recent commit brake this hack? I tried updating my Plex on my atv but now i cant save the config file. After every reeboot i comes back to standard settings and localhost dont seam to stick anymore… I tried to kill the process in terminal and started it manually… No action whatsoever in the window when i try acess the app

Hm, still runs on my machine...

Are editing the Settings file in /support/aTV? It gets copied into the main PlexConnect directory at install. The recent additions have to manually get added to the main Settings file - or just uninstall, delete /PlexConnect/Settings.cfg and install again?

I'm not sure  what I'm doing wrong. I get the error message "PlexConnect is unavailable. Try again later." when i click the installed button. trailers.pem is in the certificates folder. My dns hasn't changed from automatic.

this is my settings.cfg in the main directory and the ./support/aTV_jailbreak directory:

 
[PlexConnect]
enable_dnsserver = False
enable_plexconnect_autodetect = False
ip_plexconnect = 127.0.0.1
hosttointercept = localhost
port_pms = 32400
port_webserver = 80
certfile = ./assets/certificates/trailers.pem
ip_dnsmaster = 8.8.8.8
loglevel = Normal
logpath = .
ip_pms = 127.0.0.1
enable_plexgdm = True
port_ssl = 443
enable_webserver_ssl = True
prevent_atv_update = True
port_dnsserv
 
I'm using untether 5.3 with aTV flash black installed.

I did remove the whoöe folder and added it like 10 times… Still no go :frowning: only trailers unavalible… I tried both copy the setting file and editet it… Still changes it back… Baa have u tried some of the recent commit on yours? Mine worked until i decided to upgrade to new commit last night… I read the previous changelog on github… Saw something with settings change… If i have something else that some value it changes back to standard