Jump to content

[ PRE-INSTALL AUTOMATOR v1.1 ] for easily installing vanilla snow leo.


  • Please log in to reply
280 replies to this topic

#1
dj nitehawk

dj nitehawk

    InsanelyMac Protégé

  • Members
  • PipPip
  • 96 posts
What is this?

This is a script which lets you do quick and easy Snow Leopard installs by automating the pre-install preparation process.

What exactly does the script do?

It takes care of the following:
  • Installs Chameleon 2 RC3 boot loader
  • Creates a patched dsdt.aml file for your specific motherboard
  • Installs the required kexts + boot plist

Why use this?


  • Fully automated - you only need to tell it where to install
  • No more typing commands in terminal
  • No more editing plist files
    • No need for EFI strings for nVidia graphics cards. Chameleon 2 RC3 detects them automatically.
    • No need for disk UUID strings. Again, Chameleon takes care of it.
  • Can install to any disk/partition, even to raid helper partitions
  • Can be used from within Leopard 10.5 or Snow Leopard 10.6
  • Can be used straight from the retail Snow Leo Installer DVD (follow guide below).
  • Not specific to a certain motherboard make/model.
  • Helps doing a basic pure vanilla installation quickly.
  • Can easily customize for your needs.
    • Can easily add any additional kexts for your system
    • The source code is editable

Warning:

This is not meant for complete noobs. It will not magically give you a working Snow Leopard install. The upcoming iKaros distro is recommended for that.


How do I use this?


This script could be used in a few different ways but here's the easiest way that i could come up with to get a working Snow Leo installation quickly.

