Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bella92108

macrumors 68000
Original poster
Mar 1, 2006
1,610
0
To get past the issue of "Initializing GreenPoison" do this:

Step 1. On your Mac, go to your “Applications” folder.
Step 2. Now navigate to the “Utilities” folder.
Step 3. Launch "Terminal".
Step 4. Type "sudo nano /etc/hosts" (without quotes) and hit return.
Step 5. Enter your password
Step 6. Use the down arrow key to find the “gs.apple.com” entries. Once the cursor is in front, make sure you comment out the line(s) by entering “#” in front of the text.
Step 7. Save the file by pressing CONTROL+O.
Step 8. Exit the nano editor by pressing CONTROL+X.

Now re-follow the steps of running greenpoison and you're golden!
 
Last edited:
you have to scroll to the bottom and when done editing the hosts file, press control-o to save the file then press enter on the filename prompt, and control-x to exit the editor.

I understand that. There is no gs.apple.com in my hosts file.
 
I edited my hosts file (which I've been playing with to get my iPhone to restore and get out of DFU, another nightmare altogether) to comment out the gs.apple.com lines, but I still seem to be having the "initializing" bug.
 
I don't get step 6, there was already a # at the beginning of the line. What should I do?
 
Running Greenpois0n for the second time is what fixes the issue. The comment line has nothing to do with it. After the initializing hang, power down the iphone, power it back up and relaunch GP and follow the process again. It will finish and complete the process.
 
I don't get step 6, there was already a # at the beginning of the line. What should I do?

Anyone who says there's a "#" already, or no GS apple entry, clearly you didn't do a proper fresh install because if you did iTunes automatically adds the line even if it wasn't there, or was there and #'d before. So redo and follow steps.
 
Anyone who says there's a "#" already, or no GS apple entry, clearly you didn't do a proper fresh install because if you did iTunes automatically adds the line even if it wasn't there, or was there and #'d before. So redo and follow steps.

I have done 3 restores through iTunes now and there is still no gs.apple.com entry. I'm on a month old SL install that TU was never installed on and I'm using a never jailbroken iPhone 4.

What could the problem be?
 
This is a horrible help thread. People need to be clear with their instructions.

If people are commenting out the gs.apple.com entry, it just means they aren't forcing a particular IP resolution for gs.apple.com. Therefore, if you don't have it in your hosts file, then it's just as if you had it in there and commented it out.

If it's not working for you (and your hosts file either doesn't have an entry or it's commented out with #), then there's some other problem (I am trying to track it down).



Edit: Here's a procedure that worked for me:

greenpois0n mirrors: http://iphonejailbreaks.org/mirror-download-links-for-greenpois0n-rc5-to-jailbreak-ios-4-2-1/

Supposedly fixed version: http://46.4.219.216/dl/greenpois0n-osx_rc5_2.zip

1) Edit /etc/hosts (must be root or use sudo) and ADD the following to the end of the file: 74.208.10.249 gs.apple.com
2) Save and close the file.
3) Type (in terminal): dscacheutil -flushcache [this ensures that all aspects of the OS pay attention to your /etc/hosts file changes. Rebooting will also accomplish this step and waste your time.]
4) In terminal, type: cd <path to greenpois0n>/Contents/MacOS/

For example, I have mine stored in the /Applications folder with all the rest of OS X's apps. So I would type: cd /Applications/greenpois0n.app/Contents/MacOS/
If you put it on the desktop, type: cd ~/Desktop/greenpois0n.app/Contents/MacOS/

5) Type 'ls' and read the stuff that's there. For example, you might have: greenpois0n iBSS.n90ap kernelcache.release.n90
6) Type 'rm iBSS.n90ap' in terminal. Type 'rm kernelcache.release.n90' in terminal. Remove all files there EXCEPT greenpois0n. You may find the tab key will help you autocomplete names (e.g. type 'rm iBSS<tab>')

7) Plug in your phone and turn it off. Close iTunes.
8) With everything except greenpois0n gone, type: sudo ./greenpois0n
9) greenpois0n launches (the GUI). The terminal window will start spitting stuff out, too. Follow the GUI instructions (press the button...)
10) For me, it booted to the same "hanging" screen the first time around. I shut down the phone and that caused greenpois0n to crash. I relaunched using step (8) above and redid the process. It worked on the second try. Watch the terminal window because it spits out more data (it looked like the second try hung, too, until the phone dumped me straight to the kernel load screen and the screen was filled with text). Be patient at this point (greenpois0n reports it's done so you can close it).

You'll want to wait for this step in terminal:

Checking if kernelcache already exists
Fetching kernelcache.release.n90...

A progress bar will appear in greenpois0n. If you're here, you're set.

11) The first boot process on the phone takes a while. You will see some text, then you will see an animated Apple logo spin around to display the greenpois0n logo. Keep waiting. Sometimes a progress circle will appear superimposed over it. Keep waiting (I waited about 4 minutes). At some point it looks like it reboots itself (respring?). Eventually it dumps you to your iOS home screen.
12) Get a sandwich.


Notes: I started with a redsn0w tethered jailbreak experience on iPhone 4 (iOS 4.2.1; iOS 4.1 SHSH blobs already saved), so I did NOT need to restore in iTunes and start fresh. I haven't tested that this works without tethered boot (i.e. the greenpois0n hack works as advertised), but I'll just assume it does at this point (edit: rebooted the device and, sure enough, it's an untethered jailbreak).

Procedure performed under OS X 10.6.6. Your milage may vary with older OSes (I think dscacheutil was introduced in 10.5?)


Something to be aware of: When Apple releases a new iOS in the future, you may want to upgrade and lose your jailbreak (i.e. iOS 4.3 or 5.0). If you do that, you MAY need to comment out the changes you made to the /etc/hosts file so the new iOS is authenticated with Apple's servers since cydia's servers might not be updated immediately. To do that, change the following line in /etc/hosts:

74.208.10.249 gs.apple.com

to

# 74.208.10.249 gs.apple.com

Reboot or type: dscacheutil -flushcache
 
Last edited:
Yeah, of course the zip says osx, but I was wondering if there is also a file for windows. Guess this is the wrong place to ask.

Well you could take the initiative to download the file yourself and look...... I've never seen either team release windows and mac in the same download. The only time that happened was back in the old 1.x jailbreak days when the programs were called iphoneinterface and jailbreak.

If you read their twitters you'll clearly see this is OS X only.
 
I tried a couple of times this morning and had no luck. I sure miss easy stuff like jailbreakme.

Maybe I'll give it a couple of days and try again.

I was somewhat shocked that this came out. I thought the jailbreaker community was just going to wait for 4.3. I wonder if they got their hands on the beta and the exploits they planned on using were gone so they rushed the 4.2.1 jailbreak out, hence the problems. Just a theory.....
 
Running Greenpois0n for the second time is what fixes the issue. The comment line has nothing to do with it. After the initializing hang, power down the iphone, power it back up and relaunch GP and follow the process again. It will finish and complete the process.
Rebooting my Mac is what worked for me and others.

I was somewhat shocked that this came out. I thought the jailbreaker community was just going to wait for 4.3. I wonder if they got their hands on the beta and the exploits they planned on using were gone so they rushed the 4.2.1 jailbreak out, hence the problems. Just a theory.....
Your theory is correct. Apple has already patched this exploit in 4.3. They released it now because it doesn't matter.
 
Rebooting my Mac is what worked for me and others.


Your theory is correct. Apple has already patched this exploit in 4.3. They released it now because it doesn't matter.
Well, this is good then. Apple made the decision for them. They would have pissed around and waited until 5.0 to release a JB.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.