Before you start, make sure you have a verified working clone of both partitions/systems.
You will ideally want to have software that can clone partitions, such as either the excellent CarbonCopyCloner, or the equally awesome SuperDuper, both of which will allow for your needs (complete clone) in their Shareware mode.
I don't know what tools are suitable for PC, but find one that does the equivalent for Windows installations.
Reboot from your cloned Mac OSX installation, and prepare to repartition your target Hard Drive. Disk Utility can sometimes repartition volumes non-destructively, but for this I would recommend quick erasing the drive and repartitioning to the desired sizes for each OS, with a caveat for the situation below.
Repartition as desired (ensure GUID, journaled, case-insensitive for the Mac Volume), noting you may need to go through various procedures if you are using OSX 10.7 Lion and wish to retain the hidden recovery partition (ie: you may have to reinstall Lion and restore from your backup, then proceed with Bootcamp installation which will again walk you through creating a suitable PC formatted boot volume which you can later clone your Windows installation back to).
Clone back the OSX Installation that you are booted from to the target Mac partition on the internal drive (if you haven't already restored from this in the previous step). Do the equivalent process in Windows for your Windows installation.
Test each by booting into each and making sure everything works as expected.
That looks like a shell script that is missing the shebang at the top of the file.
It could be that it is intended to be copied into an existing script to provide OS X-specific functionality so the main script can be portable (I'd expect there to be dotfiles for other operating systems, as well.)
On the other hand, it could be intended as a file of ideas and you pick the ones you want and paste them into your .bashrc
or .bash_profile
.
Best Answer
The System Preferences appear to be stored in various places, depending on whether they are user or system specific. A lot of them are stored in either
/Library/Preferences/
or$HOME/Library/Preferences/
(for per-user settings). But each preference pane will have its own way of storing them.You can see which preferences are stored this way by typing:
Where
<domain>
is either the start of the filename in your per-user system preferences, or the full path to a.plist
file. For example:The former will show your per-user customisation of the screensaver settings, while the latter will show the system screensaver settings.
The settings are largely organised by preference pane, though not necessarily that straight forward. You'll likely have to poke around in
/Library/Preferences
and sub-folders (especiallySystemConfiguration
) to find them all.One option would be to just copy the relevant files out, and put them back in place for new installations.
Another way would be to export and import it as required.
Exporting the Power Management (Energy Saver) System Preferences to pm.plist:
Importing those preferences from
pm.plist
on the new computer:You may even want to edit the various exported
.plist
files if there are specific system preferences you do/don't want to share between computers. That way you can have some customisation locally, and theimport
command will not overwrite those, just add the ones you've set in the.plist
files. You can use thedefaults
command to modify your own.plist
files as well (but make sure you specify the full path to the file, not just a name, or you may be modifying your per-user preferences).