Brief guide (for experienced/intermediate hackintoshers):
  • Restore the retail "Snow Leopard Install DVD" to a read/write disk partition (hdd or usb flash drive).
  • Download and extract the attached zip file to your desktop.
  • Add any additional kexts your system needs to the following location: (see tip #1 below)
    • "desktop/snow-installer/filez/Extra/Extensions/"
  • Run the script from "desktop/snow-installer/installnow" by double-clicking on it or via the terminal.
  • Go through the on-screen prompts. Select the above restored install dvd partition as the target.
    • For ex: "/Volumes/Mac OS X Install DVD" so that the installer dvd partition becomes bootable.
  • Copy the folder "desktop/snow-installer" to the above restored location.
    • For ex: "/Volumes/Mac OS X Install DVD/"
  • Restart the computer and boot into the above install dvd disk/partition.
  • After the retail installer loads, click "Utilities" > "Terminal" in the menu and type the following to run the script again:
    • "/snow-installer/installnow"
  • Go through the prompts again and select your ultimate Snow Leo destination disk/partition.
    • For ex: "/Volumes/MySnowLeo"
  • Close terminal and continue with the retail snow installer and select the same location as step 9 for the install target.
    • "/Volumes/MySnowLeo"

That's it in 10 easy steps!!!


Is this guaranteed to work?

Hell no!!! No guarantees...
Use at your own risk...

This is just a tool that i made to make my life easier when doing new OSX installations for myself and friends. Just wanted to give something back to the community.

I apologize in advance if i don't answer your questions in a timely manner. Im sure all the other knowledgeable members here will step in and help...

Last but not least... My heartfelt gratitude goes out to the following people:

-The Chameleon Team (for a kick ass boot loader)
-Netkas (for fakesmc)
-Fassl (for the dsdt patcher)
-Voodoo Team (for voodoohda and voodoops2)
-Psystar (for openhaltrestart)
-iAtkos Team (for giving me my first fully working hackintosh)
-Everyone else that's made OSX86 a reality.

LONG LIVE THE HACKINTOSH SCENE!!!


Note for non-nVidia graphics card users:

If your graphics card is not nVidia, chameleon's auto graphics detection will not work. Before doing anything, please edit the file "desktop/snow-installer/filez/Extra/com.apple.boot.plist" and change the "Yes" to "No" where it says:

GraphicsEnabler=Yes

Then you will have to take whatever measure necessary to add the proper graphics card support by using EFI strings, injectors/enablers, custom kexts, etc. Just search the web/forums for help with that...

Tip 0:

Before running this script, please go through your bios setup and make sure that the following(or similar) are enabled if available. these settings help in trouble[free/less] booting.

hpet(high precision event timer), sata ahci, intel xd(execute disable bit), intel vt (virtualization technology), acpi 2, s3 sleep state, intel speedstep

even if they are not available, just give it a whirl and see what happens.

Tip 1:


The kexts that are included in this package are only the real basic ones that are required to get a basic vanilla system running on most modern desktops assuming it has sata hdd's with ahci support + multi core intel processor + intel chipset on southbridge etc...

You may have to add any additional kexts your system might need for ex: sound + network + ide hdd support etc. if they are not detected by the stock kexts that come with snow leo...

The best way to figure out what additional kexts are needed, is to look at a guide specifically written for you motherboard or computer model and see which kexts are missing and simply add them in step 3 of the above guide.

Tip 2:

Some kexts such as network card drivers, sound drivers (voodoohda) do not work from "/Extra/Extensions" if that's the case for you, simply move them to "/System/Library/Extensions" once you get your basic snow leo up and running.

Tip 3:

After messing with the "/System/Library/Extensions" always issue the following commands in the terminal so that there wont be any errors regarding permissions and outdated boot caches:
  • sudo chown -R root:wheel /system/library/extensions
  • sudo chmod -R 755 /system/library/extensions
  • sudo diskutil repairpermissions /volumes/NAMEOFSNOWVOLUME
  • sudo touch /system/library/extensions

Tip 4:


This script generates and places a dsdt.aml file on the target disk which will only work with the computer you ran it on.

If you want to try booting that disk on a different computer, you can temporarily disable the loading of the patched dsdt.aml by interrupting chameleon at boot time by pressing any key and typing in the following:

"DSDT=nothing.aml" without quotes.


Tip 5:

The patched dsdt.aml currently does not include the "cmos reset fix" which is required if your bios/cmos gets corrupted/reset everytime you reboot. So if your mobo suffers from this problem, you will have to edit your dsdt manually. Guide's can be found on the net on how to do that...
Im currently trying to learn the C language so i can update Fassl's dsdt patcher code with the cmos reset fix. If any of you C pros out there would like to help, that would be great!!!

Revision History:

v1.0:
  • Initial release
v1.1
  • fixed issues encountered when running from within leopard 10.5
  • solved bash external command dependencies when running from the retail dvd installer
  • increased error checking for trouble[free/less] operation
  • enabled manual volume mounting/unmounting in case of error
  • updated the guide for better and trouble[free/less] install experience

Request from the pros:

If you think any of the info on this post is incorrect or could be improved, please do let me know...

And you guys are welcome to edit the script and make improvements to it. Just send me a copy so i can post it up here...

Attached Files



#2
protector2020

protector2020

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 3 posts

Warning:

This is not meant for complete noobs. It will not magically give you a working Snow Leopard install. The upcoming iKaros distro is recommended for that.

...


LONG LIVE THE HACKINTOSH SCENE!!!



Thanks dude, I will try this out, it looks very useful. Feedback's on the way.

#3
dj nitehawk

dj nitehawk

    InsanelyMac Protégé

  • Members
  • PipPip
  • 96 posts

Thanks dude, I will try this out, it looks very useful. Feedback's on the way.


hey a few of us at infinitemac found a few issues with this script... so im trying to fix those now...

just doing some final testing...

will update this post with version 1.1 soon... you can try the existing v1 and give me feedback...

here's the link to the other forum so you might find some answers there:

http://www.infinitem...-vanilla-t4041/

#4
dj nitehawk

dj nitehawk

    InsanelyMac Protégé

  • Members
  • PipPip
  • 96 posts
main post has been updated with the latest version 1.1 and the guide has been modified...

do re-read and retry if you had trouble with vertions 1.0

thanks for any feedback you can give...

#5
Sp12.07

Sp12.07

    InsanelyMac Protégé

  • Members
  • Pip
  • 7 posts
Great tool.

For tip 3, just link people to kext utility.

It repairs permissions automatically.

#6
rohizzle121

rohizzle121

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 159 posts
  • Gender:Male
  • Location:The Woodlands , Texas
Wow, this is really awesome!
I have yet to try the new version. For some reason I kept getting a KP during boot when I had the mkext file, so I just took it out. And it started working, but then my DMG I think got curruted because when I o
looked at the log, when copying the voice,pkg. It would just fail. Good thing I have all Sunday to try your way! I'll reprt back soon!;)

#7
aaParis

aaParis

    InsanelyMac Protégé

  • Members
  • Pip
  • 19 posts
  • Gender:Male
  • Location:Paris
hello,

this guide seems like it presents the most elegant solution as of yet !

i am not a very confident hacker,,, so i have a question concerning the following step;
(lol, i actually always used apple hardware unntill now,,)

6. Add any additional kexts your system need to the following location:
"/Volumes/Mac OS X Install DVD/snow-installer/filez/Extra/Extensions/"


i have made my personal setup as follows;
-Gigabyte motherboard EP45-UD3R
-Intel core 2 duo Q9550
-Gigabyte nVidia 9600GT 512mo (GV-N96TSL-512I)
-Seagate barracuda 7200.12 (ST31000528AS)
-Samsung SH-S223L/BEBS DVD Burner
-TRENDnet TEG-PCITXR ethernet card

when i looked in the filez/Extra/Extensions folder i compared the kext's with the ones suggested for my motherboard in this thread; EP45-UD3R thread, and they list the following kext's in addition to the ones that come with your package;
-IOAHCIBlockStorageInjector.kext
-JMicronATA.kext
-LegacyHDA.kext
-NullCPUPowerManagement.kext
-PlatformUUID.kext
-SleepEnabler.kext

As i really would like to put all chances on my side as to get this right from the start, i wondered if any of the above kext's would be in conflict with those in your package, or if simply not needed,, ??

i thought that maybe the "fakesmc.kext" and "-NullCPUPowerManagement.kext" might be conflictual ??

thank you for great work,

andreas
-

#8
rohizzle121

rohizzle121

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 159 posts
  • Gender:Male
  • Location:The Woodlands , Texas

hello,

As i really would like to put all chances on my side as to get this right from the start, i wondered if any of the above kext's would be in conflict with those in your package, or if simply not needed,, ??

i thought that maybe the "fakesmc.kext" and "-NullCPUPowerManagement.kext" might be conflictual ??

thank you for great work,

andreas
-



fakesmc.kext (32bit and 64bit compatible) -> emulates SMC to provide the information required for the Don't Steal Mac OS X.kext to decrypt the Apple encrypted files

NullCPUPowerManagement.kext (32bit and 64bit compatible) -> A problem with running OS X running on non-Apple hardware (both physically and in VM) is that the AppleIntelCPUPowerManagement.kext invariably causes a kernel panic or at bootup generates endless messages regarding the HPET and links to the CPU. AFAIK the NullCPUPowerManagement.kext plays a couple of tricks with the IOKit service registration process to take over the role of the AppleIntelCPUPowerManagement.kext, essentially disabling it. Also deals with heat issues.....




nope, they do two different things.

#9
mattrb4

mattrb4

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts
I dont know if you hackintosh community members already know, there is a better script then this guy is purporting and the script has many more features. It has features that this nighthawk guy (no offense) will never have and features he will upgrade the script with are amazing too. Unlike nighthawks new script, DD's script has been tested for a long time, with most bugs that can occur with scripting, removed over time. You can make kexts packages with DD's script and release them for your motherboard. Although, DD needs full credit where due because he is a very caring Insanelymac member and earned his respect.

Now here is the NEW most easy solution for you and everyone.

Use this script from DD, link
more info on that script here, link

This script is for ddr3 platforms, but will work on any computer, so Change the smbios in the plist to memtype=19 for your ddr2 platform.

Read up on this easy smbios guide from BlackOSX's pdf at this link
In relation to the kexts, sound will need voodoohda for most systems and you put that in the correct place in the script folders (out of repository and into main sound folder) to make the script insert the correct kext into your extra folder.

Other then that, the script creates the dsdt for you automatically, as well as entering the kexts (Which you need to carefully choose into your extra folder, chameleon and the plists.

Basically, use this path for now on.

#10
funkmasta

funkmasta

    InsanelyMac Protégé

  • Members
  • Pip
  • 39 posts
Just a quick question. Since this generates DSDT for your MB, that would mean you need to be running this script on the computer you're installing it on? I don't have OS X on my hack yet, was planning on setting up the install from my Macbook since that has been advised previously.

#11
rohizzle121

rohizzle121

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 159 posts
  • Gender:Male
  • Location:The Woodlands , Texas

Just a quick question. Since this generates DSDT for your MB, that would mean you need to be running this script on the computer you're installing it on? I don't have OS X on my hack yet, was planning on setting up the install from my Macbook since that has been advised previously.


yeah your gonna need leo or snow on your computer already for this too work. becuase the DSDT.aml is made for your hardware speficially.

I dont know if you hackintosh community members already know, there is a better script then this guy is purporting and the script has many more features. It has features that this nighthawk guy (no offense) will never have and features he will upgrade the script with are amazing too. Unlike nighthawks new script, DD's script has been tested for a long time, with most bugs that can occur with scripting, removed over time. You can make kexts packages with DD's script and release them for your motherboard. Although, DD needs full credit where due because he is a very caring Insanelymac member and earned his respect.

Now here is the NEW most easy solution for you and everyone.

Use this script from DD, link
more info on that script here, link

This script is for ddr3 platforms, but will work on any computer, so Change the smbios in the plist to memtype=19 for your ddr2 platform.

Read up on this easy smbios guide from BlackOSX's pdf at this link
In relation to the kexts, sound will need voodoohda for most systems and you put that in the correct place in the script folders (out of repository and into main sound folder) to make the script insert the correct kext into your extra folder.

Other then that, the script creates the dsdt for you automatically, as well as entering the kexts (Which you need to carefully choose into your extra folder, chameleon and the plists.

Basically, use this path for now on.



are you kidding?
do you see how many words there are in that guide and in this guide?
this guide worked perfectly for me and i didnt even have to like do much.
theres so much changing in that one and whatnot.

anyways, i want to thank the OP very greatly for getting sn0w to work on my comp! thanks so much dude :D

#12
mattrb4

mattrb4

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts

are you kidding?
do you see how many words there are in that guide and in this guide?
this guide worked perfectly for me and i didnt even have to like do much.


Your condescending attitude towards me in relation to my post #9 will convince nobody that DD's script is less comprehensive then nitehawks script.

I have to say that you not even trying DD's script and making an opinion on it would be wholeheartedly stubborn.

You could just ignore any guides or information on DD's script and just run it as is and it would work perfectly just as you desire, you just need to fix the smbios plist for ddr2 if need be.

#13
rohizzle121

rohizzle121

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 159 posts
  • Gender:Male
  • Location:The Woodlands , Texas

Your condescending attitude towards me in relation to my post #9 will convince nobody that DD's script is less comprehensive then nitehawks script.

I have to say that you not even trying DD's script and making an opinion on it would be wholeheartedly stubborn.

You could just ignore any guides or information on DD's script and just run it as is and it would work perfectly just as you desire, you just need to fix the smbios plist for ddr2 if need be.


sorry about that, i just feel like you were bashing the op.

i actually looked into the directions and whatnot and the directions and i felt as though teaching someone who knew nothing about osx86 would be able to use this script better than the other one.

#14
dj nitehawk

dj nitehawk

    InsanelyMac Protégé

  • Members
  • PipPip
  • 96 posts
wow!!! DD's script is pretty full on... if i had seen that before i might have not created this script at all...

but... i really hate long as guides and a long as lists of things to do...

that's why i've tried to really simplify things with my brief guide and the script...

to be honest im not out to prove anything or try to win the best script of the month award or anything like that...

as noted in the main post, i didnt make this script for the public, i made it for myself... and i felt guilty not sharing it cos it could help others reduce the amount of work needed when doing new installs...

i initially thought this script would not be helpful for newbies but it seems i was wrong... a number of moderately experienced hackintoshers have had success with this...

so yeh... use mine, use DD's... i dont care... as long as u can get ur osx up and running...

good luck to everyone!!!

Wow, this is really awesome!
I have yet to try the new version. For some reason I kept getting a KP during boot when I had the mkext file, so I just took it out. And it started working, but then my DMG I think got curruted because when I o
looked at the log, when copying the voice,pkg. It would just fail. Good thing I have all Sunday to try your way! I'll reprt back soon!:rolleyes:


v1.1 doesnt come the the mkext... retry with new version...

hello,

this guide seems like it presents the most elegant solution as of yet !

i am not a very confident hacker,,, so i have a question concerning the following step;
(lol, i actually always used apple hardware unntill now,,)



i have made my personal setup as follows;
-Gigabyte motherboard EP45-UD3R
-Intel core 2 duo Q9550
-Gigabyte nVidia 9600GT 512mo (GV-N96TSL-512I)
-Seagate barracuda 7200.12 (ST31000528AS)
-Samsung SH-S223L/BEBS DVD Burner
-TRENDnet TEG-PCITXR ethernet card

when i looked in the filez/Extra/Extensions folder i compared the kext's with the ones suggested for my motherboard in this thread; EP45-UD3R thread, and they list the following kext's in addition to the ones that come with your package;
-IOAHCIBlockStorageInjector.kext
-JMicronATA.kext
-LegacyHDA.kext
-NullCPUPowerManagement.kext
-PlatformUUID.kext
-SleepEnabler.kext

As i really would like to put all chances on my side as to get this right from the start, i wondered if any of the above kext's would be in conflict with those in your package, or if simply not needed,, ??

i thought that maybe the "fakesmc.kext" and "-NullCPUPowerManagement.kext" might be conflictual ??

thank you for great work,

andreas
-


yes u can add those safely... there's nothing that conflict with whats included... but... i suggest you do this...

try booting with whats included... and if things arent working, try adding kexts that should solve the problems one by one...

my theory is "why waste resources on things that might not be needed?"

or u could start with all of them, and start removing one by one... if the removed kext doesnt do any damage, they can remain removed...

up to you :-)

Just a quick question. Since this generates DSDT for your MB, that would mean you need to be running this script on the computer you're installing it on? I don't have OS X on my hack yet, was planning on setting up the install from my Macbook since that has been advised previously.


please refer to tip no: 4 on the main post...

im currently trying to find a solution for a universal dsdt... will update when sorted...

#15
mattrb4

mattrb4

    InsanelyMac Protégé

  • Members
  • PipPip
  • 55 posts

sorry about that, i just feel like you were bashing the op.


No, no bashing, dj nitehawk is an honorable person for helping the community. I just wanted to give my 2 cents on my experiences with scripts that ease the process of installing SL. It can be really hard for uninformed souls and who ever goes out of there way and makes that path easier is really doing a good deed for us all.

wow!!! DD's script is pretty full on... if i had seen that before i might have not created this script at all...


Good effort either way, maybe you guys could combine your awesome skills somehow.

#16
Yan Chabot

Yan Chabot

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
  • Gender:Male
Thx to you dude i now run SL flawlessly on my p5k-e I am posting from it the only things i had to do after the install is install the latest chameleon boot loader, apply the time machine fix and insert my video card string with uinstaller (the time machine fix is to get rid of the uuid weird errors i got after the upgrade to 10.6.1) oh and i took the dsdt.aml from the p5ke_pack.zip i took from another tutorial that didnt work for me i've tried many install methods all week-end long and succeded with your script not even a KP nothing all is good

thank alot dude

#17
dj nitehawk

dj nitehawk

    InsanelyMac Protégé

  • Members
  • PipPip
  • 96 posts

No, no bashing, dj nitehawk is an honorable person for helping the community. I just wanted to give my 2 cents on my experiences with scripts that ease the process of installing SL. It can be really hard for uninformed souls and who ever goes out of there way and makes that path easier is really doing a good deed for us all.


Good effort either way, maybe you guys could combine your awesome skills somehow.


thank you for ur kind words!!!

i looked inside DD's script and my god, that is one real beast!!! meaning he is the mantis in scripting... i have no real skill to contribute to his project...

to be honest, this is the first bash script ive ever written...

im just an asp.net web developer who's found a way to run mac on his pc :-)

this script was made out of personal necessity... but yeh its good to know that its helped a few ppl...

i wish someday apple would stop being so greedy and release a mac os version that can be installed on any pc :-) *** yeah like thats ever gonna happen right *** :-)

