-Install Mac OS X 10.5.0/1/2 (new installation recommened! Do not install photoshop or import your itunes Library;)
-enable the root user and make it autologin!
-delete some unused stuff:
everything inside:
/System/Library/Speech/Voices - 700MB, maybe leave the default voice.
/Library/Desktop Pictures - 86MB, leave the current. Do you need screensaver?
/System/Library/Fonts - 102MB, I have not deleted it but it could be an option. Of cource only delete unused fonts.
/Library/Dictionaries - 426MB, I don`t need them on a live dvd.
swap files and sleepimage
Right now frameworks are untouched. My dvd is now 3.84GB.
-change the plist of IOHDIXController from
<key>OSBundleRequired</key>
<string>Network-Root</string>
to
<key>OSBundleRequired</key>
<string>Root</string>
I also did the same for all of the plugins.
-unzip the Mac OS X Live DVD ISO.rar onto a different partition. You`ll need at least 5GB free space!
-mount the dmg r/w "hdiutil attach -readwrite /path/to/dmg"
-use DiskUtility or asr and restore your leopard installation onto the mounted dmg.
-Delete some files
/S/L/LaunchAgents/
-com.apple.metadata.mdwrite.plist
-com.apple.Spotlight.plist (spotlight gave errors, the old trick with the hostconfig did not work for me but I included it anyways.)
-maybe com.apple.familycontrols.useragent.plist
/S/L/LaunchDaemons/
-com.apple.dynamic_pager.plist (disk swap)
-com.apple.fseventsd.plist (I got errors so I disabled it)
-com.apple.periodic-daily.plist (not really needed)
-com.apple.periodic-monthly.plist
-com.apple.periodic-weekly.plist
-com.apple.metadata.mds.plist (mds was using 100% cpu)
If you have an opinion on what else we can savely remove let me know. It speeds up booting!
-copy the RamDisk binary to
/usr/bin/RamDisk
-copy the Installation folder to
/System/Installation
-copy the rc.cdrom script to
/private/etc/rc.cdrom
Now let`s setup the ramdisks. All symlinks are included! But let me try to explain how it works. The RamDisk and the inkernel RamDisk.
________________________________________________________________________________
_____________________
example:
-symlink: -points to: -real path:
/private/tmp -> /ramdisk/contents/private/tmp /private/etc/RamDisk/contents/private/tmp
I cut the complete folders and pasted them into the RamDisk.inkernel\Contents folder in /private/etc. You need to preplace the folder with a symlink that points to the new location. Let`s take the db folder from below as an example. Go to /private/var/ and cut the db folder and paste it into /private/var/RamDisk.inkernel/Contents/private/var/. You need to make 2 new folders: private and var.
-inkernel RamDisk:
/ramdisk.inkernel/contents/private/var/db
/ramdisk.inkernel/contents/private/var/log
/ramdisk.inkernel/contents/private/var/run
/ramdisk.inkernel/contents/private/var/tmp
-RamDisk
/ramdisk/contents/private/tmp - empty
/ramdisk/contents/private/var/root - contains Desktop/Downloads, both empty and the complete Library folder with keychains. Size of Library=1MB
/ramdisk/contents/System/Library/Caches - folder is empty
/ramdisk/contents/Library/Caches - I copied all the caches, not sure if it would be better to delete them
/ramdisk/contents/Library/Logs - same here
/ramdisk/contents/Users - only contains Shared because I log in as root. If the user wants to log into his user account we need to copy it.
To do:
preheat.sh needs to be optimized
We need to figure out what else can be deleted (LaunchDaemons/Frameworks)
boot time needs to be reduced.
http://www.mediafire.com/?dei41khzkjd