ModMyMotoModMyiModMyGphone





 
 

2.2 Unlock | Jailbreak OS X




  Apple Forums | ModMyi.com | iPhone, iPod, Mac, OS X, Mods, More > 3rd Party Apps For iPhone | iPod Touch > 3rd Party Apps Requests
Reply
 
LinkBack Thread Tools Display Modes
  #16 (permalink)  
Old 11-17-2007, 06:15 AM
iPhone? More like MyPhone
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2 Jailbroke and Unlock / iPhone 3G White 2.2 Jailbroke
Operating System: Windows Vista
Location: New York City
Posts: 230
Thanks: 35
Thanked 15 Times in 12 Posts

Hmm. Ok. Mine is in var/root/Applications and works fine. Had no need to double up the folder. But maybe cause I did do it via command line it made a difference.

In either case thanks for the guide. Very easy steps folks should be able to follow to get rid if space issues.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #17 (permalink)  
Old 11-17-2007, 02:26 PM
Green Apple
 
Join Date: Aug 2007
Posts: 56
Thanks: 5
Thanked 12 Times in 9 Posts

I had no trouble doing it with Terminal in Mac OS X. Here's a primer for those who consider themselves callow newbies (as we all once were). I've purposely written this so pedantically that it will absolutely offend the wise and experienced among us. Again, this isn't for them. (So, if you consider yourself to be wizened and devirginized, then please spare yourself much anguish and skip this post.)

Ok, if you're a total novice and don't mind being addressed like a first-grader (and only if), then this one's for you:

1) Presumably you have a jailbroken iPhone with some third-party applications installed. (Otherwise you wouldn't be running out of applications space which necessitates your reading these instructions.) However, if you've not yet installed OpenSSH on your iPhone, then do it now. One easy way to install OpenSSH is via Installer.app on your iPhone.

2) Make sure the Mac and the iPhone are connected to the same wireless router.

3) Get the iPhone's IP address. You can obtain it this way: Tap the iPhone's "Settings" icon. Then tap "Wi-Fi." Then tap the right-facing blue arrow located adjacent to your wireless access point's name. Note the top line titled "IP Address." Jot that down. For the rest of this tutorial when you see this -- XXXXXXXXXX -- you should substitute your IP address (both the numbers and the periods, which looks something like this: 192.168.11.4).

4) Now, on the Mac, launch the "Terminal" app (it's in the Utilities folder inside your Applications folder... i.e., /Applications/Utilities/Terminal). At the cursor in Terminal, type the following string and then press return (remembering again that you should substitute your iPhone's IP address instead of XXXXXXXXXX):
ssh root@XXXXXXXXXX
(In other words, your typed string should look something like: ssh root@192.168.11.4)

5) Terminal on your Mac should now prompt you for a password. If you're running iPhone firmware 1.0.2 then the password is Dottie (with a capital D). More likely, though, you're running iPhone firmware 1.1.1, so the password is Alpine (with a capital A). Carefully type the proper password and press return.

6) If this was the first time you've accessed your iPhone via SSH or FTP (technically, SFTP), then you'll see a bunch of machinations like "generating your keys for the first time" or the like. Don't worry. You'll soon be presented with the Number Sign character (#) which is what we're looking for and signifies a successful iPhone access via SSH. If this wasn't the first time you've accessed your iPhone this way, then you got the # character right after entering the proper password.

7) Ok, now you should be looking at a blank # on a line by itself in Terminal. Here's where the real work begins. Type (or just copy and paste) the following into Terminal on your Mac and press return:
mv /Applications /private/var/Applications
Note a few things. First, this is the string that moves your Applications folder to more spacious environs. Second, you shouldn't let your iPhone go to sleep at this point. Third, note that NOTHING will happen for awhile in Terminal while that big iPhone Applications folder is moved to its new location. When it's complete, you'll see another # character on a line by itself in Terminal on your Mac.

8) Next, type this into Terminal on your Mac and press return:
cd /
Note that this UNIX command you just typed simply changes the directory ("cd") to the top of the iPhone's disk.

