PlexConnect on aTV2/jailbroken -> launchctl

Thanks for your help. I am bit confused now, don't I need to have PlexConnect running on my MacMini to be able to use PMS on the aTV? If I just install PlexConnect on aTV would it be able to see PMS? If this was the case, then why isn't PlexConnect finding my PMS?

No you don't need to have PlexConnect running on the MacMini if you are installing PlexConnect on your jailbroken ATV.

If you just install PlexConnect on your aTV following Wahlman.J's instructions and logging into MyPlex, you will see your PMS server. If not, you could edit the file "Settings.cfg" on your aTV and change the value of the field "enable_plexgdm" from False to True.

The PlexConnect Wiki (at https://github.com/iBaa/PlexConnect/wiki) contains all the necessary information concerning the configuration file "settings.cfg".

Thank you both so much for helping me out. I changed the enable_plexdgm to True and it worked.

One last question, why do we need to log into MyPlex and if i am on a local network is it using my data bandwidth?

Thanks,

The idea of logging into MyPlex serves two purposes:

  • First to have access to shared servers,
  • Second to have access to your servers when you're not on your LAN. You can take your jailbroken ATV with PlexConnect on it, go to someone else with a wi-fi, connect on the wi-fi (maybe change the ATV IP-Address, I'm not sure), and you have access to your Media remotely on a television.

Hope that helps

Happy to report playlists are now working using the latest commit outside my lan now, not sure why they didn’t before. Great work :wink:

Good night

I am very new in this. Do not find the route cd/applications in my Atv2 

It can explain where to place the files dropbox

Not as installing the files .deb

Last login: Wed Dec 24 00:17:29 on ttys000
iMac-de-Juanma:~ JuanmaRivero$ ssh root@192.168.1.42
root@192.168.1.42's password: 
Apple-TV:~ root# dpkg -i sqlite3-lib_3.5.9-2_iphoneos-arm.deb
dpkg: error processing sqlite3-lib_3.5.9-2_iphoneos-arm.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 sqlite3-lib_3.5.9-2_iphoneos-arm.deb

Thank you very much

P.D Forgive my language

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

Use putty for windows, a terminal for OS X or linux, or this for iOS Serverauditor

ssh root@ipaddress    <--------replace ipaddress with your aTV ip address for example mine is ssh root@192.168.1.101

default aTV password = alpine

Follow these easy terminal commands. 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 your Atv 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, also server auditor ):

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

cd /Applications

git clone git://github.com/wahlmanj/atvjailbreak.git

cd /Applications/atvjailbreak

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

You must be successfully signed into myplex in PMS. Also you must have your port forwarded and pointed at your PlexConnect host for this to work right on your router tcp/udp. If PlexConnect resides behind for example a synology box you must open these ports as well for it to work outside your lan tcp/udp.

If you do not require it to work outside you lan edit your settings.cfg file on the aTV to enable_plexgdm = True

@wahlman.j 

Thank you very much for his response.

I'm very awkward in this

ssh ok 

It does not leave me to create directory in Root /Applications in my Atv2 

His manual I understand it very well.

The problem this one in creating the directory.
I do not understand this very awkward step You forgive
 
¡¡¡ Happy Christmas ¡¡¡

The /Applcations folder is already there just type this to access it once u copy the .debs to it:

cd /Applications 

If you want you can Install teamviewer, click my username and send me a message with the temporary teamviewer ID and password and I will take a look. My method is a modified version of baa's original method. You can use the official method on the first post in this topic as well just make sure all your dependencies are met for it to work. The dropbox link I provided should assist you to correct them if python doest install properly. You need to be sure when installing everything it says python installed in the ssh session. Without that happing you will have issues with aTV flash black, PlexConnect as a host on your aTV among other issues.

The /Applcations folder is already there just type this to access it once u copy the .debs to it:

cd /Applications 

If you want you can Install Teamviewer, click my username and send me a message with the temporary teamviewer ID and password and I will take a look. My method is a modified version of baa's original method. You can use the official method on the first post in this topic as well just make sure all your dependencies are met for it to work. The dropbox link I provided should assist you to correct them if python doest install properly. You need to be sure when installing everything it says python installed in the ssh session. Without that happing you will have issues with aTV flash black, PlexConnect as a host on your aTV among other issues.

Ok install Teamviewer

One moment please

Sorry wasn't sure what OS you were using this link should work better:

teamviewer

Sorry wasn't sure what OS you were using this link should work better:

teamviewer

Thank you very much for his work. Very good person :rolleyes:  :rolleyes:  :rolleyes:

First of all, a very big thank you to Wahlman.j for his great support.

I've installed PlexConnect on my jailbroken ATV2 without a hitch following the above instructions.

I'm not a very big fan of the icon and wouldn't mind replacing it with one of the suggested ones in the "OpenPlex"app.

Is it possible, and if so how ? If it has been already explained, accept my apologies for not finding it.

Is it possible, and if so how ?

ssh into ATV and go to

/private/var/mobile/Library/Caches/AppleTV/MainMenu/PlexConnect@720.png

