Streamlined OSX 10.5.6/S10 Installer

Discussion on installing OS X

Moderator: SilverZero

Forum rules
The S netbook is NOT an Apple product and was never intended to run Mac OSX. Fortunately, enthusiasts have found ways to make OSX run on our netbook. However, the process may not be smooth for some. Make sure you have patience and time to get it to run. Most importantly, motivation to read and learn. This forum contains enough information to get OSX running. Most problems you may encounter can be solved just by reading through the forums or searching. So please take the time and read through the forums!

Streamlined OSX 10.5.6/S10 Installer

Postby corruption » Sun Jun 14, 2009 6:41 am

OSX Install for Lenovo S10

For Starters, I would like to thank all of the people who have made this possible: The DellEFI/VoodooProjects teams for all their incredible work, SilverZero for his thorough documentation and desire to tinker, test and verify, and an anonymous friend from IRC. You know who you are. As a precursor to this, a bit of warning -- I come from a *NIX background, and my scripting shows this in droves. When I can find a more unix-y way to do it, I will. Other than the script for the creation of the USB install media and the postinstall script, none of the work here is mine. I have simply collected the kext's that works best for me, on my pair of Part #4321 Lenovo S10's. In my desires to make a much cleaner install method (in order to simply put an OSX usb-based restore disc away for emergencies), I realized that the work I was doing directly led me to a simple installation method, and decided to share it back to the community that got me this far. As always -- use at your own risk -- this has been tested with a retail 10.5.6 image ONLY, I have not upgraded to 10.5.7 as I have no compelling reason to yet. This setup works flawlessly on my pair of S10's, but your mileage may vary.


*EDIT* Since people are outwardly linking my script, as well as stealing my documentation with no praise, the file has been relocated.

USB Installation method

This install guide assumes that you intend to dual boot your system with either Ubuntu or XP, and that you have created the necessary media to install/restore either of these with ease.

Prerequisites
    Functional OSX installation (Can be a real Mac or OSX86 machine)

    USB Stick at least 8 GB in size

    The files located in S10-USBMaker.zip -- http://binarybuccaneers.org/USBMaker-S10.zip

    OSX 10.5.6 Retail Disk

    Ubuntu Netbook Remix 9.04 USB Live Image (Download from Ubuntu.com, instructions are available at download time)

Install Media Creation

-Mount the retail OSX image file on your work Mac

-Plug in the USB

-Go to Disk Utility (Applications → Utilities → Disk Utility, or type Disk Utility into Spotlight)

-Select the USB stick's partition, and click on the erase tab. Set the Partition type to Mac OS X Extended (Journaled, not case sensitive) and name the new partition “OSXDVD” -- my scripting is not very intelligent, and this name is a prerequisite.

-Select the Restore tab, and drag the mounted OSX retail image to the “Source” blank, and drag the mounted, newly reformatted USB partition called “OSXDVD” to the “Destination” blank and click restore.

-Feel free to add any applications you may want to add to your system after installation to the Apps folder found within S10-USBMaker.zip. This folder will be copied in its entirety to the USB stick, and will appear at /Apps on the newly installed system.

-Once the image has been restored to the USB stick, run the USBMaker command from the S10-USBMaker.zip file from terminal. The script will let you know what steps its working through, as well as when it completes. You now have a bootable OSX USB stick.

Install, Upgrade, and make completely functional

****NOTE****

This step may not be necessary -- Disk Utility is a very good partitioning tool, and may achieve anything necessary for an MBR partition installation with multiple operating systems. I simply haven't tested it, as bootable Ubuntu media was available to me when I started the routine. Also note, if you are doing an OSX-only system and reformatting the drive to a GUID/EFI type partition scheme, the post install script has been adapted for you as well.


-Set Hard Drive mode from AHCI to Compatible. If USB is not set to boot before the internal hard drive, set this now as well.

-Insert the Ubuntu USB stick into the Lenovo S10, and boot the system.

-Once Ubuntu Netbook Remix has restarted, go to Accessories → Terminal. Run the following command:

Code: Select all
sudo gparted


-Once in gparted, lay out the partition scheme of your hard drive how ever you want. If you wish for Linux partitions, create these as ext2/3/4 as your needs require, and any OSX or Windows partitions, you will want to create as FAT32. They can be formatted as necessary later. Make sure that OSX is the first partition on the drive, as OSX will be taking over the boot loader purposes here. Once your drive is laid out to your desires, apply and reboot.