9) You should see another # right away. Next type this (or copy and paste it) into Terminal on your Mac and press return:
ln -s /private/var/Applications Applications
Note that this creates the symbolic link (UNIX-speak for what Mac people call "an alias") so that the iPhone "sees" its Applications folder in its proper place even though it's really been moved.

10) Now you should see the # command again. Technically, you are DONE at this point, but we're going to do something to ensure that what we hoped would happen did in fact actually happen. So type the following into the Terminal on the Mac and press return:
ls -la

11) Wow, a big directory listing just spilled out. The fourth line (or thereabouts) from the top should look something like this (so YOU DON'T TYPE THIS as it should be somewhere in there):
lrwxr-xr-x 1 root admin 25 Nov 15 06:34 Applications -> /private/var/Applications
Note the word "Applications" with the little arrow (->) that points to where the Applications folder now really lives. Voila. If it's there (and it should be), you are done.

12) Type the word exit and then press return in your Terminal on the Mac. It should say that your connection is now closed.

13) Reboot your iPhone now by pressing the Home button as well as the power button (on the top right of your iPhone) at the same time for several seconds until you see the big red arrow and "slide to power off" phrase. Go ahead and "slide to power off," then wait about 5 seconds, then press that power button again (iPhone, top right). You're all set (hopefully).

14) Done. Enjoy not worrying about running out of space for your iPhone applications anymore.

Randy

P.S. If you're on Windows, presumably you can substitute the "Putty" program referenced earlier in this thread everywhere I've mentioned the Mac's "Terminal" program.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following 3 Users Say Thank You to Randy For This Useful Post:
dmighty (12-09-2007), insocal (11-22-2007), Ironhorz (11-25-2007)
  #18 (permalink)  
Old 11-22-2007, 04:00 AM
What's Jailbreak?
 
Join Date: Nov 2007
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts

Thanks so much for these instructions! Really really appreciated!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #19 (permalink)  
Old 11-22-2007, 03:34 PM
iPhone? More like MyPhone
 
Join Date: Sep 2007
Posts: 124
Thanks: 2
Thanked 7 Times in 7 Posts

Question- do the recordings made with VNotes take up space in the OS Partition? I have a feeling many of my problems have come from overloading that partition with recordings.

And would I follow a similar way to do the symlink above for the VNotes app?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #20 (permalink)  
Old 11-25-2007, 05:37 PM
What's Jailbreak?
 
Join Date: Sep 2007
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Permission denied (moving apps)

I have attempted to follow this guide and after I input the cmd
mv /Applications /private/var/Applications
I receive the following message in terminal:
mv: /bin/: Permission denied
mv: /bin/: terminated with 1 (non-zero) status: Cross-device link

Please advise on how to write permissions so I can successfully move the applications to free up more disk space.

Thanks
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #21 (permalink)  
Old 11-25-2007, 09:28 PM
What's Jailbreak?
 
Join Date: Jul 2007
Posts: 27
Thanks: 4
Thanked 0 Times in 0 Posts

Quote:
Originally Posted by Randy View Post
I had no trouble doing it with Terminal in Mac OS X. Here's a primer for those who consider themselves callow newbies (as we all once were). I've purposely written this so pedantically that it will absolutely offend the wise and experienced among us. Again, this isn't for them. (So, if you consider yourself to be wizened and devirginized, then please spare yourself much anguish and skip this post.)

Ok, if you're a total novice and don't mind being addressed like a first-grader (and only if), then this one's for you:

1) Presumably you have a jailbroken iPhone with some third-party applications installed. (Otherwise you wouldn't be running out of applications space which necessitates your reading these instructions.) However, if you've not yet installed OpenSSH on your iPhone, then do it now. One easy way to install OpenSSH is via Installer.app on your iPhone.

2) Make sure the Mac and the iPhone are connected to the same wireless router.