delete the PlexConnect image and replace it with desired pic

for example

make sure u name the pic correctly

I believe I found an even easier solution to install this I have also included my optional development theme as well that will give you larger posters and a way to merge your local and shared libraries into one tab if desired (All Libraries):

Use putty for windows, a terminal for OS X or linux, or this for iOS Serverauditor

ssh root@ipaddress <--------replace ipaddress with your aTV ip address for example mine is ssh root@192.168.1.101
default aTV password = alpine

Follow these easy terminal commands. 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 your aTV 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, also server auditor ). Paste either of these easy one liners using your favorite ssh client:

iBaa (default) theme:

apt-get -y install git; rm -R /Applications/atvjailbreak; cd /Applications; git clone git://github.com/wahlmanj/atvjailbreak.git; cd /Applications/atvjailbreak; chmod +x installbaa.bash; ./installbaa.bash

or

Wahlmanj (custom) theme:

apt-get -y install git; rm -R /Applications/atvjailbreak; cd /Applications; git clone git://github.com/wahlmanj/atvjailbreak.git; cd /Applications/atvjailbreak; chmod +x installwahlmanj.bash; ./installwahlmanj.bash

##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

## If you need to unspoof the info.plist for the aTV Firmware is here:

/private/var/stash/Applications/AppleTV.app/info.plist

Once unspoofed reboot your aTV for the changes to take affect. Spoofing doesn't work with badges since it changes the firmware to a higher iOS so after you are done I would recommend unspoofing

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

You must be successfully signed into myplex in your PMS. Also you must have your PMS port forwarded and pointed at your PlexConnect host for this to work right on your router if using it outside your LAN. If PlexConnect resides behind for example a synology box you must open these ports as well for it to work outside your lan tcp/udp.

If you only desire PlexConnect to work for your local content and don't use myplex you can ignore the paragraph above this. If you share your content you still would need to be successfully signed into myplex in your PMS with your ports properly forwarded to you PMS host on your router or gateway.

Note - Keep in mind this will prevent AirControl to work since it uses port 80 which is required by PlexConnect.

I had plexconnect running on the same box as the PMS and had the PMS set to require login even for the LAN. On the ATV I had the DNS set to the PMS box. It worked great.

I wanted to be able to move the ATV, so... I tried installing plexconnect on the ATV.
I used the slightly longer set up method(from December 24th).
I set the DNS back to automatic.
I have everything installed, and I can sign in to MyPlex in the PlexConnect app, but the Shared Libraries section doesn't show any libraries.
I've tried signing in/out, and tried restarting the ATV.
I'm on the local network, so there aren't any ports to open/forward (they are already forwarded though too, as I am able to access the PMS when I'm not on the LAN).

Any idea what could be causing problems?

(I've also tried going back to plexconnect on the PMS box (switched ATV to use it for DNS), and now the trailers app doesn't work for accessing the PMS either. The horror!)

You are on iOS 5.2. Personally I would update to iOS 5.3 via DFU mode and start fresh.

Sorry I should have mentioned that I updated to 5.3 via DFU mode before doing any of this.

I’m not sure which method you are using. Personally I prefer baa’s option b PlexConnect button (dedicated app) leaving the native trailers app available using my modified method that requires only ssh. In PMS what do you have the settings set under the network settings for this option:


–List of networks that are allowed without auth

–Comma separated list of IP/netmask for networks that are allowed to access Plex Media Server without logging in.


Typically this is left blank, if you have it filled in this may be the cause of the shared libraries not populating. Sounds like PMS or your network is the culprit not the aTV if you are using either option/method and have restored it to a fresh iOS 5.3 via DFU mode.

GDM is enabled, and the list of networks that are allowed without auth is blank.

When I upgraded the ATV to 5.3 via DFU I didn't make any changes to the network or the PMS. So, the ATV is the only thing that's changed.

I did try restarting the PMS and the ATV with no luck.

Before upgrading the ATV I was using PlexConnect v0.3.1 without any problem since it came out (PlexConnect on the PMS system, setting ATV's DNS server manually).

This is quite vexing.

So what are you using now just to be clear iOS 5.3, iBaa 0.5-dev latest commit (version) or my custom fork (theme), option b using his method or my modified method based on his original method, aTV DNS set to auto/manual? You also said your library (owned) tab is working, just not the shared library tab when signed into myplex? I still think your network layout/settings or PMS or PMS Host is the culprit. Is your PMS properly signed into myplex, are you using the latest version of PMS? Can you sign in and out of myplex in PMS and ensure your port forwarding is properly set on your router or gateway? What is your network layout exactly from aTV to router, router to PMS, ethernet/wifi. Any new/existing settings on your PMS host like internet sharing, firewall, antivirus, VPN, Virtual machines? The more details you can provide the better. Reboot all your devices aTV, PMS host, router/gateway, etc.

I can switch between baa's github or my custom fork on multiple aTV2's and other users have successfully installed this on iOS 5.3 so the issue very likely lies with your settings/network/PMS/PMS host.