-When prompted to remove the Ubuntu boot media, remove the USB and replace with the OSX Install Media USB. Allow the machine to reboot, this should place you in the OSX Installer.

-Select a language and click the arrow (simply press enter if you want english), then click Utilities in the top menu. Go to Disk Utility.

-Once in Disk Utility, select the first partition on your internal drive, that you created previously for OSX. Go to the Erase tab, and format this partition as “Mac OSX Extended (Journaled, Not case sensitive)” and name the partition “OSX”. The name of the volume MUST be “OSX” exactly, or the post installation script will not work. Again, my scripts are simply a bit stupid.

-Close Disk Utility and proceed with installation. On the last screen before Install, select “Customize”, and remove the printer drivers and languages. This makes installation faster, as well as the overall size much smaller. Proceed with install, it will 'fail' at 100%.

-When the installer fails, click on “Utilities” in the top menu again. Go to Terminal, and run the the appropriate set of following commands:

For MBR partition scheme installations:

Code: Select all
postinstall
reboot


For GUID/EFI partition scheme installations:

Code: Select all
postinstall_efi
reboot


-When the installer reboots, remove the USB stick and allow the system to boot normally. You will view the introduction video (With sound!), then do the necessary steps to create your account (This can be found many places -- I personally just register ;) )

Once you're in a functional OSX desktop, there's still a few minor steps to do:

-Open a terminal window, and type the following:

Code: Select all
open /Apps/sleepwatcher_2.0.5.dmg


...and install the 2 packages within the DMG file. This is an application to bring the audio back up properly after the laptop sleeps. Once the packages are both installed, run the following command from terminal:

Code: Select all
sudo cp /Drivers/rc.* /etc/


This will wake up your audio as expected. Now we disable hibernate and remove the sleepimage:

Code: Select all
sudo pmset -a hibernatemode 0
sudo rm -rf /var/vm/sleepimage


...and thats it! Your OSX install is now ready to rock!

A few notes: Don't forget to install any applications that you added to the /Apps directory! Also, if you ever need to rebuild your kext caches, open a terminal and type the following command:

Code: Select all
kextupdate.sh


This will update both the default Apple kexts as well as the S10-specific kexts under /Extra/S10Ext

As I mentioned before, I have not upgraded to 10.5.7, I'm sure any of the many guides available (such as SilverZero's fantastic upgrade guide) will be helpful in this respect. Feel free to post any questions, comments, criticisms, suggetions, code fixes, etc! Again, this is all derived from the wonderful work produced by DellEFI, but it does not utilize any of their code and is all built by hand. Enjoy!

In case you missed the link above, the following is the download link: http://binarybuccaneers.org/S10-USBMaker.zip

-Corruption
Last edited by corruption on Thu Jun 18, 2009 4:52 pm, edited 1 time in total.
Beware the wheelchair ninja...
User avatar
corruption
Novice
 
Posts: 41
Joined: Sun May 31, 2009 1:08 pm
Location: Somewhere
Color and Model: White S10 4231 - Pink S10 4231
OS(s) installed: OSX 10.5.6 - Ubuntu 9.04 - XP SP3

Advertisement

Re: Streamlined OSX 10.5.6/S10 Installer

Postby SilverZero » Sun Jun 14, 2009 7:24 am

Sweet! I just browsed through this, it looks good. I'll have to check out exactly what's going on in your scripts and such. I may have to check in with you as well about my new multi-boot guide (should be finished today), which eliminates the need for an existing Mac installation. I think you've got the moves for everything I just let DellEFI take care of. :)
User avatar
SilverZero
Moderator
 
Posts: 1374
Joined: Wed Apr 08, 2009 3:47 pm
Location: The Great Northwest
Color and Model: Sold
OS(s) installed: All of them

Re: Streamlined OSX 10.5.6/S10 Installer

Postby corruption » Sun Jun 14, 2009 7:56 am

Sounds like a plan! Yeah, I was looking at my install USB and couldn't help but know theres an easier, more direct way to do this. Unfortunately, the DellEFI guys don't make it real easy for us (all their AppleScript is run-only), but between the hundred or so installs I did, and picking at what code you COULD see, I think I encompassed all the parts that are necessary for our lovely little S10's. Let me know, I'd love to do some collaberation where possible! :D

