Setting up Python 2.5 / 2.7.2 on IOS – (Jailbreak)


Python 2.5 for IOS

So you know how to set up python on your desktop/laptop OS of choose. Now I bet you wish you could take your freshly wrote python scripts with you, well now you can. You will need to jailbreak your IOS device first , I’m not going to go into how to jailbreak and I’m sure I don’t have to. First it Depends on how you have your Cydia set up but I’m guessing like me you picked ‘user’ when first prompted to when first opening Cydia. To install python from Cydia you will need to change your setting to be a ‘Developer’, to do this you need to open Cydia, then go to the manage tab on the bottom.

Then hit the setting button on the top left you will be met with this screen where you will select Developer

After changing to Developer  you can go and search for python then just hit install.

The only problem with this version of python is its only 2.5 which might not be a problem for you but I soon found fault with it.

Next you will need to install mobile terminal to run your scripts like you do on your desktop. The problem is if you try to just search for it in Cydia the version you will find doesn’t work on IOS 5.1.1 so you will need to ad a sources. To do this you will need to go back to your manage tab in Cydia

This time you will need to pick the sources section

Next hit the edit button.

Next hit the add button.

After this box appears you will need to add this address http://repo.hackyouriphone.org/

You might be told that this repo is connected with piracy so just hit ok and only search for and download mobile terminal. Once it’s installed just load it up and do what you would do on your desktop to run the script.

Have fun running your scripts on the go. This is one of the main/only reason I jailbreak

Python 2.7.2 for IOS

If you have come up against the limitations of python 2.5 then this section is for you. The first thing you will need is the .deb for python 2.7.2. You can download it from http://code.google.com/p/yangapp/downloads/detail?name=python_2.7.2-5_iphoneos-arm.deb

We need to move this to the iPhone. The best way to do this is to install SSH server like openSSH from Cydia

To install this .deb we need iFile which also can be installed from Cydia. It is a paid for app but for what we need it for the free version will do.

Open up iFile and navigate to where you placed the .deb

Tap on the .deb and hit installer iFile will do the rest

Next you will need to install mobile terminal to run your scripts like you do on your desktop. The problem is if you try to just search for it in Cydia the version you will find doesn’t work on IOS 5.1.1 so you will need to ad a sources. To do this you will need to go back to your manage tab in Cydia

This time you will need to pick the sources section

Next hit the edit button.

Next hit the add button.

After this box appears you will need to add this address http://repo.hackyouriphone.org/

You might be told that this repo is connected with piracy so just hit ok and only search for and download mobile terminal. Once it’s installed just load it up and do what you would do on your desktop to run the script.

Have fun running your scripts on the go. This is one of the main/only reason I jailbreak

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s