a guest Apr 18th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  3. # This assumes that the ~6GB mojave installer is in the /Applications folder.
  4. # If it's not, just open the App Store, search Mojave, and you can download the installer file from there.
  6. hdiutil create -o /tmp/mojave.cdr -size 6g -layout SPUD -fs HFS+J
  7. hdiutil attach /tmp/mojave.cdr.dmg -noverify -mountpoint /Volumes/install_mojave
  8. sudo /Applications/Install\ macOS\ --volume /Volumes/install_mojave
  9. mv /tmp/mojave.cdr.dmg ~/Desktop/InstallSystem.dmg
  10. hdiutil detach /Volumes/Install\ macOS\ Mojave
  11. hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/mojave.iso
  12. mv ~/Desktop/mojave.iso.cdr ~/Desktop/mojave.iso
  13. rm ~/Desktop/InstallSystem.dmg
  15. # Now there should be an ISO on your desktop called mojave.iso
  16. # Once mojave is installed, in order to install VMware tools to enable full-screen resolution, run:
  17. sudo spctl --master-enable
  18. # on the guest OS. That will disable Gatekeeper and allow any apps and the necessary kexts to run
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand