Recently when working with a client we encountered a situation where it would be beneficial run a Mac VM on our Mac laptops, so I decided to investigate. I was in luck! It turns out this is actually really easy to do.
Mac OS X AppleDouble (Resource Fork) Format: fmt/503 (2), fmt/966 (1) , frk: Mac OS X Desktop Service Store File: fmt/394: Can be deleted. DSStore: Mac OS X Dynamic Library: dylib: Mac OS X Icon Format: icns: Mac OS X Mach Object (Mach-O) Format: o, dylib, bundle: Mac OS X Strings File Format: strings: Macromedia / Adobe Director.
To get started, download Yosemite from the App Store.
Fair warning: the download is ~5.5GB. It took me about half an hour to download, but depending on your connection speed your mileage may vary.
The following instructions are heavily borrowed from frdmn's notes blog with additional notes added as needed.
iesd
, to customize OS X InstallESD:gem install iesd
iesd -i '/Applications/Install OS X Yosemite.app' -o yosemite.dmg -t BaseSystem
hdiutil convert yosemite.dmg -format UDSP -o yosemite.sparseimage
hdiutil mount '/Applications/Install OS X Yosemite.app/Contents/SharedSupport/InstallESD.dmg'
hdiutil mount yosemite.sparseimage
cp '/Volumes/OS X Install ESD/BaseSystem.'* '/Volumes/OS X Base System/'
hdiutil unmount '/Volumes/OS X Install ESD/'
hdiutil unmount '/Volumes/OS X Base System/'
diskutil unmountDisk $(diskutil list grep 'OS X Base System' -B 4 head -1)
diskutil unmountDisk $(diskutil list grep 'OS X Install ESD' -B 4 head -1)
InstallESD.dmg
or yosemite.sparseimage
) and then select Eject Disk Image
. Repeat for the other disk as needed.hdiutil convert yosemite.sparseimage -format UDZO -o yosemitevagrantbox.dmg
What to do if you encounter the this error on the last step:hdiutil: detach failed - No such file or directory
hdiutil detach
instead of hdiutil unmount
:hdiutil detach /Volumes/OS X Base System/
hdiutil convert
command.ctrl+N
/cmd+N
to create a new VMType: Mac OS X
and Version: Mac OS X (64-bit)
if these are not populated for you (they will be if you use 'Mac' in the name). Click continue.hdiutil convert yosemitevagrantbox.dmg -format UDTO -o yosemitevagrantbox && mv yosemitevagrantbox.cdr yosemitevagrantbox.iso
1 Parition
:Make sure to use the partition for the install:
Enjoy your test VM! Create and destroy at will! Muhahahhaaha.
Gallery Remote uses two external and native applications to manipulate images. The reason for this is primarily that the loading large images in the Java VM is not a good idea and so ImageMagick is used to create thumbnails, previews and prepare images for uploading; all in a separate memory space.
Anyway... this means that ImageMagick and jpegtran (both open-source packages) need to be set up on the machine where Gallery Remote is running (the fact that they're also installed on the server is nice, but it doesn't help) and Gallery Remote has to be configured to use them. This depends on the platform you're running...
Newer versions of ImageMagick can yield substantial improvements in the time it takes to load images into GR, often speeding that up by a factor of 2.
Also, while the full version of Gallery Remote includes basic versions of ImageMagick and jpegtran, the applet version can't install these applications for you, so it's best to add them yourself.
The Windows installer for Gallery Remote includes both ImageMagick and jpegtran, so you shouldn't have to do anything to set them up.
However, there have been reports of ImageMagick being broken in some installs. The most common is an error message that goes like this: This application has failed to start because MSVCR70.dll was not found. Reinstalling may fix this problem.. You can fix this by downloading MSVCR70.dll and copying it into your C:windowssystem32 (or C:WINNTsystem32 on older NT-based systems).
If that doesn't work, you should download the full version of ImageMagick and install it.
The Mac package includes jpegtran, but it does not include ImageMagick, so you need to download ImageMagick and install it. Alternatively, if you're not comfortable with the command line, here's a slightly older package from Marc Liyanage].
If you have installed the ImageMagick executable (convert) in /usr/local/bin, then you don't have to do anything.
However, MacPorts installs it in /opt/local/bin, which is not in the PATH variable that is available to Mac applications (even if you changed your .profile, that affects only applications launched from Terminal). You need to update or create the file /etc/launchd.conf so that MacPorts packages are available to Mac apps:
and in that file, create or edit a line like:
and save the file (^X and save). A reboot is necessary before these settings take effect. Please see this page for more details. Note that you can't use he $PATH variable in this file because it's not defined yet at this point. Because this affects all users, you no longer have to have a per-user .profile that includes /opt/local/bin.
If you have installed ImageMagick using Fink or Darwinports/MacPorts you must edit the file GalleryRemote.app/imagemagick/im.properties. Change the line that says:
to
Instead of editing GalleryRemote.app/imagemagick/im.properties you can just add the lines above to the GalleryRemote.properties file. This also works for cases where you're running Gallery Remote via WebStart or one of the applets based on GR.
The Linux package includes neither utility, but luckily, most Linux distributions include ImageMagick and/or jpegtran.
If yours doesn't, the ImageMagick site has pre-built packages. RPMs and such of jpegtran can be found everywhere.
If the packages are installed in your PATH, no further action should be necessary. If it doesn't work, you may want to edit the Gallery Remote configuration file imagemagick/im.properties and jpegtran/jpegtran.properties (inside the Gallery Remote installation directory) and change the value of imConvertPath (jpegtranPath) to point to the respective executables.
The only way the applet version of Gallery Remote will find and use both ImageMagick and jpegtran is if they are already installed on your computer.
Gallery Remote (1.4.2-b24 and later) should automatically locate ImageMagick (if the reg.exe utility is available, which is the case on W2k anx XP). If it doesn't find it automatically, you need to edit the Gallery Remote configuration file imagemagick/im.properties (inside the Gallery Remote installation directory) and change the value of imConvertPath to point to the convert.exe executable in the installation of ImageMagick.
The jpegtran.exe executable needs to be placed in the PATH on your system. Your best bet is to copy it to C:WindowsSystem32 (or C:WINNTsystem32 on older NT-based systems).
Refer to the Standalone section for installation.
Refer to the Standalone section for installation.