PlexConnect command not found

Hello!

 

I'm having a very difficult time getting PlexConnect installed.  I'm attempting to install it on a MacMini OSx 10.6.8 which is where my PMS currently resides.  I have dowloaded PlexConnect and placed it in the applications folder and have successfully created and placed the cert files.  My problem is occurring when trying to run the sudo "/Applications/PlexConnect-master/PlexConnect.py" command in terminal.  I get a command not found error.  I have followed this threads advice and am still getting the same error:  

 

https://forums.plex.tv/topic/92128-new-bee-can-not-connect-via-terminal/

 

I have downloaded Python version 2.7.6

 

I am able to change to the PlexConnect-master directory and the PlexConnect.py file is clearly in that folder but I continue to get the same error message.  

 

I am trying to use it with a jailbroken ATV2 running 5.3.  I used aTV Flash thinking it would install Plex but apparently it doesn't... 

 

Any help would be greatly appreciated!

 

Thank you

Okay, so I found this link to help with putting plexconnect on the jailbroken ATv2.  I've installed Python but am confused at the next step.

https://github.com/iBaa/PlexConnect/tree/master/support/aTV_jailbreak

My guess: You system doesn't know "python"...

Try to launch python from the terminal - how does that work out?

Other possibility: PlexConnect.py is not "executable", you should be able to fix that using "chmod". Or work around it using "sudo python ./PlexConnect.py"

I have combined @computersteve’s, baa’s, and my own modifed plexconnect.deb (automatic plexconnect installation method) to get plexconnect installed on the atv2. I also figured out how to get python properly installed on the atv. Restore your atv to ios 5.3 jb with seasonpass and install nitoTV then follow this guide exactly. If it doesn’t work after you are done download the setting.cfg from your atv2 (located at /Applications/PlexConnect) to your computer and choose plexgdm=true but ONLY if it doesnt work then reupload it to your atv and reboot/restart (power cycle) your atv. You must sign into myplex for the tabs to populate content on first run. Plex client does not work on ios 5.x+ only 4.x. Plexconnect is an alternative Plex client script that does work 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

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

dpkg -i sqlite3-lib_3.5.9-2_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

Don’t tell people to spoof their ATV OS as it will cause issues with iOS 6 specific PlexConnect code unless they spoof much higher than is available.

I never said they had to hence the optional comment. I never had a issue with spoofing to a higher iOS from any 5.x+ jb fw other then more apps :stuck_out_tongue:

I think you just need to do a "chmod +x /Applications/PlexConnect-master/PlexConnect.py" to make it executable.

Or verify the permissions on your "PlexConnect-master" folder (read/write).

++

dale

Or just install this since it fixes all permissions at once. :wink:


dpkg -i plexconnect.deb

yodize : did you try to put (unzip) your "Plexconnect-master" folder in another place than in "/Applications" folder, like Documents or Desktop, ...

Because "Applications" has special permissions, I think it's not a good idea to put plexconnect there (beacause an application is not supposed to write files in "Applications" folder, but Plexconnect write log files in its folder... :S).

That is not the proper way to install plexconnect manually on a atv2. Do not just unzip the code. You need to do this to properly install it manually:


apt-get install git

cd /Applications

git clone git://github.com/iBaa/PlexConnect.git


Otherwise you cannot update the code by doing this:


cd /Applications/PlexConnect

git pull


It is a hassle to constantly keep uploading new commits as .zips and redoing the setup when you can just do a git pull.

He can "just" unzip Plexconnect-master.zip if he wants (if he doesn't want to install git on his Mac). It's the easiest way to install ;)

Git is very usefull for getting the last updates (the nightly builds). But for just install a stable official release of Plexconnect, it's not necessary (follow )

I think the problem, in his case, is permissions... 

++

dale

I have installed plexconnect in the applications folder about 20x on my atv2 since i designed multiple .deb’s to automatically install plexconnect among other options. Also I have had multiple people successfully install it on their atv2’s multiple times in this thread by following my tutorial:

https://forums.plex.tv/topic/88905-plexconnect-on-atv2jailbroken-launchctl/


