Archive for the 'iPod Touch' Category

Offline math program for iPhone

Hi, I have got an iPod Touch and I’ve always wanted a good math program for my iPod. I wanted one with all the things that I needed to calculate: integrals, diffs, limits, matrices, … but there was nothing for the iPhone. I looked up and in the AppStore and I found Wolfram Alpha, but it has two things I don’t like: it’s online and it has no memory.

So I looked up in Cydia an over the Internet and I didn’t find anything. I decided to try to compile GNU Octave, but it was very difficult, then I found that I could install python from Cydia. I did it and I found a module called sympy that does everything I wanted, it’s like a small matlab for your iPhone. You can see all the things this module does here. It’s really easy to get it working, here there are the requirements:

- Jailbroken iPhone
- Python (you can download it form Cydia)

And the steps:

Installation

1. In your iPhone, you need the Telesphoreo Tangelo source, that comes by default, anyway, it’s: http://apt.saurik.com and if you don’t have it a package called Terminal.

2. Now, in Cydia click into search and type python and download “Python” (not “iPhone/Python”).
3. From your computer download the .tar.gz file of Sympy from here. You should download the latest one, in this case it’s sympy-0.6.6.tar.gz
4. You’ll find a folder called sympy-version where version is the version, i.e.: sympy-0.6.6. To avoid problems extract the folder in your desktop and rename it to sympy.

5. From your computer copy the folder sympy directly inside your Media folder inside your iPhone. To copy files in your iPhone use iFuse if you are not on Lucid (if you’re on Lucid you don’t need anything!), and iPhone Explorer if you’re on Windows or on a Mac. The media folder is the default folder when you browse your iPhone with this programs. Some folders inside of Media are DCIM, iTunes_Control, or Photos.

(Note: The next steps: 6-8 may not be needed, if you want, try the manual without them and tell me if it worked.)

6. It’s almost done, now open your iPhone Terminal and type su. Type your root password, if you don’t have changed it, it should be alpine, if you have problems look up in google, I also don’t know if this step is needed or not, if you have problems try to avoid this part.

7. Now put this code in your Terminal:

cd /var/mobile/Media/sympy

And this one:

chmod +x setup.py

8. Now type this in your Terminal:

python setup.py

Running Sympy (after installation)

Even if you get errors executing setup.py don’t worry, as I don’t know if steps 6-8 are needed, I’ve done them but I doubt if they were needed. Ok, the point is that you have sympy installed. Now let’s see how you can open it. Close your terminal and open it again. Then put this code:

cd /var/mobile/Media/sympy

And then this one:

python

And… finally this one:

from sympy import *

You’re done, everything is fine. You can use the program, let’s do an example:

x=symbol('x')
pprint(integrate(1/(x**3+1),x))

Enjoy!

How to open Sympy faster

If you want to open Sympy faster, download this bash file I’ve created. Put it in /bin and give it executing permissions. To do this, just copy the file to Media in your iPhone and then, in your iPhone Terminal:

cd Media
su
cp 'sympy' '/bin'
cd /bin
chmod +x sympy

Then, to run Sympy, open your Terminal, type sympy and then inside the Python prompt type:

from sympy import *

How to mount iPod/iPhone in Karmic Koala and more distros!

I know, iFuse didn’t work in Karmic Koala. I don’t really use much the iPod now, so I really didn’t need it working in Linux, but I found the way to do it.

First of all, thanks to this thread because it made me find the problem and the way to repair it. The code in the forum was almost right. The second line had an error, that was because you couldn’t get iPod Touches/iPhones working (at least in the latest versions of iFuse).

Now, let’s see how to mount the iPod Touch/iPhone over USB in Karmic Koala with iFuse.

iPod Touch in Karmic Koala

1. If you don’t have iFuse read this post, it explains you how to install it in different versions of Ubuntu and it gives a link to the page of the project, so if you use other distro you won’t have problems ;)

2. After getting iFuse installed in your computer you’ll connect your iPod Touch/iPhone as always and you won’t get it mounted, what’s the problem? It’s very simple, there’s not a mounting point for your device! The solution is very easy. This is the code you must insert in your terminal:

sudo mkdir /media/iPod
sudo ifuse mount /media/iPod

Depending of your version, if the second line gives you an error, try instead:

sudo ifuse /media/iPod

* Note: You can use the name you want, I’ve done it with iPod, but you can put whatever.

That’s it! The first one creates a folder iPod inside media and the second one tells ifuse where it has to mount your device!

Having problems? I don’t know if this work with all the firmwares of your iPod Touch/iPhone. I can assure that the 3.0 version of iPhone OS works perfectly and the previous ones I think that also work. However, I can’t assure you if this will work in new versions of iPhone OS (although I think it will work, don’t worry). If you have one of the newest, just try it and tell me in the comments if it works!

