Google
 
Web www.howardforums.com
Pages: 1

HowTo: Purely Mac ssh/scp Unlock instructions

(Click here to view the original thread with full colors/images)


Posted by: bit_bucket

First of all sorry for breaking the main thread. I am doing this because all of the directions and solutions in there seem to be PC centric, and I wanted a more UNIX centric set of instructions...

I TAKE NO RESPONSIBILITY FOR ANY DAMAGE CAUSED TO YOUR PHONE WHILE DOING THESE PROCEDURES. WHILE IT IS LEGAL TO UNLOCK YOUR PHONE IN THE US, LAWS VARY BY COUNTRY. PLEASE RESPECT THE LAWS OF THE LAND! I performed them on my iPhone and was successful in unlocking it, but your mileage may vary. The person performing these instructions should have a basic knowledge of UNIX as well as ssh/scp. ALSO do not PM me asking for the files for this. I no longer have them. I provided a link to where I got them, but this link may go dead.

These instructions are an adaption of what is found on http://iphone.unlock.no/

The original directions were written with a PC in mind, so I went through and adapted for an intel mac without having to use iFuntastic to get files on the phone. This is purely using ssh and scp. THESE DIRECTIONS SUPPOSE YOU HAVE EITHER ACTIVATED WITH ATT OR YOU FOLLOWED DIRECTIONS ELSEWHERE ON THE NET TO BYPASS ACTIVATION. I CAN NOT AND WILL NOT LINK TO DIRECTIONS TO BYPASS ACTIVATION, BUT YOU CAN FIND THEM DOING A GOOGLE SEARCH.

1) Connect iPhone to wifi

2) GoTo Settings->General->Auto-Lock and set to Never

3) Download and install iphone installer from http://iphone.nullriver.com/beta/

4) Run the installer to install this app on your iphone

5) Run app and install in this order:
Community Sources
BSD Subsystem
OpenSSH

6) Determine IP address of iPhone and from a host on the same network type the following in a terminal on your Mac
ssh root@<iPhone IP>

The login will take over a minute while the ssh keys are generated

Login: root
Password: dottie

7) On computer side in a terminal go to folder with all the unlocking apps and type (You may be able to get these from http://rapidshare.com/files/5505897...Unlock.zip.html) (I did not set this up and dont own these files. I am merely adapting these instructions for a PC install with jailbreaking to a purely ssh install)

Code:
scp lockdownd root@<iPhone IP>:/usr/libexec/ scp iUnlock ICE03.14.08_G.fls nor minicom bbupdater root@<iPhone IP>:/usr/bin

8) In the terminal connected to the iPhone type
Code:
mkdir -p /usr/local/etc

9) On computer side in a new terminal type
Code:
scp minirc.dfl root@<iPhone IP>:/usr/local/etc

10) Perform the unlock
In the terminal connected to the iPhone type:
Code:
cd /usr/bin/ chmod +x bbupdater iUnlock minicom launchctl unload -w /System/Library/LaunchDaemons/com.apple.CommCenter.plist iUnlock ICE03.14.08_G.fls nor

This takes 20 mins. If this fails DO NOT RESET YOUR IPHONE. Just repeat the steps above until it succeeds (it will tell you if you succeeded.

11) In the terminal connected to the iPhone type
Code:
bbupdater -v

Output should look like this:
Code:
Resetting target... pinging the baseband... issuing +xgendata... firmware: DEV_ICE_MODEM_03.14.08_G eep version: EEP_VERSION:207 eep revision: EEP_REVISION:7 bootloader: BOOTLOADER_VERSION:3.9_M3S2 Done

12) In the terminal connected to the iPhone type
Code:
minicom

13) In the terminal connected to the iPhone type the following commands inside of minicom
Code:
AT AT+CLCK="PN",0,"00000000" AT+CLCK="PN",2

After the last one your output should be the following:
Code:
AT+CLCK="PN",0,"00000000" OK AT+CLCK="PN",2 +CLCK: 0 OK

If this is not the output you see, exit minicom and redo step 11-13

To exit minicom press CTRL-a followed by q and select "Yes"

14) In the terminal connected to the iPhone type
Code:
launchctl load -w /System/Library/LaunchDaemons/com.apple.CommCenter.plist