-Corruption
Beware the wheelchair ninja...
User avatar
corruption
Novice
 
Posts: 41
Joined: Sun May 31, 2009 1:08 pm
Location: Somewhere
Color and Model: White S10 4231 - Pink S10 4231
OS(s) installed: OSX 10.5.6 - Ubuntu 9.04 - XP SP3

Re: Streamlined OSX 10.5.6/S10 Installer

Postby corruption » Sun Jun 14, 2009 8:27 am

Oh, one last thing to my first post here -- guess I oughta give a rundown of the non-standard kexts in use here:

The big one is VoodooHDA. This one has mixed results for everyone, so of course feel free to gut it and use audieee/azalia instead. VoodooHDA works flawlessly for both my S10's, with the exception of the well-documented 'crackle after sleep' issue. I've included the workaround for this -- this is what sleepwatcher is for.

VoodooPower.kext -- Replaced VoodooPowerMini.kext, because while it was working for most power-related issues, it was not allowing VoodooUSBEHCI.kext/ClamshellDisplay.kext to load, for some reason. Swapping to VoodooPower fixed this, and caused no detriment, which leads me to:

VoodooUSBEHCI.kext/ClamshellDisplay.kext -- I found this to be the most reliable combination for sleep. I could get sleep to function sporadically at best using EHCISleepEnabler.kext and the Apple EHCI kext, but with the one exception of audio that I've documented above, VoodooUSBEHCI/ClamshellDisplay is flawless (at least in quick sleep -- haven't messed with deep sleep extensively yet). Clamshell is the only non-standard kext that is installed under /System/Library/Extensions (hereforth referred to as /S/L/E), as I ran into kext dependency hell trying to place it with the other non-standard kexts in /Extra/S10Ext. Other than this single kext, the /S/L/E path is virgin.

A few more notes -- if you apply the updates for Airport from Software Updates, you will need to remove /S/L/E/IO80211Family.Kext and run kextupdate.sh again to get your wifi back. Updates apply cleanly from Software Updates, I've run all the current available ones (with the exception of the 10.5.7 rollup). Also, if anyone knows how to install applications from a dmg post-install, before rebooting into the functional system I would love to know this -- it would allow me to reduce the manual steps needed even further :)

Thanks for reading!

-Corruption
Beware the wheelchair ninja...
User avatar
corruption
Novice
 
Posts: 41
Joined: Sun May 31, 2009 1:08 pm
Location: Somewhere
Color and Model: White S10 4231 - Pink S10 4231
OS(s) installed: OSX 10.5.6 - Ubuntu 9.04 - XP SP3

Re: Streamlined OSX 10.5.6/S10 Installer

Postby xktheonekx » Sun Jun 14, 2009 10:05 am

just looking at your installer you have made it more complicated than whats needed first your having them download a ubuntu image my first question is Y?

you just went to the thread i started and said yours is a 1/3 smaller no its not not if you have to download the
946.8MB ubuntu netbook remix editon thats just a waste of time
My current installer is only 75mb + you add your own disc image of OS X

You current installer is only 13MB + 946.8MB + Retail Disc/Image

In size i do apologize but mine does seem to be smaller

Yours is also a lil more complicated for the end user who just wants to play around

Yours is great for the advanced which is awsome and commend you for that but did you ever once think at one time you were a noob and noobs need love to lol im in the process of working on my distro honestly together we may be able to make one that is so well put together you can say good bye to DELLEFI, MSIWINDOSX, Ipc, iatkos, etc.

AND WELCOME TO THE NEW AGE OF OF S10-OSx86 THE ONLY S10(e) SOLUTION
User avatar
xktheonekx
Novice
 
Posts: 26
Joined: Tue May 26, 2009 6:41 pm
Location: Indiana
Color and Model: Lenovo S10 4231-3CU
OS(s) installed: WIN XP SP3 [INTERNAL] - OS X 10.5.7 [EXTERNAL]

Re: Streamlined OSX 10.5.6/S10 Installer

Postby corruption » Sun Jun 14, 2009 10:45 am