3) Get the iPhone's IP address. You can obtain it this way: Tap the iPhone's "Settings" icon. Then tap "Wi-Fi." Then tap the right-facing blue arrow located adjacent to your wireless access point's name. Note the top line titled "IP Address." Jot that down. For the rest of this tutorial when you see this -- XXXXXXXXXX -- you should substitute your IP address (both the numbers and the periods, which looks something like this: 192.168.11.4).

4) Now, on the Mac, launch the "Terminal" app (it's in the Utilities folder inside your Applications folder... i.e., /Applications/Utilities/Terminal). At the cursor in Terminal, type the following string and then press return (remembering again that you should substitute your iPhone's IP address instead of XXXXXXXXXX):
ssh root@XXXXXXXXXX
(In other words, your typed string should look something like: ssh root@192.168.11.4)

5) Terminal on your Mac should now prompt you for a password. If you're running iPhone firmware 1.0.2 then the password is Dottie (with a capital D). More likely, though, you're running iPhone firmware 1.1.1, so the password is Alpine (with a capital A). Carefully type the proper password and press return.

6) If this was the first time you've accessed your iPhone via SSH or FTP (technically, SFTP), then you'll see a bunch of machinations like "generating your keys for the first time" or the like. Don't worry. You'll soon be presented with the Number Sign character (#) which is what we're looking for and signifies a successful iPhone access via SSH. If this wasn't the first time you've accessed your iPhone this way, then you got the # character right after entering the proper password.

7) Ok, now you should be looking at a blank # on a line by itself in Terminal. Here's where the real work begins. Type (or just copy and paste) the following into Terminal on your Mac and press return:
mv /Applications /private/var/Applications
Note a few things. First, this is the string that moves your Applications folder to more spacious environs. Second, you shouldn't let your iPhone go to sleep at this point. Third, note that NOTHING will happen for awhile in Terminal while that big iPhone Applications folder is moved to its new location. When it's complete, you'll see another # character on a line by itself in Terminal on your Mac.

8) Next, type this into Terminal on your Mac and press return:
cd /
Note that this UNIX command you just typed simply changes the directory ("cd") to the top of the iPhone's disk.

9) You should see another # right away. Next type this (or copy and paste it) into Terminal on your Mac and press return:
ln -s /private/var/Applications Applications
Note that this creates the symbolic link (UNIX-speak for what Mac people call "an alias") so that the iPhone "sees" its Applications folder in its proper place even though it's really been moved.

10) Now you should see the # command again. Technically, you are DONE at this point, but we're going to do something to ensure that what we hoped would happen did in fact actually happen. So type the following into the Terminal on the Mac and press return:
ls -la

11) Wow, a big directory listing just spilled out. The fourth line (or thereabouts) from the top should look something like this (so YOU DON'T TYPE THIS as it should be somewhere in there):
lrwxr-xr-x 1 root admin 25 Nov 15 06:34 Applications -> /private/var/Applications
Note the word "Applications" with the little arrow (->) that points to where the Applications folder now really lives. Voila. If it's there (and it should be), you are done.

12) Type the word exit and then press return in your Terminal on the Mac. It should say that your connection is now closed.

13) Reboot your iPhone now by pressing the Home button as well as the power button (on the top right of your iPhone) at the same time for several seconds until you see the big red arrow and "slide to power off" phrase. Go ahead and "slide to power off," then wait about 5 seconds, then press that power button again (iPhone, top right). You're all set (hopefully).

14) Done. Enjoy not worrying about running out of space for your iPhone applications anymore.

Randy

P.S. If you're on Windows, presumably you can substitute the "Putty" program referenced earlier in this thread everywhere I've mentioned the Mac's "Terminal" program.
Thanks so much for this comprehensive step by step for newbies, ME!! I just copied and pasted all of the commands and it's worked with no problems at all. I tried this last night and had to restore my phone back to 1.1.1 and then ran into the Oktoprep problem but after a day all is back to normal but BETTER!

