Sunday, September 14, 2008

Cycorder Tutorial For Mac Users Who Hate Terminal

I mentioned in my roundup of useful iPhone apps, the video recording app Cycorder.  It requires your iPhone to be jailbroken (which I'm not going to get into, but this is the blog of the team of hackers who develop the jailbreaking software, which will have the latest software and info).  

I'm going to assume that your iPhone is jailbroken and you're on a Mac (there are ways to do this on the PC, I just don't have the experience or interest to do it just for the hell of it).  I am also doing this in Leopard, so the part about the Finder would look a little different in other versions of OS X.  

Cydia is the primary app for downloading unauthorized software onto your jailbroken iPhone.  It will appear in your list of apps once you have jailbroken.  The apps you will need to download in Cydia are:
OpenSSH (so you can access your iPhone through Terminal on your Mac)
Cycorder (the app we're talking about here)
Netatalk (so we don't have to use terminal anymore)

You can go ahead and install them all at once.  Only Cycorder will show up as an icon with your apps.  The other two are background apps.

Cycorder will function as an app on its own, happily shooting videos and playing them back for you on the phone.   If you want to move the videos off the phone, this is where the other stuff comes in.  Netatalk gives your phone support for standard Apple file sharing.  Once it's installed, if your iPhone is on the same wireless network as your Mac, it will show up in your Finder under "shared."  (If you don't have access to a wireless router, just create a network with your Mac using the "Create network" option in the airport menu, and call it whatever you want.  Then have the iPhone join the network.)  

So now you see your phone in the Shared section of your Finder, and when you click on it it will probably say "Connection failed." Click the button "Connect As" in the upper-right and it will bring up a username/password window.  Make the name "mobile" and the password "alpine" (the default iPhone password) and it will give you access to your files.   The folder you're looking for is Mobile/Media/Videos, in there you will find the videos you took with Cycorder, in handy .mov Quicktime format.

Now you have what you want.  You would be done, provided you never find yourself on the same network as someone who knows something about iPhone hacking and wants to take a look at your files.  So it's a good idea to change the password for the iPhone's "Mobile" user from "alpine" to, well, anything else.   Now we have to use the Terminal, just for a second.

1. Make sure your phone is on the same network as your Mac.

2. On the phone, go to settings, wifi, and then click the little ">" arrow for the network you are on to bring up details.

3. Look at the IP Address.

4. On your Mac, open Terminal

5. Type ssh mobile@[the IP address from the phone] and hit enter.

6. Terminal will probably think for a minute, then ask if you're sure you want to connect.  Say yes.

7. It will then ask for the password.  Type alpine and hit enter.

8. You will now be at the command prompt.  Time to change the password.
Type passwd mobile and hit enter.

9. It will ask for the original password (alpine), and then for the new password, and then for the new password again to confirm.  Make the password whatever you want.

10. We also need to change the password for the phone's "root" user, which is also "alpine," because the same random hacker on your network could also get in there and cause lots of trouble.  The process is the same.  Follow the steps again, except type "root" instead of "mobile" and change the password to whatever you want.

11. When you're done, type exit and hit enter, and close Terminal forever.

From now on when you connect to the iPhone through the Finder you will enter the name "mobile" and the password will be the new one you chose.  You can check "remember this password" and never have to enter it again if you like.  The important thing is that some random person who connects to your network won't know what the password is.  

Enjoy!

No comments: