Mounting DMGs w/ HFS partitions:
http://linuxforums.org.uk/index.php?topic=1072.0
apt-get install hfsplus hfsutils hfsprogs dmg2img
| #!/usr/bin/python | |
| import ctypes, ctypes.util | |
| # Import CoreGraphics as a C library, so we can call some private functions | |
| c_CoreGraphics = ctypes.CDLL(ctypes.util.find_library('CoreGraphics')) | |
| def disable_beam_sync(doDisable): | |
| if doDisable: | |
| # Disabling beam sync: | |
| # 1st: Enable Quartz debug |
| #!/usr/bin/python | |
| # | |
| # Simple python example of a Pashua password prompt window with a checkbox | |
| # for saving the password to the keychain. None of it is wired up to | |
| # actually function. It's just an example of what you can do. | |
| # | |
| # For easiest testing, you should have the Pashua.py connector and Pashua.app | |
| # in the same directory as this script. | |
| # | |
| # The test password is 'password'. |
| #!/bin/sh | |
| # Install latest vmware tools from vmware.com repo for rhel 6 | |
| # get cert | |
| wget -P /tmp http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub | |
| # install cert | |
| sudo rpm --import /tmp/VMWARE-PACKAGING-GPG-RSA-KEY.pub | |
| # Setup repo |
| #!/usr/bin/python | |
| # As written, this requires the following: | |
| # - OS X 10.6+ (may not work in 10.10, haven't tested) | |
| # - python 2.6 or 2.7 (for collections.namedtuple usage, should be fine as default python in 10.6 is 2.6) | |
| # - pyObjC (as such, recommended to be used with native OS X python install) | |
| # Only tested and confirmed to work against 10.9.5 | |
| # Run with root |
Mounting DMGs w/ HFS partitions:
http://linuxforums.org.uk/index.php?topic=1072.0
apt-get install hfsplus hfsutils hfsprogs dmg2img
| #!/usr/bin/python | |
| # modify_basesystem_dmg.py | |
| # | |
| # Adds additional frameworks to BaseSystem.dmg - Python is default | |
| # Modify cpioextract() and xar_source to change what is extracted, | |
| # and from what OS X installer PKG. | |
| # | |
| # To invoke: | |
| # | |
| # ./modify_basesystem_dmg.py /path/to/InstallESD.dmg |
| #!/usr/bin/python | |
| # As written, this requires the following: | |
| # - OS X 10.6+ (may not work in 10.10, haven't tested) | |
| # - python 2.6 or 2.7 (for collections.namedtuple usage, should be fine as default python in 10.6 is 2.6) | |
| # - pyObjC (as such, recommended to be used with native OS X python install) | |
| # Only tested and confirmed to work against 10.9.5 | |
| # Run with root |
| class ProgressDialog(object): | |
| def __init__(self, message, title, use_bar=True): | |
| super(self.__class__, self).__init__() | |
| self.message = message | |
| self.title = title | |
| self.use_bar = use_bar | |
| self.queue = None | |
| self.process = None | |
| def display(self): | |
| # [ begin black magic ] |