Home Forums OS X Server and Client Discussion Misc. Leopard Client factory default

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #372111
    Vic G.
    Participant

    What is the equivalent single user mode command (Tiger’s is below) to reset Leopard client setup assistant to factory default… IOW, taking a user profile populated Leopard box and rendering it as if it was the first time is was booted out of the box… without reformat/reinstall/archive install… etc…

    anyone?

    Thanks,

    mount -uw /
    rm -rf /private/var/db/openldap
    rm -rf /private/var/db/netinfo
    rm -rf /private/var/db/samba
    rm -rf /private/var/db/dhcpclient
    rm -rf /private/var/db/.AppleSetupDone
    rm -rf /private/var/db/.com.apple.iokit.graphics
    rm -rf /Users/xxxxxxx
    rm -rf /Library/Preferences
    rm -rf /Library/Logs
    rm -rf /Library/Caches
    reboot

    #372113
    khiltd
    Participant

    What you have there would not have actually accomplished this on any version of OS X. Software installers routinely place things in more directories than you could ever hope to account for. In no particular order, some of the things that can lead to the unprovoked execution of non-factory default code are:

    Address Book Plug-Ins
    Contextual Menu Items Plug-Ins
    Kernel Extensions
    Application Services
    Input Managers
    Internet Plug-Ins
    LaunchAgents
    LaunchDaemons
    LoginPlugins
    Preference Panes
    QuickTime Plug-Ins
    Startup Items
    SyncServices Schemas
    SystemConfiguration Plug-Ins
    Widgets
    cron jobs
    Spotlight Importers
    QuickLook Plug-Ins

    Even if you manage to find them all, figuring out which ones can be blown away without any ill-effects is not something you can script very easily since accurate bundle identifiers are not mandatory. If you need to re-flash a machine to its out-of-the-box state then you’re better off either doing a reinstall or using one of the various drive imaging utilities which can automate the process for you.

    #372116
    Vic G.
    Participant

    Understood, although I have successfully used this string of rm’s in the past, restored the flashed machine and it appeared to be free and clear… Are you saying that that string of commands I outlined is not thorough despite the fact that there is a setup assistant session executed after the fact?

    Thanks for your input!!!

    #372117
    khiltd
    Participant

    Yes, that is what I’m saying. MacBuddy will run whenever it’s told to regardless of what’s on the drive.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Comments are closed