Creating never booted images – 10.8 – InstaDMG

System_Image_Utility

I’m going to run through the process of creating a never booted image using InstaDMG on Mac OS X 10.8, Once this has been done it will be ready to deploy using Deploystudio.

First, you will need to ensure that you have the Command Line Tools installed, you can download them from the Apple Developer site

You will need to create an account, but you don’t need to sign up for any of the paid programs to gain access to the tools we need

Go here to register

developer.apple.com/programs/register/

Once registered, click on the link below, this will take you to the downloads page, where you can get the Command Line Tools, we are after the Command Line Tools for OS X Mountain Lion

Command Line Tools (OS X Mountain Lion) for Xcode – January 2013

it’s roughly 120MB download, once you have it, install the package and we can get started.

First, open Terminal, then enter the following, this will change to your home directory, create an InstaDMG folder, then move you into the newly created folder

cd ; mkdir InstaDMG ; cd InstaDMG

next you will need to download InstaDMG, you do this by entering the following command into Terminal

svn checkout http://instadmg.googlecode.com/svn/trunk .

this shouldn’t take long, if you already have InstaDMG installed from a while ago, then it will be worth updating it, you can do this by entering the following into Terminal

cd ~/InstaDMG/
svn update

Next, you need to move your copy of the 10.8 InstallESD.dmg file into the InstaDMG installer disc folder

You need to have the Install Mac OS X Mountain Lion app in /Applications, if you don’t then you need to download it from the Mac App Store

When you have it, open Terminal and enter the following

sudo cp /Applications/Install\ OS\ X\ Mountain\ Lion.app/Contents/SharedSupport/InstallESD.dmg ~/InstaDMG/InstallerFiles/InstallerDiscs/

Next you need to make a change to the catalog file (10.8_vanilla.catalog) located at

~/InstaDMG/AddOns/InstaUp2Date/CatalogFiles

At the time of writing this points to an older Java installation file which will cause errors when trying to create the image, so we need to edit this, open Terminal and enter the following

nano ~/InstaDMG/AddOns/InstaUp2Date/CatalogFiles/10.8_vanilla.catalog

delete this line

Java for OS X 2012-006  http://support.apple.com/downloads/DL1572/en_US/JavaForOSX.dmg  sha1:eff777cdc39b4e3336b3477f60e8ad769ded8532

replace with this line

Java for OS X 2013-002 http://support.apple.com/downloads/DL1572/en_US/JavaForOSX2013-002.dmg sha1:47e38cf089a6a7bba9e2b0b387fe09e2b77e10a6

make sure there are tabs rather than spaces between each line, otherwise it will error when trying to build the image

then press CTRL X

then Y

then ENTER

this saves the file and you shouldn’t encounter any problems

next we need to make the image, which is all done in Terminal, so enter the following

cd ~/InstaDMG/AddOns/InstaUp2Date/

sudo ./instaUp2Date.py -p 10.8_vanilla

this took around 30 minutes on a 2012 MacBook Pro, times will vary on different models, but this should give you a rough idea

Add a user to the Print Operator group

To add a non administrative user to the Print Operators group, you need to enter the following command into a Terminal window

sudo dseditgroup -o edit -u ADMINISTRATOR -p -a USER -t user _lpadmin

You will need to replace ADMINISTRATOR with the shortname of an admin account & you will need to replace USER with the shortname of the account you wish to add to the print operators group

when you hit enter then you will be prompted for your admin password, so enter that, but you will then be prompted “Please enter user password”, enter the password associated with the admin account mentioned in the command

To check if the user has been added to the Print Operators group then enter the following into a Terminal window

dscl . -read /Groups/_lpadmin GroupMembership

Mountain Lion on a USB

Ok, so to get Mountain Lion onto a USB use the same method as on Lion

First of all, you will need the following

1. Install OS X Mountain Lion.app (4.37GB download from the Mac App Store)

2. 8GB USB Key

Once you have these you will need to get the Mountain Lion Disk Image, which is obtained by clicking on Finder and pressing SHIFT CMD G at the same time and entering

/Applications/Install OS X Mountain Lion/Contents/SharedSupport/

and then clicking the Go button

Once the folder opens then you need to click on the InstallESD.dmg and press CMD C to copy it, then click on your Desktop and press CMD V to paste it

Once it’s copied to your dekstop rename it 10.8.dmg

Double click on the 10.8.dmg to mount it

Next, insert your USB Key and erase it using Disk Utility as follows

1. click on the device in Disk Utility

2. click on the Erase tab in the middle of the main window

3. choose Mac OS Extended (Journaled) from the format dropdown menu

4. name it Mountain

5. then click the Erase button

6. now click on the Restore tab

7. drag the Mac OS X Install ESD volume onto the Source field

8. drag the Mountain volume onto the Destination field and click on the Restore button

you may be prompted for your admin username and password, so enter this, then the task will start and should take around 15-20 minutes (depending on the speed of your USB2 key)

For a video taking you through the installation process once you have created your USB then click on the link below

Mountain Lion – Reformat & Clean Installation

Install Word 2007 using Wineskin

Make sure you have the latest version of X11, you can download this from http://xquartz.macosforge.org/trac/wiki

always choose the stable version, download the DMG and double click on the XQuartz.pkg to begin installation, click continue or next on all default options, then reboot the machine

Next download Wineskin
http://wineskin.doh123.com/tiki-index.php?page=Downloads

Install by dragging into /Applications/Utilities

Run Wineskin Winery by double clicking the app

Under Installed Engines, click on the + button

Download & install the top available engine by clicking on ‘Download & Install’

When the ‘File Downloader’ window opens click the ‘OK’ button

Once that has finished the Wineskin Winery window will open again, this time locate the ‘Wrapper Version’ section and click on the ‘Update’ button

A new ‘File Downloader’ will open, again, click on the ‘OK’ button

Now you will need to create your wrapper so that you can install Office 2010, do this by clicking on ‘Create New Blank Wrapper’

name it ‘Word 2007’ and click on ‘OK’

You may be prompted to install a Wine Gecko package, if so then click Install

Once that has completed you will get a window announcing that the wrapper creation has finished, click on ‘View wrapper in Finder’

Double click on your Word 2007 app and click on ‘Install Windows Software’

At this point, insert your Office 2007 DVD or mount the ISO and navigate to the ‘setup.exe’ file on it, click on ‘setup.exe’ and then click ‘Choose’

You should get a regular Office 2007 window and you can proceed with the installation as follows

Enter your license code and click on the ‘Continue’ button

click on the box next to ‘I accept the terms of this agreement’ and then click the ‘Continue’ button

click the ‘Customize’ button

click on the icon next to ‘Microsoft Office’ at the top of the screen and choose ‘Run all from My Computer

Next remove the components you don’t wish to install, I tend to remove Excel, Outlook, Access, Publisher, Groove, Infopath, OneNote, Outlook, Visio Viewer.

then click on the ‘Install Now’ button

Once the installation has finished click on the ‘Close’ button

You will get an error screen saying that ‘The programs executable file currently set in Wineskin is not found after installation’, this is fine, just click on the ‘OK’ button

You will then be presented with the wineskin window again, this time click on ‘Advanced’

In the ‘Wineskin Advanced’ window, click on the ‘Browse’ button next to Windows EXE

navigate to /Users/USERNAME/Applications/Wineskin/Word 2007/Contents/Resources/drive_c/Program Files/Microsoft Office/Office12/ and click on WINWORD.EXE, then click the ‘Choose’ button
(replace USERNAME with the shortname of account that you are using)

then click ‘Done’ on the Wineskin Advanced window, then click the ‘Quit’ button on the Wineskin window

next navigate to /Users/USERNAME/Applications/Wineskin/ and double click on ‘Word 2007.app’

Enter your details when prompted in the ‘User Name’ window and click ‘OK’

unstick all the boxes on the ‘Privacy Options’ window and click on the ‘Next’ button

click on ‘I don’t want to use Microsoft Update’ and then click on the ‘Finish’ button

To get rid of the .dotx template error at startup, do the following, click on the Office button in the top left hand corner of the Word window, click on close, then click on the Office button again, and choose New, then Blank Document, then quit Word, the next time you open Word you won’t get the error again

So you are almost done, all you need now is a decent icon for the Word app

google search for a decent Word.png and download it

Next download IMG2ICNS from http://www.img2icnsapp.com/

drag the app into your Applications folder

Open img2icns.app and then just drag your downloaded image file into the app window and then click on the icns export button, save it to your desktop

Next navigate to Users/USERNAME/Applications/Wineskin and single click on Word 2007.app, then click CMD I to open the Get Info window

At the very top left hand corner of the Info window there is the current icon, drag the one you created to the icon in the info window and you will get a little green + button, release the button and the new icon will take the place of the old one, much tidier

and finally, if you wish to open all of your Word documents with this program then do the following

locate a word document in Finder

CTRL click (right click) on the document and choose ‘Open With’ then ‘Other’

when the window opens navigate to your Word 2007.app (/Users/USERNAME/Applications/Wineskin/Word 2007.app)

make sure you click on the ‘Always Open With’ checkbox at the bottom and click on the ‘Open’ button

To test if it has worked just double click on a Word Document

Checking DFS referrals in 10.7

So, I had an issue where I could map the DFS share manually in Finder, but it wouldn’t automatically mount on login

The machine in question was bound to the Active Directory Domain, the DFS shares were hosted on other servers bound to the Domain Controller, so I opened Terminal & entered this to check that the referrals were working correctly

smbutil dfs smb://root.dfs.namespace/DfsRoot/DfsLink

this showed that the Mac was only looking to the Domain Controller for DFS shares/namespaces

To resolve this problem we started up the DFS Service on the Domain controller and added the DFS namespaces to it

check out this Microsoft article for how to do this

http://technet.microsoft.com/en-us/library/cc732807.aspx

After this had been done I opened Terminal and ran the command above and this time it returned my DFS namespaces, rebooting the Mac and logging back in resulted in the drive mounting automatically