The issue is it was not installed properly. He can just unzip it if he wants then again when there is a update and again when there is another update and again when there is yet another and each time he can redo his setup which is a not a good method to do whatsoever since it wastes a lot of time each time you do it. Git is not required on the mac, its required on the atv2 itself for easy updates if desired by doing what it outlined in the post above. I write these tutorials since I want to make it easy on users to install due to my experience with it. Unzipping it in my opinion every time is not a good method but obviously everyone can do as they wish.

But as I think yodize want to install PlexConnect on his Mac.

And unzip PlexConnect is not a problem, yes git is good for developpers, for ones who want the latest nightly builds, always up to date !

++

Dude my bad I totally misread the OP. Sry :stuck_out_tongue:


I thought he was trying to install it on his jailbrken atv2 on ios 5.3.


PlexConnect can reside in /Applications that’s the way my app Openconnect was designed to install plexconnect by cloning it in /Applications/PlexConnect. It’s worked for me and others in /Applications without any issues whatsoever.

Yes you right, it can works in "Applications", I just say, if in "Applications" folder, yodise needs to check the permissions on the "Plexconnect-master" folder (read and write). And maybe a  "chmod +x PlexConnect.py".

And agree with you :

everyone can do as they wish

++

Ya idk, that’s kinda odd I though they all were executable when baa coded it, no? Maybe he’s running it like this in terminal:


sudo “/Applications/PlexConnect-master/PlexConnect.py”


When it should be


sudo /Applications/PlexConnect-master/PlexConnect.py


Or


sudo su

##login

cd /Applications/PlexConnect-master

./PlexConnect.py


Plus 10.6.8 is old as heck. I see a lot of corrupt os’s on that since its old as hell.

Went to bed frustrated last night and woke up to a lot of helpful replies so thanks! I want to use whatever the easiest method is to get plex working on my jailbroken atv2 5.3 with my PMS running on a Mac mini. I will try some of the suggestions today and report back. Thanks again.

I have combined @computersteve's, baa's, and my own modifed plexconnect.deb (automatic plexconnect installation method) to get plexconnect installed on the atv2. I also figured out how to get python properly installed on the atv. Restore your atv to ios 5.3 jb with seasonpass and install nitoTV then follow this guide exactly. If it doesn't work after you are done download the setting.cfg from your atv2 (located at /Applications/PlexConnect) to your computer and choose plexgdm=true but ONLY if it doesnt work then reupload it to your atv and reboot/restart (power cycle) your atv. You must sign into myplex for the tabs to populate content on first run. Plex client does not work on ios 5.x+ only 4.x. Plexconnect is an alternative Plex client script that does work 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
dpkg -i sqlite3_3.5.9-12_iphoneos-arm.deb
dpkg -i sqlite3-lib_3.5.9-2_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

So I re jail broke to 5.3 and get to the apt-get install git step and get the following error:

Apple-TV:~ root# apt-get install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  git: Depends: expat but it is not going to be installed
  sqlite3-lib: Depends: firmware (>= 3.0) but it is not installable or
                        sqlite3-dylib but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
 
Not sure how to proceed with this. 

when you ssh to your atv type this to correct the dependencies:


apt-get -f install


I will add it to the guide. Sorry :slight_smile:

when you ssh to your atv type this to correct the dependencies:

apt-get -f install

I will add it to the guide. Sorry :)

Thanks!  

That worked for that step but now when I'm attempting dpkg -i sqlite3_3.5.9-12_iphoneos-arm.deb I'm getting this:

Apple-TV:~ root# dpkg -i sqlite3_3.5.9-12_iphoneos-arm.deb
Selecting previously deselected package sqlite3.
(Reading database ... 1555 files and directories currently installed.)
Unpacking sqlite3 (from sqlite3_3.5.9-12_iphoneos-arm.deb) ...
dpkg: dependency problems prevent configuration of sqlite3:
 sqlite3 depends on sqlite3-lib; however:
  Package sqlite3-lib is not installed.
dpkg: error processing sqlite3 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 sqlite3
Apple-TV:~ root# 
 
 
I went back and started from the beginning and got this message both times.