If after all of this you can’t mount your iPod Touch or iPhone, leave a comment explaining the problem and I will try to help you, and also consider (as the worse option) emulating Windows XP with VirtualBox.

Note #1: I think that each time you plug in your iPod Touch or iPhone you have to mount it manually, it’s easy, just type:

sudo ifuse mount /media/iPod

(If this line fails, again, use sudo ifuse /media/iPod instead)

Changing /media/iPod if you want by the folder where you want to mount it. If you want to unplug it, just do it, and if you want to unmount it, you also have to do it manually, because if you do right click at least my pc gives me an error of permissions, so if you want to unmount it, it’s also very simple:

sudo umount /media/iPod

If someone knows how to do this faster… I think that with nautilus-actions it would not be difficult to implement a graphical way, I have to check it, if I find a way I’ll tell you.

Note #2: Terminal in Linux is interesting. I’m learning how to do programs for that, if I know more I’ll do one to auto mount and auto unmount the iPod Touch /iPhone. Meanwhile, you can do this:

0. I’ll do with the folder /media/iPod, use the one you want, but first create it if you don’t have it yet with:

sudo mkdir media/iPod

1. Create a launcher in the menu and select “application in terminal”. Call it Mount iPod Touch or whatever, and in command insert:

sudo ifuse mount media/iPod

And if this line fails, use this instead:

sudo ifuse media/iPod

2. Create another launcher in the menu, select “application in terminal” and call it Unmount iPod Touch if you want. Then add in command this line:

sudo umount /media/iPod

Optional: Put this icon, (do it by dragging the image) it’s really cool. If you use Gnome-Do as me, it’s very fast and useful as you can press super+space and write mount ipod and enter and your iPod will be mounted, and type unmount ipod an your iPod will be unmounted!

Read iphone/ipod music in Linux

First of all you need to mount your ipod/iphone. It’s really simple, if you don’t know how just click here.

Ok, I want to advise that I tried this once and I could read my ipod music. If you don’t touch nothing, nothing happens, the problem was that I uploaded some song and then I had to restore the ipod, so try this as your own risk. If you fuck something you should be able to restore your ipod/iphone with no problems, but do this at your own risk.

You need to install Amarok 1.4. Newer versions of Amarok doesn’t support devices (at least yet). To install Amarok 1.4 first remove your other version if you have one installed:

sudo apt-get remove amarok

You can download Amarok for Jaunty from here. You also can find Amarok 1.4 easily in Google.

After you download Amarok look for a tab called “Devices”. Click in it and then click into add a new one. Choose the name you want, and select where your ipod/iphone is mounted – I’m sorry, I can’t install Amarok now and I don’t know the names exactly – and you also have to select to use the ipod profile (I think it was called profile).

Now you can see all the tracks of your ipod/iphone. You also should be able to play them with no problems and your device will work perfectly after this. The problem I had was when I try to upload a song, it looks like it works but then in the ipod/iphone the music library is broken and you have to restore it. I write this manual to let you know how to access to the ipod library and because maybe you are able to upload songs. Good luck! If you’ve tried it comment if this worked for you or not.

iPhone / iPod Touch over USB in Linux

UPDATE: Problems in Karmic Koala? Read this: http://cgsbay.com/ipod-iphone-karmic-koala/ and you won’t have them! If you use other distro and iFuse didn’t work for you, try the tutorial, maybe it will work!

I found the program I use in my other computer, mount var/mobile/media from your ipod Touch or Iphone (where the music and photos are) is really easy, you only need to install a program called iFuse. After installing it you can plug in your device and it will appear in your desktop.

If you use Ubuntu, you can follow this steps:

1. Add the package to your sources, symply in the terminal: gksudo /etc/apt/sources.list and add at the end the line you need depending your version of Ubuntu;

Karmic
deb http://ppa.launchpad.net/jonabeck/ppa/ubuntu karmic main

Jaunty
deb http://ppa.launchpad.net/jonabeck/ppa/ubuntu jaunty main

Intrepid
deb http://ppa.launchpad.net/jonabeck/ppa/ubuntu intrepid main

Hardy
deb http://ppa.launchpad.net/jonabeck/ppa/ubuntu hardy main

1.2. If you want, in the terminal add the PPA key (it should be optional)

sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com e20da6af9caee36095d1282ef104610cf0876ac9

2. Update package list, in terminal: sudo apt-get update
3. Install iFuse, in terminal: sudo apt-get install ifuse

Now you can plug in your ipod Touch or Iphone and it will appear in your desktop.

If you are using other distribution you can check into iFuse webpage to download the program.