Thx to you dude i now run SL flawlessly on my p5k-e I am posting from it the only things i had to do after the install is install the latest chameleon boot loader, apply the time machine fix and insert my video card string with uinstaller (the time machine fix is to get rid of the uuid weird errors i got after the upgrade to 10.6.1) oh and i took the dsdt.aml from the p5ke_pack.zip i took from another tutorial that didnt work for me i've tried many install methods all week-end long and succeded with your script not even a KP nothing all is good

thank alot dude


bloody marvelous...

fyi: the latest chameloen rc3 is included in the package...

id like to know if you are using an nvidia g.card and if the auto graphic detection didnt work for u? pls mention ur video card model?

#18
vthree

vthree

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 2 posts
THANKS A LOT! i'm now using my snow leopard hackintosh.. my only issue is SOUND!! i have none =(. When I installed snow leopard a different route I did have sound..

I tried voohooda (however you spell that) with no success: I moved it to ~\library\extensions.

i could not repair permissions afterwards.

I also tried pulling the audio files from my leopard partition - but that also did not work.. please advise!

#19
tanbk168

tanbk168

    InsanelyMac Protégé

  • Members
  • PipPip
  • 71 posts

THANKS A LOT! i'm now using my snow leopard hackintosh.. my only issue is SOUND!! i have none =(. When I installed snow leopard a different route I did have sound..

I tried voohooda (however you spell that) with no success: I moved it to ~\library\extensions.

i could not repair permissions afterwards.

I also tried pulling the audio files from my leopard partition - but that also did not work.. please advise!



#20
bmttinman

bmttinman

    InsanelyMac Protégé

  • Members
  • Pip
  • 44 posts
  • Gender:Male
Running as we write but have a question. It shows on screen as running 32-bit,is this the loader or the program running at 32-bit? Can it be set to run 64 bit.

EP45T-UD3P with ATI 4850





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy