Print service provided by iDogiCat: http://www.idogicat.com/
home logo





Home > IT > System Administration > Mac Admin

Mac Admin

open package

If right-click on it doesn't have a menu item to open it, then do it in following way:

# extract files
pkgutil --expand pkg_file_name.pkg /path/to/target/dir

# write back to pkg file
pkgutil --flatten /path/to/target/dir pkg_file_name.pkg

use remote DVD drive

Mac can use remote DVD drive hosted by Mac or Windows XP PC. If it's Windows XP, then a free software from Apple should be installed first, and then enable DVD sharing.

But this is originally designed for machines that doesn't have a DVD drive, such as MacBook Air, so for other kinds of machines (such as a MacBook with dvd drive broken), by default this is not enabled. In order to enable it, execute the following command:

defaults write com.apple.NetworkBrowser EnableODiskBrowsing -bool true
defaults write com.apple.NetworkBrowser ODSSupported -bool true

convert DVD image file format

To convert DVD imgage file from .dmg to .iso:

hdiutil convert /path/to/filename.dmg -format UDTO -o /path/to/filename.iso
# the above cmd actually creates file filename.iso.cdr
# use the following name to convert it to .iso
hdiutil makehybrid -iso -joliet -o filename.iso filename.iso.cdr