Tuesday, 10 July 2012

Creating a Master Image for Mac OS X 10.7

So, I've just got a bunch of new iMacs and I'm creating a new master so I thought I could note down what I'm doing.


  1. Go through the initial steps of OS X 10.7.3
    1. username - Administrator
    2. fill in details
  2. setup some System Preferences
    1. in System Preferences > Users
      1. Guests
        1. Tick "Allow Guests to log into this computer"
      2. Login Options
        1. tick the "show username and password fields"
        2. go to Join and open Directory Utility
          1. Active Directory
            1. domain students.chesterfield.ac.uk
            2. name the computer
              1. domain admin username and password
          2. LDAPv3
            1. put in mac server address
            2. its all automatic
          3. goto Edit > Enable Root User
            1. enter a special root password
    2. System Preferences > Network
      1. Ethernet > Advanced > Proxies > Automatically Detect Settings
    3. System Preferences > Date and Time
      1. tick "set date and time automatically" and give it a****dc1.chesterfield.ac.uk
    4. System Preferences > Sharing > Remote Management
      1. Tick Remote Management
      2. click "Options"
        1. tick all of these
      3. click "Computer Settings"
        1. tick all of these
        2. put a password for VNC
  3. Install stuff:
    1. Sendlogon
      1. for proxy login
    2. NHR
      1. for Caches and other network folder redirections
    3. Fix NHR and Sendlogon
      1. so that sendlogon is added to the NHR login script
    4. UniFLOW client
      1. for print management info
    5. Intuos drivers
      1. for tablets
    6. Brushes Viewer
    7. Adobe Creative Suite 5
      1. mount the CD Master dmg file and run the normal install file
        1. don't need to drag it to the local drive
    8. Adobe Acrobat Pro 9
      1. just drag it to the Applications folder
      2. run it once to put in serial number
    9. Update Photoshop Camera RAW
    10. Burn 2.5.1
      1. for burning a multitude of different disks and ISO's
    11. Carbon Copy Cloner 3.4.5
      1. just drag app to Applications folder
    12. Celtx 2.9.7
    13. ClickView 2.0.0
      1. comes with Flip4Mac
    14. DivX 7.3
    15. DropBox 0.7.110
      1. drag to Applications folder
    16. Firefox 13.0.1
      1. drag to desktop
      2. if there's no profile in the users library it defaults to "use system settings"
    17. Google Chrome version 20
    18. Sketchup 8.0.14345
    19. Final Cut Studio 2

      1. Running Final Cut Studio 2 from disk it comes up with:
        1. You can't open the application FinalCutStudio.mpkg because PowerPC applications are no longer supported.
        2. Doh!
      2. I did a search on Google and found this Blog Article on how to manage it
        1. Basically run the installer from Command Line by typing the following:
        2. sudo installer -package /Volumes/Final\ Cut\ Studio/Installer/FinalCutStudio.mpkg -target /
        3. Came up with lots of Errors though, as described in the blog:
          1. 2012-07-09 13:02:25.728 installer[26889:9803] PackageKit: Token definition is missing bundle identifier, skipping: {
          2.     path = "/Applications/Final Cut Pro.app";
          3.     searchPlugin = CheckPath;
          4. }
        4. looks like it's searching for previously installed versions?
      3. In the end it came up with:
        1. installer: The install was successful.
      4. although it usually takes a few hours to install, this took 8 minutes
        1. It's because it didn't install the extras
        2. To do so, you can do it from the disks:
          1. Audio Content for Soundtrack Pro
          2. Motion Content
          3. DVD Studio Content
          4. LiveType Media 1 and 2
            1. comes up with the same PowerPC errors
            2. Type:
              1. sudo installer -package /Volumes/LiveType\ Media\ 1/Installer/LiveTypeMedia1.mpkg -target /
              2. sudo installer -package /Volumes/LiveType\ Media\ 2/Installer/LiveTypeMedia2A.pkg -target /
    20. XDCAM Final Cut Pro Plugin
      1. Needs Final Cut Pro 6.0.3 or above. Installed version is 6.0.1.
        1. Update via Software Update
    21. Handbrake 0.9.6
    22. iWork '09
    23. Logic Studio
      1. Same error as with Final Cut Studio
      2. Found this website with similar results
      3. Typed this:
        1. sudo installer -package /Volumes/Logic\ Studio/Installer/LogicStudio.mpkg  -target / -verbose
        2. decided to use verbose mode to see what exactly happens. Most interesting.
      4. I think it helps if you have all your disks saved as disk images and all mounted at once. Seems to work.
      5. Not sure if it installed the extras. To make sure I ran the Audio Content installer
      6. What might be worth looking into is this forum above for installing extras
        1. ran this as in the website above:
          1. for f in /Volumes/Jam\ Pack\ Content\ 1/Installer/Packages/*.pkg; do sudo /usr/sbin/installer -pkg "$f" -target / -verbose; done
    24. Maya 2008
      1. although not the licence aw.dat file
    25. Microsoft Office 2011
    26. MPlayer OSX Extended R14
      1. Plays nearly all Video formats
    27. Nikon ViewNX 2
      1. for Nikon Camera RAW stuff
    28. Omni Disk Sweeper 1.7.2
      1. for checking disk space issues
    29. Libre Office 3.5.4
      1. basically an off-shoot of OpenOffice
    30. RealPlayer SP 12
      1. for streaming stuff
      2. might have to put in proxy settings?
        1. not even sure if we're using this?
        2. yes, it is setup by autodetect settings
        3. set through ~/Library/Preferences/com.RealNetworks.RealPlayer
        4. particularly "RealPlayer\UseSystemHTTPProxy" string "1"
    31. Skype 5.8.0.945
      1. you never know!
    32. SMART board 10.8
      1. Apparently rolling out 11 next year
    33. VLC Media Player 2.0.2
    34. Canon MFD drivers
      1. whoops, missed off these!
  4. Log out and back in as Networked user to connect to internet (with sendlogon)
    1. Note: needs to be on the Mac VLAN to use sendlogon
    2. Test Safari and other things for internet connectivity
      1. working
    3. Do an Apple Software Update
      1. update from 10.7.3 to 10.7.4
      2. airport update
      3. iTunes 10.6.3
        1. connection reset by peer
        2. looks like a manual download
      4. Camera RAW update
      5. etc...
    4. Microsoft Update
    5. Adobe Update
    6. App Store Updates!
      1. it's a new one to me
      2. you also NEED an Apple ID!
      3. having a few problems downloading BIG updates for iPhoto and iMovie
        1. seems to stop 400MB into the download and says it's having trouble
        2. Lucky thing is that it carries on from where it left off, so just keep pressing the retry button and it'll eventually download it all
      4. Install more Apps:
        1. iBooks Author
          1. for making iBooks!
      5. SketchBook Express
        1. made by SketchBook Pro people
      6. Need to look into App Store Permissions
        1. can anyone install via the App Store?
        2. is it just saved to their Home Drive?
        3. Confussed!
        4. this forum might help
    7. Test all Applications:
      1. Illustrator
        1. Working
      2. Photoshop
        1. Working
      3. InDesign
        1. Crashes when you try the Spell Check
          1. turns out NHR gives the wrong permissions for the ~/Library/Application\ Support/Adobe folder
          2. I changed NHR so that this Adobe folder is a symlink instead of the child folders for Illustrator and Acrobat
            1. added these lines to LIclean.hook
              1. rm -rf "$home_loc"/Library/Application\ Support/Adobe
              2. mkdir /tmp/$1/Adobe
              3. ln -s /tmp/$1/Adobe/ "$home_loc"/Library/Application\ Support/Adobe
          3. overwrote LIclean.hook in NHR.pkg/Contents/Archive.pax.gz
            1. first unzip it
            2. replace file
            3. zip it back up again:
              1. ditto -c --keepParent /Archive/Library Archive.pax
              2. gzip -9 Archive.pax 
      4. Fireworks
        1. working
      5. Flash
        1. working
      6. Dreamweaver
        1. hangs when loading up.
        2. updating to 11.0.4
          1. now it prompts to load up extension manager every time!
          2. but it does end up loading Dreamweaver
      7. Acrobat Pro
        1. Working
      8. Aperture
        1. Working
      9. Audacity
        1. Working
      10. BookSmart
        1. permissions issue with .app folder
          1. gave everyone read only
        2. crashes on load up
          1. found this entry in Console Log
            1. 06/07/2012 15:21:23.621 [0x0-0xb40b4].com.blurb.booksmart: log4j:ERROR setFile(null,true) call failed.
            2. 06/07/2012 15:21:23.621 [0x0-0xb40b4].com.blurb.booksmart: java.io.FileNotFoundException: metrics.log (Permission denied)
            3. 06/07/2012 15:21:26.275 com.apple.launchd.peruser.2069522553: ([0x0-0xb40b4].com.blurb.booksmart[6906]) Exited with code: 1
          2. assuming it's a problem with folder permissions in ~/Library/
          3. not sure it's worth fixing?
      11. Word
        1. worked
      12. Powerpoint
        1. worked
      13. Excel
        1. worked
      14. outlook
      15. Google Chrome
        1. crashes on startup
          1. loads a window with google mail login screen and then sends crash report.
          2. just tried creating a symlink to the local drive for ~/Library/Application\ Support
            1. ln -s /Users/Shared/temp/Google ~/Library/Application\ Support 
          3. Works a treat
          4. Need to add this to NHR scripts
            1. Viewed the Package contents of NHR.pkg
            2. unzipped Archive.pax.gz
            3. went into Library/Scripts/
            4. edited LIclean.hook
              1. added these lines:
              2. mkdir /tmp/$1/Google
              3. rm -rf "$home_loc"/Library/Application\ Support/Google
              4. ln -s /tmp/$1/Google "$home_loc"/Library/Application\ Support/
            5. made it into an Archive.pax.gz file (found in this forum)
              1. ditto -c --keepParent /Volumes/General\ Work/Problem\ Solve/NHR\ with\ new\ redirections/Archive/Library /Volumes/General\ Work/Problem\ Solve/NHR\ with\ new\ redirections/New-12-8-2012/Archive.pax
              2. gzip -9 /Volumes/General\ Work/Problem\ Solve/NHR\ with\ new\ redirections/New-12-8-2012/Archive.pax 
            6. put it back in the Package Contents
          5. done
        2. Picks up Proxy settings from operating system
      16. Firefox
        1. works a charm
        2. Picks up proxy settings from system
      17. Celtx
        1. worked
      18. Clickview
        1. needs the server set as clickview.s*******.chesterfield.ac.uk
          1. set in file: ~/Library/Preferences/clickview.player.server.plist
          2. either set on xserves managed preferences
          3. or on the OS X managed preferences
      19. fix everything please
        1. works beautifully
      20. Sketchup
        1. worked
      21. HandBrake
        1. Worked
      22. iBooks Author
        1. Worked
      23. iMovie
        1. Worked
      24. iPhoto
        1. prompts to upgrade library and fails as it is on an unsupported media
          1. Known Problem
      25. iTunes
        1. worked
      26. Pages
        1. Worked
      27. Keynote
        1. worked
      28. numbers
        1. worked
      29. Libre Office
        1. worked
      30. MPlayer OSX extended
        1. Worked
      31. realPlayer
        1. worked
      32. SketchBook Express
        1. Worked
      33. Skype
        1. worked
      34. Notebook
        1. needed license but we have it
        2. worked
      35. Final Cut Pro
        1. worked
      36. Logic
        1. worked
    8. Log out of Networked user account
  5. Image a Master from the machine
    1. Unbind from Active Directory
    2. delete unwanted files
    3. Boot from another disk. Either:
      1. Netboot (if possible?)
        1. not possible because server is running OS X 10.4.9 with Deploy Studio RC20
      2. boot from install CD, mount server drive and image machine using disk utility
        1. does not come with disks anymore
        2. found this article explaining the new procedures
          1. boot up into Recovery Mode (command + R)
            1. Nice article here about Recovery Mode
      3. target disk mode to a machine which can netboot (or run the /Utilities/Deploy Studio Runtime)
    4. Make a image from a disk
  6. test the master image works
    1. get another machine
    2. Unmount disk which is being re-imaged and image it. Several Ways:
      1. target disk mode to another machine
      2. Recovery mode (command + R)
        1. go to terminal
        2. type:
          1. mkdir /Volumes/Images
          2. mount -t afp afp://admin:password@name.of.server.uk/Images /Volumes/Images
        3. exit terminal
        4. open disk utility
        5. restore
        6. source - select disk image on the server
        7. target -  select partition
      3. done



No comments:

Post a Comment