Hey, you're welcome to think whatever you wish of my solution, but clearly you did NOT read all of my post. All the things you mention as 'problems' in mine, are explaned as to WHY, HOW IT CAN BE ADJUSTED, and is understandable for anyone willing to do a little reading. The section about partitioning CLEARLY states that there are other ways to do this -- but whats complicated about typing ./USBMaker from a prompt? Outside of that, there is no difference for the end user from a DellEFI install, except theres no tinkering on the end result.

I appreciate your criticism, but I really think you missed the point here -- clearly SilverZero knows what my aim is, my only suggestion is perhaps actually read my post.

BTW -- based on your own math, 71 MB is bigger than 21 MB. Sorry, my installer's smaller ;)

-Corruption
Beware the wheelchair ninja...
User avatar
corruption
Novice
 
Posts: 41
Joined: Sun May 31, 2009 1:08 pm
Location: Somewhere
Color and Model: White S10 4231 - Pink S10 4231
OS(s) installed: OSX 10.5.6 - Ubuntu 9.04 - XP SP3

Re: Streamlined OSX 10.5.6/S10 Installer

Postby xktheonekx » Sun Jun 14, 2009 11:04 am

i do apologize if i upset you, it was the more stepping on the toes thing that got under skin and the way you put it all in your ealier post personally i think we should work together we could be a very dangerous team. Also i do have 10.5.7 working flawlessly if you need help in that department
User avatar
xktheonekx
Novice
 
Posts: 26
Joined: Tue May 26, 2009 6:41 pm
Location: Indiana
Color and Model: Lenovo S10 4231-3CU
OS(s) installed: WIN XP SP3 [INTERNAL] - OS X 10.5.7 [EXTERNAL]

Re: Streamlined OSX 10.5.6/S10 Installer

Postby xktheonekx » Sun Jun 14, 2009 11:13 am

looking more into your distro i do like it very very smooth
User avatar
xktheonekx
Novice
 
Posts: 26
Joined: Tue May 26, 2009 6:41 pm
Location: Indiana
Color and Model: Lenovo S10 4231-3CU
OS(s) installed: WIN XP SP3 [INTERNAL] - OS X 10.5.7 [EXTERNAL]

Re: Streamlined OSX 10.5.6/S10 Installer

Postby SilverZero » Sun Jun 14, 2009 11:27 am

Now now, children, we're all in this together. :D The goal, I think we all agree, is a simple, all-in-one package of fixes and patches that take us from the retail OSX installation to a fully-functional S10 environment. I think I've staked my claim on the retail installation part, the multi-booting options, and the documentation - that's really my comfort zone, anyway - but it sounds like we've also got a couple of good options (that will no doubt find some merging in the next couple of days) for how to get that vanilla install up to snuff for daily use. We'll need to have a little round-table discussion to decide who knows what and what the best options are. A healthy mix of well-documented / well-tested fixes and minimal clicking and editing would be good.

We're on the way. :)
User avatar
SilverZero
Moderator
 
Posts: 1374
Joined: Wed Apr 08, 2009 3:47 pm
Location: The Great Northwest
Color and Model: Sold
OS(s) installed: All of them

Re: Streamlined OSX 10.5.6/S10 Installer

Postby corruption » Sun Jun 14, 2009 11:35 am

At this point, for my needs the only thing I could further this with is expansion on postinstall -- some way to allow for the installation of sleepwatcher and the necessary rc.* files before boot. If I could run some other installers, that would be fantastic, but its completely unneeded (I package Adium, Opera, XMenu, IStat, and NeoOffice on my locked away restore disc).

The only caveat for anything, is I don't want to modify the installer in any way, just work around it as Silver mentions. I prefer the vanilla install, future-proofing is a nice thing.

I'm a night shifter, though, and that limits my time to work on pretty much anything to my off days (Thur-Sun), so expect me to be sporadic on any responses ;)

Mostly, I wanted to make this available because I feel I've pinpointed all the necessary tools from the DellEFI tools and alternate methods to achieve the same means for our S10's.. I can gladly provide more simple scripting as I've done here, but my abilities are mostly limited to simple bash scripting, unfortunately..

-Corruption
Beware the wheelchair ninja...
User avatar
corruption
Novice
 
Posts: 41
Joined: Sun May 31, 2009 1:08 pm
Location: Somewhere
Color and Model: White S10 4231 - Pink S10 4231
OS(s) installed: OSX 10.5.6 - Ubuntu 9.04 - XP SP3

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests