Re-enable Java 6

Command Line System ConfigIf you are running Mac OS X 10.8 and have installed Java 7, as well as the latest Java Update from Apple (Java 2013-002) and have found that some things don’t work with Java 7, and you wish to change back to having version 6 as your default Java installation, then you can download the script – Enable_Java6.sh from the link below

Enable_Java6.sh

Extract the file, copy it to the desktop

Open Terminal & type the following

cd ~/Desktop
sudo ./Enable_Java6.sh

this script only takes a second to run, once its complete, go to this website to check the version of Java that you have enabled

http://javatester.org/version.html

for information on what the lines in this script do, check out the Apple support page below

http://support.apple.com/kb/ht5559

If you wish to undo this and switch back to Java 7 then you can enter the following into Terminal

sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javaws /usr/bin/javaws

Then you can download and install the latest Java Runtime from the following link

http://www.java.com/en/download/mac_download.jsp?locale=en

 

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

SugarSync Issues – not syncing

SugarSync is a cloud based data syncing service, similar to Dropbox, but with a higher storage allocation for a free account (5GB as opposed to 2GB with Dropbox) and a few other features which put it above Dropbox in terms of value.

For a full list of benefits versus other cloud syncing services, check out their website https://www.sugarsync.com/sync_comparison.html

But, as with any software, sometimes there can be issues, and if you run into a problem where SugarSync stops syncing, then this will help you get it back up and running.

First of all, make sure you are in an account that has administrator rights

Click on Finder

Press SHIFT CMD G to open the ‘Go to Folder’ window

Copy and Paste /Applications/SugarSync Manager/Contents/Resources/ into the box and click on ‘Go’

Double click on SugarSyncUninstaller.command

A Terminal window will open asking you to enter your admin password, so do this and press enter

The removal script will run, once its complete, restart the Mac

Once you have logged back in, go to https://www.sugarsync.com/downloads/ and get the latest version of the software

Double click on the Disk Image (.dmg) to mount it, and then drag the SugarSync Manager app back into /Applications

Double click the SugarSync Manager app once in Applications, and it will fire up and ask you to enter your account details, once you have entered these then the app should start to check your folders for changed data, this can take upto 30-40 minutes depending on your internet connection, so be patient, once this has all been resolved then SugarSync will be back to it’s usual self.

This method resolves most issues with syncing, particularly if you entries in the logs similar to the following

com.SugarSync.Manager        waiting for connection

com.SugarSync.Manager        Job appears to have crashed: Abort trap

ReportCrash      Saved crash report for SugarSyncManager   version ??? (1.9.69)

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