Latest Tech News
Installing native applications in iPhone (Obsolete)
(win and mac)
There are more and more native applications released by the iPhone dev team, these real applications run natively and offline anytime anywhere. But with no installer in iPhone this time, it is not easy to get it work. To install those great applications easily, SSH is a great solution. The solution after the break works on Windows and Mac. (Updated)
Notice the steps taken below can damage iPhone and may not be able to restore under iTunes. USE IT AT YOUR OWN RISK. No one is responsible for any damaged iPhones and loss of data.
Make sure you have synchronized all data and created backups. We have tested the steps under firmware 1.0.1. If you’re ready, follow the steps below.
For Windows only
Step 1. Follow the SSH Guide by Hacktheiphone.com first. Make sure you place the sshkit inside the phonedmg folder. This step can only be finished under Windows.
Step 2. After SSH installed correctly, you can choose to use freeware WinSCP to login to the iPhone, SSH with ‘root’ as login name and ‘dottie’ as password. Remember to change SCP like this capture and type the iPhone IP address in the Host name. (Check iPhone IP by clicking Settings > Wi-Fi, tap the blue icon of access point that connected.):

Step 3. To install new software, upload the software you want under /Applications. Chmod it with the right permission, choose the application folder and select properties by right-click (mostly 755. You may also try 777). Restart the iPhone and it will be added to Springboard automatically.

For Mac only
Step 1. Notice you must have jailbreak before. Read the 10 Steps guide right here.
Step 2. Jailbreak now. Navigate to phonedmg folder, than type ‘./jailbreak’. Follow the instruction.
Step 3. AFTER STEP 2, DO THE FOLLOWING STEPS. DO NOT DO ANYTHING ELSE. Download and extract the files for enabling SSH in Mac. Some people DO REPORT PROBLEMS IF THEY EXTRACT IT IN PHONEDMG, TRY TO MAKE A NEW FOLDER FOR THEM. Navigate to the extracted folder under Terminal. Type ‘./iPhoneMacSSHInstall.sh’

Step 4. Follow the steps instructed and you are done. Press Ctrl+C at last.

Step 5. Jail your iPhone now. Navigate to your phonedmg folder (e.g. ‘cd phonedmg’), than type ‘./iPhoneinterface’. Go to the locking folder by typing ‘cd /System/Library/Lockdown’, type ‘putfile Services.plist’. If you don’t have Services.plist, download here and place it into phonedmg folder.
Step 6. To install application, put that under any folder. In this example, we put the Zune2.app under the user folder (’~'), so we navigate it by typing ‘cd ~’.
Step 7. Under Terminal type ’scp -rp Zune2.app root@192.168.0.123:/Applications” (where 192.168.0.123 is your iPhone’s IP address. Check by clicking Settings > Wi-Fi, tap the blue icon of access point that connected.) and it will than transfer the application ‘Zune2.app’ to iPhone. Input ‘dottie’ as default password.

Step 8. We have installed VoiceRecorder Utility, Terminal, iTetris, TicTacToe and Zune2. All of them don’t require you to change the Springboard. You only have to restart iPhone (by holding the Power button, slide it as it told. Turn back on by pressing the Power button again) after you did Step 1.

Step 9. You may also browse the iPhone file system. Start the Terminal and type ’ssh root@my iphone ip address’. To know your iPhone IP address, click Settings, Wi-Fi, and tap the blue arrow button. It will ask you to input the password. Input ‘dottie’ as default. You have logged in your SSH system now.
Notice there are also a program called screenshot, which will not appear on Springboard after Step 7. You can use it by installing Terminal.app and run it using simple command.
For win and mac to remove the softwares, click here for the next tutorial.




49 Comments
1. unschaf replies at 7th August 2007, 9:35 pm :
There is a bug in you shell.
this line:
mv com.apple.update.plist.hackinit com.apple.update.plist
must be changed to:
cp com.apple.update.plist.hackinit com.apple.update.plist
or the file: com.apple.update.plist.hackinit will be deleted after the first run.
your archive does also not contain the file, i fetched it from the windows version, now it works.
thanks fpr you installer, now i finally managed to run ssh oh my iphone.
greetings, unschaf.
2. We re-packed the n&hellip replies at 9th August 2007, 4:52 am :
[...] new link for downloading the iPhoneSSHInstall script. Now it comes a updated guide for you all to check this out. I think it’s working great now and have fun with SSH and great native iPhone [...]
3. Luke replies at 9th August 2007, 10:59 pm :
I m stuck on step 6, I cant get the Zune to go to the application folder after typing in the command. i get this thing that says: Operation timed out lost connection. PLEASE help me. And how do i do it for other applications in the future? Thanks for help me noob out.
4. admin replies at 10th August 2007, 2:18 am :
Luke,
Did you check the IP address of your iPhone? The 192.168.0.123 mentioned is the IP address your iPhone. Change it and try it again.
Eddy
5. Luke replies at 10th August 2007, 8:20 am :
Yes! i hav finally done it. Thank you VERY much for your help. One last question though, where do i start from if i want to add another application? From first step to last?
6. Jesse replies at 10th August 2007, 10:03 am :
can u also provide some help for installing rom on to the NES emulator?
Also, VRecord is not working, it does not show up on the phone
7. admin replies at 11th August 2007, 12:48 am :
Luke,
great to hear that! Happy with your iPhone native applications.
Every time you want to install your applications, start from Step 6 for Mac, and Step 3 for Windows.
8. admin replies at 11th August 2007, 12:54 am :
Jesse,
Will that be possible that you have already installed over 4 applications in your iPhone. So that the springboard cannot display the VRecord?
Anyway, I am now writing the tutorial for installing NES Emulator and VRecord now. Will come up very soon. Keep clicking winandmac.com.
9. Diegoturri@libero.it replies at 13th August 2007, 2:15 am :
type vrecorder whitout .app
10. Diego replies at 13th August 2007, 2:16 am :
help me please! How remove/delete iTetris from Applications directory?
11. admin replies at 13th August 2007, 4:27 am :
Diego,
Take a look of the next tutorial.
http://www.winandmac.com/mobile/iphone/remove-applications-from-iphone/
Thanks.
12. Flipper replies at 15th August 2007, 3:29 am :
I consider myself pretty good at tweaking but I can’t get this to work. Here is my Terminal and the errors it shows when following the directions:
iPhoneInterface v0.3.4 built on Jul 25 2007
Waiting for phone… established.
iPhone state: Activated
type “help” for help
iPhone:/# /usr/sbin/: No such file or directory
iPhone:/# Problem with AFCFileRefWrite: 11
iPhone:/# /System/Library/LaunchDaemons/: No such file or directory
iPhone:/# Problem with AFCFileRefOpen: 11
iPhone:/# Problem with AFCFileRefOpen: 11
iPhone:/#
——–PHASE 5: Restarting your iPhone, again———
Restart your phone once more. After that, you’re done!
Press Enter to continue…
——–PHASE 6: Clean up———-
iPhoneInterface v0.3.4 built on Jul 25 2007
Waiting for phone… established.
iPhone state: Activated
type “help” for help
iPhone:/# /System/Library/LaunchDaemons/: No such file or directory
iPhone:/# Problem with AFCFileRefWrite: 11
iPhone:/#
———DONE!——–
Test connecting to your iPhone using ssh to see if this worked
ex: ssh -l root [IP Address]
Remember the root password is: dottie
Press Enter to Jail your iPhone or Ctrl-C to keep it free from jail^C
daryls-computer:~/Desktop/ssh daryl$ ssh root@192.168.0.104
ssh: connect to host 192.168.0.104 port 22: Connection refused
13. N replies at 15th August 2007, 3:44 am :
Hi i had a questions i couldn’t figure out what the mac directory was and i am having a prolbem adding apps to my iphone
14. .idallas.com » SSH &hellip replies at 15th August 2007, 7:05 am :
[...] methods and none of them worked. That one worked great for me. Once that was opened up I could install sshd on the iPhone (start at step 3 and skip step 5) to allow easy access from my Mac. I then installed MobileTerminal [...]
15. Justin replies at 15th August 2007, 10:25 am :
I tried running your script however I get the error:
——–PHASE 1: Getting files off your iPhone———
./iPhoneMacSSHInstall.sh: line 17: ./iphoneinterface: cannot execute binary file
mv: rename com.apple.update.plist to com.apple.update.plist.orig: No such file or directory
mv: rename update to update.orig: No such file or directory
——–PHASE 2: Uploading files and reconfiguring your iPhone———
./iPhoneMacSSHInstall.sh: line 33: ./iphoneinterface: cannot execute binary file
Any help?
16. Troy replies at 15th August 2007, 11:34 am :
I would like to change my iphone and add these cool things but i dont have the new intel-mac i just have a powerbookg4. is there anything out there i can downloade to make my phone cooler?
17. A7x replies at 15th August 2007, 12:09 pm :
I’m having some issues, I’m fairly new to all of this.
But… I’m getting a “iPhone:/# /usr/sbin/: No such file or directory”
and I noticed frtom your screens that it should say “iPhone:/# iPhone:/usr/sbin/:”
So pretty much for every command I get the “No such file or directory”
Can someone tell me what I’m doing wrong, here?
18. Mtheory replies at 15th August 2007, 1:42 pm :
I am getting the same error as # 10… I also noted this happened.
——–PHASE 4: Putting init framework into place———
iPhoneInterface v0.3.4 built on Jul 25 2007
Waiting for phone… established.
iPhone state: Activated
type “help” for help
iPhone:/# /usr/sbin/: No such file or directory
iPhone:/# Problem with AFCFileRefWrite: 11
iPhone:/# /System/Library/LaunchDaemons/: No such file or directory
iPhone:/# Problem with AFCFileRefOpen: 11
iPhone:/# Problem with AFCFileRefOpen: 11
iPhone:/#
19. adam replies at 15th August 2007, 3:10 pm :
Alright i have all of the ssh set up but when i go to login i get the error message connectin refused
20. Jason McIntosh replies at 15th August 2007, 10:04 pm :
Just tried this to get SSH working, no go:
——–PHASE 1: Getting files off your iPhone———
iPhoneInterface v0.3.4 built on Jul 25 2007
Waiting for phone… established.
iPhone state: Activated
type “help” for help
iPhone:/# /usr/sbin/: No such file or directory
iPhone:/# fileref: 1
iPhone:/# /System/Library/LaunchDaemons/: No such file or directory
iPhone:/# fileref: 1
iPhone:/#
It continues on with a lot of no such file or directory errors. It sounds like /usr/sbin/ on my iPhone doesn’t exist. Any suggestions?
Thanks,
Jason
21. jason blight replies at 16th August 2007, 12:22 am :
I can’t get this to work… I used iActivator to jailbreak, and it looks like the proper directories aren’t there. There is iTunes_Control and some other directories, but not /usr/bin, etc.. What am I doing wrong?
22. dan replies at 16th August 2007, 12:22 am :
I tried to install Lights Out and VRecord. I’m fairly computer-savvy, and I followed this guide, and the SSH guide. I did all the steps, and the apps show up on my iPhone Dashboard….but when I click they just go to a black screen and then back to the main Dashboard. I changed the chmod to 777 and 555 but that didn’t change anything.
Can someone please help?
23. adam replies at 16th August 2007, 12:31 am :
nevermind about the last post i figure it out now i dont understand step 3 for windows. how do i chmod it?
24. admin replies at 16th August 2007, 4:12 am :
Flipper,
It looks like your iPhone didn’t jailbreak it before running the script. Could you please retry?
25. admin replies at 16th August 2007, 4:14 am :
N,
Put the application that you want to install, navigate to that folder, than run the ’scp’ command mentioned above.
26. admin replies at 16th August 2007, 4:22 am :
Justin, A7x, Mtheory, Jason,
Did you guys have jailbreak it first?
Leave it in the jailbreak state and run the script. After running the script then you can jail it again.
27. admin replies at 16th August 2007, 4:25 am :
Troy,
Sorry to say that it is very difficult to did it under PowerPC. And we don’t have the PowerPC Mac so we are not able to test it and write the guide. Very sorry about this
28. admin replies at 16th August 2007, 4:25 am :
adam,
If you get this error, it looks like the SSH is not installed correctly in your iPhone. Please retry
29. admin replies at 16th August 2007, 4:28 am :
dan,
you may try this guide to chmod the ‘rm’.
http://www.winandmac.com/mobile/iphone/fix-iphones-permission-denied-problem/
30. admin replies at 16th August 2007, 4:28 am :
jason blight,
Did you use the jailbreak utility mentioned above?
31. admin replies at 16th August 2007, 4:29 am :
dan,
you may try to chmod it using 755. It may not help, but just try it. I am testing it right now…
32. admin replies at 16th August 2007, 4:30 am :
adam,
Chmod it by right-clicking the files that you want, select ‘Properties’ from the menu. Type ‘755′ in octal field box.
33. zebrum replies at 16th August 2007, 7:19 am :
the VITAL piece of information missing it that the ssh folder MUST go inside the phonedmg folder. That will solve everyones missing folder problems they have been pasting.
34. alan replies at 16th August 2007, 7:21 am :
I am not sure what I’m doing wrong… I am an experienced UNIX user as well, so I’m comfortable trying anything you suggest.
I have run Jailbreak via iActivator, then tried Step 3, and get the following output:
This shell script will install and enable a SSH server on your iPhone.
This script was created by Dallas Brown (http://www.kdbdallas.com)
This script was based off of Nate True’s (http://cre.ations.net/blog) Windows script
Special thanks to all of the #iphone dev team.
——–PHASE 1: Getting files off your iPhone———
iPhoneInterface v0.3.4 built on Jul 25 2007
Waiting for phone… established.
iPhone state: Activated
type “help” for help
iPhone:/# /usr/sbin/: No such file or directory
iPhone:/# fileref: 1
iPhone:/# /System/Library/LaunchDaemons/: No such file or directory
iPhone:/# fileref: 1
iPhone:/#
——–PHASE 2: Uploading files and reconfiguring your iPhone———
iPhoneInterface v0.3.4 built on Jul 25 2007
Waiting for phone… established.
iPhone state: Activated
type “help” for help
iPhone:/# /usr/sbin/: No such file or directory
iPhone:/# iPhone:/# /System/Library/LaunchDaemons/: No such file or directory
iPhone:/# iPhone:/# /bin/: No such file or directory
iPhone:/# iPhone:/# iPhone:/# iPhone:/# iPhone:/# iPhone:/etc/# iPhone:/etc/# iPhone:/etc/init.d/# iPhone:/etc/init.d/# /usr/bin/: No such file or directory
iPhone:/etc/init.d/# iPhone:/etc/init.d/# iPhone:/etc/init.d/# /usr/lib/: No such file or directory
iPhone:/etc/init.d/# iPhone:/etc/init.d/# iPhone:/etc/init.d/# iPhone:/etc/dropbear/# iPhone:/etc/dropbear/# iPhone:/etc/dropbear/#
————-
As you can see, something is “missing” but I am not sure what. I’ve tried comparing to your terminal output to see what I am “missing” but it’s not clear. I dug into the scripts a bit and not even /usr/sbin exists. This is on the iphone I take it?
Do I just need to add a:
mkdir -p /usr/sbin
Would that do it? Just wanted your input before trying it — don’t want to hose my phone!
Or do I need to run some other kind of installer?
Thanks,
Alan
35. No 'dottie'. Chang&hellip replies at 16th August 2007, 12:54 pm :
[...] one will be comfortable for the default password. If you have SSH your iPhone before, you will use ‘dottie’ as the default password. To change it is easy, steps are [...]
36. admin replies at 16th August 2007, 12:57 pm :
zebrum,
Actually I didn’t place it inside phonedmg folder, but your suggestion is worth to try.
37. admin replies at 16th August 2007, 12:58 pm :
Alan,
I also experience this kind of problem before, but DON’T mkdir anything or you may need to restore the iPhone again. Just try to jailbreak it yourself, not by iActivator.
38. Luis replies at 20th August 2007, 10:51 am :
Anyone figure out the issue with the: No Such Directory or file found? I have the SSH directory in the phonedmg directory but nothing, same problem
39. admin replies at 20th August 2007, 12:30 pm :
Luis,
if you got this error, it means you didn’t jailbreak your iPhone, or it cannot break into your iPhone. Try to jailbreak it
40. Luis replies at 21st August 2007, 8:17 am :
Thank you for the reply! I am beyond frustrated
I do ./jailbreak in the phonedmg directory I created and this is what I get:
Waiting for iPhone to finish booting…
Moving files into place…
Rebooting iPhone…
Enjoy your newfound freedom. Thank the devs at #iphone next time you see them for making this all possible.
p.s. Like most other useful tools, this one may be dangerous if used carelessly. Always remember — You brick it, you bought it.
p.p.s. I have no idea how ‘My Humps’ could possibly have gotten set as your ringtone.
i can also successfully iPhuc: setafc com.apple.afc2
41. Luis replies at 21st August 2007, 8:21 am :
I can even add ringtones no problem.
42. Luis replies at 21st August 2007, 8:51 am :
Figured it out…apparently I had old files in my phonedmg that were causing the failure. I started from scratch and now it ran no problem!
43. Globaldj replies at 23rd August 2007, 3:20 am :
I’ve been trying to do this for the past 2 days, and still no luck. I keep getting the well-known msg “No such file or directory”
I used iActivator for the jailbreaking, even tho it says succeful I can’t still do anything. How do u jailbreak it w/o iActivator. I have a PowerBook (PPC) and it seems impossible find any info for it.
Thanx
44. admin replies at 23rd August 2007, 3:51 am :
Globaldj,
I am sorry that this method will not work for PowerPCs….
Will keep you updated.
45. gian replies at 24th August 2007, 4:44 pm :
when i run the winscp and i hit the login i get network error and the 2 buttons are ok which closes it and reconnect i get the same error all the time. i dont know if it has anything to do with it but when i installed the shh after the jailbreak on one of the lines it says
iphone:/system/library/launchdaemons# a duplicate file name exists, or the file cannot be found
the shh kit folder is in the phonedmg by the way
46. admin replies at 26th August 2007, 4:48 am :
gian,
It is normal to get network error and you need to wait for few seconds. Don’t click cancel as promoted.
You may put the sftp-server from iPhone bin kit. We will post a completed tutorial for that later
47. 6 ways to get fun &hellip replies at 1st September 2007, 5:52 am :
[...] you know how to install applications in iPhone, download the Digg iPhone native apps, than put it in your iPhone [...]
48. Newtotheiphone replies at 12th November 2007, 2:57 pm :
When this method will work with Imac CPU Type: PowerPC G5 (3.1)?
49. admin replies at 12th November 2007, 9:39 pm :
Newtotheiphone,
Please read the headline, this guide no longer works.
Check out the ultimate iPhone page here. Updated frequently.
http://www.winandmac.com/iphone-guide-page/
Leave a comment