Is there somewhere I could go to try to learn a bit more about using terminal? I've got a wopping 2 weeks experience with mac and I can't get enough of it right now. I LOVE this thing compared to my PC!!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #22 (permalink)  
Old 11-25-2007, 11:10 PM
KingRedmer's Avatar
Green Apple
 
Join Date: Jul 2007
Device + Firmware: 8 GB iPhone 3G 2.2 QuickPwned
Operating System: Windows XP
Location: Rochester Hills, MI
Posts: 54
Thanks: 9
Thanked 0 Times in 0 Posts
Send a message via AIM to KingRedmer

It seems like everyones is getting this real easy, but I've done it twice and had to restore my phone. After rebooting my phone, it shows no icons on my home screen, then shows the processing circle thingy, then flashes the apple startup icon, and loops this over and over again. I really don't know what I did wrong, and any help would be appreciated...

Also, I haven't actually restored it the second time yet, if that matters.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #23 (permalink)  
Old 11-26-2007, 07:26 PM
What's Jailbreak?
 
Join Date: Nov 2007
Device + Firmware: Iphone 1.1.4 PWNED!!!
Operating System: windows.. apple sucks
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Question

After I transfer all the files to /var/root am i supposed to go and delete the old files? because i noticed that the applications successfully moved to /var/root/ROOT_Applications but i still see that the same applications are still in original /Applications folder..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #24 (permalink)  
Old 11-27-2007, 11:47 PM
My iPhone is a Part of Me
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.4
Operating System: Vista
Location: Heart&soul@Israel, USA
Posts: 575
Thanks: 7
Thanked 44 Times in 36 Posts

So, you ahve to have WiFi ?
is there a way to do it without wifi?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to Tomer For This Useful Post:
techgirl (11-28-2007)
  #25 (permalink)  
Old 11-28-2007, 03:07 PM
iPhone? More like MyPhone
 
Join Date: Jul 2007
Posts: 105
Thanks: 2
Thanked 18 Times in 14 Posts

KingRedmer

You have to modify ur fstab to allow execute permissions on the 2nd partition.
remove noexec from /etc/fstab
install BSD subsystem
without this your phone can't get the permission to open ur apps, thats why u keep crashing...
-------------------------------------------------------------------
sabir

thats because its like a "shortcut" when u browse to ?Applications/ its actually taking you to var/root/root_applications

not to be mean but dont do things like this if you cant understand what its actually doing... its just a symlink pretty much like a shortcut...
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #26 (permalink)  
Old 11-28-2007, 10:42 PM
techgirl's Avatar
iPhone? More like MyPhone
 
Join Date: Jul 2007
Location: Newark, New Jersey
Posts: 171
Thanks: 19
Thanked 14 Times in 9 Posts
Send a message via AIM to techgirl Send a message via Skype™ to techgirl

Can I just say... I don't what is different in your guide, but this hack is finally working on my phone! Thanks! It seems to be something with the placement of the Applications folder. They are both (the incorrect one and yours) under var, but one seemed to be hanging somewhere, I don't know, but as my phone had to be reset five times, anyone whose phone was messing up from this hack, can definitely us yours! Thanks man!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #27 (permalink)  
Old 11-29-2007, 05:22 AM
Green Apple
 
Join Date: Oct 2007
Posts: 80
Thanks: 2
Thanked 7 Times in 5 Posts

Thank you, worked for me aswell. After following the tutorial above I had two copies of the Applications folder, one in the Root and one in Media - however if I deleted something from root it also deleted the same file/folder from media - I now realise that the folder in Root that seemed to contain all of the original apps was actually just a link to the new folder.

Please do not make the same mistake as I did - before following instructions use Term-vt100 on iphone (install via Installer.app) to check how much disk space is being used on the ' disk0s1 ' - by typing ' df ' and then pressing return. Once you have followed the above tutorial the number will decrease slightly (depending on how many apps you have installed - for myself about 30mb). If this number decreases it is likely all has gone well.

Note - learn your phones file structure and what should and should not appear in certain places - this will be valuble throughout your iPhone hacking life.
Digg StumbleUpon Delicious Reddit Newsvine Google