15) Reboot iPhone (I found I had to do this to restore the ATT carrier logo on the upper left hand corner of the iPhone.

You are done and your iPhone is unlocked.



Posted by: riskytrader

Okay I am officially frustrated! I cannot get the damn files to move over to my iphone...i keep getting stalled from the terminal. Any ideas? I'm obviously on a mac



Posted by: bit_bucket

Quote:
Originally Posted by riskytrader
Okay I am officially frustrated! I cannot get the damn files to move over to my iphone...i keep getting stalled from the terminal. Any ideas? I'm obviously on a mac


Just make sure you are on the same network. In my case I am on my home wifi network. Probably important to note that you must first ssh into the iPhone before you attempt to scp files over. What this has the effect of doing is generating your ssh keys. When you ssh over to it for the first time it will seem like the login stalls, but wait, and you will eventually get a prompt.



Posted by: MotionUS

where is the control key on the iphone?



Posted by: bit_bucket

Quote:
Originally Posted by MotionUS
where is the control key on the iphone?


Any commands you run on the iPhone are done from a terminal on your computer connected to the Iphone. So you would use your mac's control key.

I just updated the directions to reflect "In the terminal connected to the iPhone type' so there is no confusion as to where to type the command.



Posted by: MotionUS

the directions are a bit confusing. Does this mean that I do not need to type anything into terminal on my iphone?

Ahh, I see you just edited the directions. Thanks



Posted by: MotionUS

One last question, do I put my tmobile sim card in before I start or do I leave my att card in.

Thanks



Posted by: bit_bucket

Quote:
Originally Posted by MotionUS
the directions are a bit confusing. Does this mean that I do not need to type anything into terminal on my iphone?


I just updated the directions. You really don't even need the terminal on your iPhone, as the directions do everything from a remote computer. Sorry, I was adapting these directions quick and I made them with what makes sense to me. Refresh and check them out now.



Posted by: bit_bucket

Quote:
Originally Posted by MotionUS
One last question, do I put my tmobile sim card in before I start or do I leave my att card in.

Thanks


I don't think it matters. I did it with the ATT sim still in. Because of the file we put over in the beginning 'scp lockdownd root@<iPhone IP>:/usr/libexec/' the iPhone will no longer ever ask you to activate through iTunes. I think the main reason the commercial unlock solutions required you to have your sim in is because of the request for iTunes activation always poping up when you insert a new sim. I am going to test tomorrow with multiple SIM's to see.



Posted by: MotionUS

hey sorry to be a pain in the ***, but how do you put the iphone into power save mode?



Posted by: bit_bucket

Quote:
Originally Posted by MotionUS
hey sorry to be a pain in the ***, but how do you put the iphone into power save mode?


No worries, you are helping me shake out errors in the directions. I updated the directions for the step to say set Auto-Lock to Never. The directions now give you the path to that option.



Posted by: MotionUS

thanks, actually figured it out. I'm currently trying to ssh to my phone, but it keeps timing out.

Going to try a reboot on the iphone.

Works now



Posted by: bit_bucket

Quote:
Originally Posted by MotionUS
thanks, actually figured it out. I'm currently trying to ssh to my phone, but it keeps timing out.

Going to try a reboot on the iphone.


Also make sure you have the right IP for the iPhone. I also installed the terminal and on the iPhone itself I ran 'ifconfig en0'. The Inet is your IP address.



Posted by: MotionUS

stuck here


7) On computer side in a terminal go to folder with all the unlocking apps and type (You may be able to get these from http://rapidshare.com/files/5505897...Unlock.zip.html) (I did not set this up and dont own these files. I am merely adapting these instructions for a PC install with jailbreaking to a purely ssh install)

scp lockdownd root@<iPhone IP>:/usr/libexec/
scp iUnlock root@<iPhone IP>:/usr/bin
scp ICE03.14.08_G.fls root@<iPhone IP>:/usr/bin
scp nor root@<iPhone IP>:/usr/bin
scp minicom root@<iPhone IP>:/usr/bin
scp bbupdater root@<iPhone IP>:/usr/bin

Ok, how do I move to the directory on terminal. I thought it was using cd but not sure.

Currently i have a # prompt in termianl

Do I open another terminal?



Posted by: bit_bucket

Quote:
Originally Posted by MotionUS
stuck here


7) On computer side in a terminal go to folder with all the unlocking apps and type (You may be able to get these from http://rapidshare.com/files/5505897...Unlock.zip.html) (I did not set this up and dont own these files. I am merely adapting these instructions for a PC install with jailbreaking to a purely ssh install)

scp lockdownd root@<iPhone IP>:/usr/libexec/
scp iUnlock root@<iPhone IP>:/usr/bin
scp ICE03.14.08_G.fls root@<iPhone IP>:/usr/bin
scp nor root@<iPhone IP>:/usr/bin
scp minicom root@<iPhone IP>:/usr/bin
scp bbupdater root@<iPhone IP>:/usr/bin

Ok, how do I move to the directory on terminal. I thought it was using cd but not sure.

Currently i have a # prompt in termianl


Do this in a new terminal that is not curretly connected to the iPhone. Apple+n key in the terminal.app will spawn a new terminal window.

Real easy way on a mac is to type 'cd ' DONT HIT ENTER and drag the folder icon of the folder where these downloaded files are down to the terminal. Terminal will then automagicly put the path in. Next hit enter. You can type ls to see if the files are in there or pwd to show the directory you are in.



Posted by: peestandingup

You rock for doing this, dude! Please keep fine tuning those instructions so that even novices can pull this off with ease.



Posted by: MotionUS

so far so good,



Posted by: MotionUS

at this stage

launchctl unload -w /System/Library/LaunchDaemons com.apple.CommCenter.plist

got the following error, what should i do?

Couldn't stat("com.apple.CommCenter.plist"): No such file or directory



Posted by: Uzy7686

hey do I do all this AFTER performing jailbreak and activation? Because Im currently doing the jailbreak and its taking FOREVER!!??



Posted by: MotionUS

tried again and this is the results

# launchctl unload -w /System/Library/LaunchDaemons com.apple.CommCenter.plist
launchctl: Couldn't stat("com.apple.CommCenter.plist"): No such file or directory
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process

I actually looked at my phone and there is a small wheel going around in a circle on the homescreen.



Posted by: bit_bucket

Quote:
Originally Posted by MotionUS
tried again and this is the results

# launchctl unload -w /System/Library/LaunchDaemons com.apple.CommCenter.plist
launchctl: Couldn't stat("com.apple.CommCenter.plist"): No such file or directory
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process
No such process

I actually looked at my phone and there is a small wheel going around in a circle on the homescreen.


This is because the forum is cutting off the directions. That is meant to be one line.
'launchctl unload -w /System/Library/LaunchDaemons/com.apple.CommCenter.plist'



Posted by: bit_bucket

Quote:
Originally Posted by Uzy7686
hey do I do all this AFTER performing jailbreak and activation? Because Im currently doing the jailbreak and its taking FOREVER!!??


As per the header in the directions, you do not have to jailbreak the iPhone to do this. Follow the directions to a T, and you will be good.



Posted by: MotionUS

Quote:
Originally Posted by bit_bucket
This is because the forum is cutting off the directions. That is meant to be one line.
'launchctl unload -w /System/Library/LaunchDaemons/com.apple.CommCenter.plist'



i just put that in and it says again no process



Posted by: Uzy7686

Quote:
Originally Posted by bit_bucket
As per the header in the directions, you do not have to jailbreak the iPhone to do this. Follow the directions to a T, and you will be good.



But what about activation?? Because Im pretty much pulling this phone right out of the box.. so it wont let me get to any settings area..

sorry.. i apologize.. im just really anxious to get it working... thanks for all your help!!



Posted by: xochi

Quote:
Originally Posted by bit_bucket
Code:
launchctl unload -w /System/Library/LaunchDaemons com.apple.CommCenter.plist


That's a typo, right? Should be a / char between the two, e.g.
Code:
launchctl unload -w /System/Library/LaunchDaemons/com.apple.CommCenter.plist




Posted by: bit_bucket

Quote:
Originally Posted by MotionUS
i just put that in and it says again no process



If you put it in exactly how I say, it should work. So where I say <space> insert space...

'launchctl<space>unload<space>-w<space>/System/Library/LaunchDaemons/com.apple.CommCenter.plist'

Of Course omit the quotes. They are there to illustrate the beginning and end of command strings.



Posted by: bit_bucket

Quote:
Originally Posted by xochi
That's a typo, right? Should be a / char between the two, e.g.
Code:
launchctl unload -w /System/Library/LaunchDaemons/com.apple.CommCenter.plist


Yes it is, I just updated that in the directions. These are a work in progress, so bear with me.



Posted by: MotionUS

Quote:
Originally Posted by bit_bucket
If you put it in exactly how I say, it should work. So where I say <space> insert space...

'launchctl<space>unload<space>-w<space>/System/Library/LaunchDaemons/com.apple.CommCenter.plist'

Of Course omit the quotes. They are there to illustrate the beginning and end of command strings.



nope not working getting no process. I wander if putting it in wrong the first time screwed it up. Not sure what to do now. Should I just continue on with thenext command

should i have the little scroll wheel turning on the homescreen



Posted by: Uzy7686

When I try to activate.. i get

"Activation failed with code -402653165"

Im sooo lost!



Posted by: Doutreo

Quote:
Originally Posted by Uzy7686
But what about activation?? Because Im pretty much pulling this phone right out of the box.. so it wont let me get to any settings area..

sorry.. i apologize.. im just really anxious to get it working... thanks for all your help!!

I'm in the same boat. I don't know how to connect to wifi without performign jailbreak first.



Posted by: bit_bucket

Quote:
Originally Posted by Uzy7686
When I try to activate.. i get

"Activation failed with code -402653165"

Im sooo lost!


Yeah, I dont know what you need to do to get past that. I assume you have to jailbreak and then perform some config to have it bypass the activation screen. Seach around, I know someone has done that. I started with an ATT activated iPhone.



Posted by: bit_bucket

Quote:
Originally Posted by Doutreo
I'm in the same boat. I don't know how to connect to wifi without performign jailbreak first.


I will update directions to say that. As far as finding the solution to bypass activation with a fresh non activated phone, I know it is documented on the net. Search around and you will find it. It is just out of the scope of this document.

Also everyone, if you are not confident on a UNIX terminal, please dont attempt to perform these directions. As I stated in the OP, I take no responsibility for anything bad that happens. These were the steps I performed to get my iPhone unlocked, and had no issues doing them.



Posted by: xochi

Quote:
Originally Posted by bit_bucket
Yes it is, I just updated that in the directions. These are a work in progress, so bear with me.


Absolutely, and much appreciated!

I wonder if we can simplify it a bit by combining some of the commands, such as
Code:
scp iUnlock root@<iPhone IP>:/usr/bin scp ICE03.14.08_G.fls root@<iPhone IP>:/usr/bin scp nor root@<iPhone IP>:/usr/bin scp minicom root@<iPhone IP>:/usr/bin scp bbupdater root@<iPhone IP>:/usr/bin


into a single command, since all files are going to the same location, e.g.:
Code:
scp iUnlock ICE03.14.08_G.fls nor minicom bbupdater root@<iPhone IP>:/usr/bin


Also,
Code:
chmod +x bbupdater chmod +x iUnlock chmod +x minicom


could be reduced to
Code:
chmod +x bbupdater iUnlock minicom


I think those changes would work, and might help noobs?



Posted by: MotionUS

bit bucket just sent you a pm



Posted by: bit_bucket

Okay I have reformatted the directions using code tags, so the commands and outputs should stand out and there should be no question as to what to type. Also reformatted based on your post xochi. Good call, thanks. Ive got to get to bed. The directions should be as complete as they are going to be. Good luck everyone, enjoy your iPhone freedom.



Posted by: riskytrader

Sweeeeet...Thanks for the info! I finally got mine to work after some trouble with transferring the files over



Posted by: aaryque

This worked great, I had issues transfering files over, but i used cyberduck to create and transfer what is needed over, after that just alot of copy and pasting and waiting, definately worth the wait!



Posted by: Momofseven

Thank you, it worked absolutely great.



Posted by: Doutreo

Am i suppose to wait till the terminal asks for a password/login or do I in
put that myself?



Posted by: Doutreo

i don't understand why I keep getting this error

lockdownd root@192.168.0.105:/usr/libexec/
cp: directory root@192.168.0.105:/usr/libexec does not exist

what does that mean?



Posted by: Doutreo

my root command gives me a operation timed out error





vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
vB Easy Archive Final ©2000 - 2008 - Created by Stefan "Xenon" Kaeser