Archive

Archive for March, 2015

Upgrading an ESXi server from 5.5 to 6.0

March 25, 2015 3 comments

As part of moving my ESXi environment from 5.5 to 6.0, I have a 2012 Mac Pro which I’m using to host my OS X test environment for work. As this server is already configured the way I want it, I wanted to do a straight upgrade and preserve my existing settings and datastores. Fortunately, the 2012 Mac Pro is listed on VMware’s hardware compatibility list as being supported hardware.

While ESXi 6.0 is not yet listed as a supported release, I had it on reasonably good authority that I could use the stock ESXi 6.0 installer to upgrade. All I needed to do was get a copy of the ESXi 6.0 installer ISO file from the VMware website and use Disk Utility to burn the ISO file to a CD. For more details, see below the jump.

Read more…

Setting up ESXi 6.0 on a 2012 Mac Mini Server

March 24, 2015 16 comments

Something I’ve been doing for a while is running ESXi on my home server setup. Up until now I’ve been running ESXi 5.5.x on a 2011 Mac Mini, but with the release of ESXi 6.0 by VMware, I decided it was time to upgrade to new hardware. I opted to use the 2012 Mac Mini Server over the 2014 Mac Mini because the 2012 Mini Server uses quad-core processors with hyper-threading. Hyper-threading effectively doubles the number of available processors, so I would be upgrading from four available processors on my 2011 Mini to eight available processors on my 2012; in turn doubling the number of virtual machines which I could host and run inside of ESXi.

Unlike my previous installation of ESXi 5.x on a 2011 Mac Mini Server, where I needed to add ethernet drivers to the stock ESXi 5.x installer, ESXi 6.0 will install and work without additional drivers or installer modification needed. All I needed to do was download a copy of the ESXi 6.0 installer ISO file from the VMware website, use Disk Utility to burn the ISO file to a CD and use that to install ESXi 6. For more details, see below the jump.

Read more…

Oracle’s Java 8 Update 40 has been updated again to …. Java 8 Update 40

March 16, 2015 9 comments

Oracle has released a new update for Java 8, but has continued their recent trend of not bumping the version number. Oracle has put out a new build of Java 8 but didn’t bump the version number from Java 8 Update 40, which makes this the third release of Java 8 Update 40.

At this point, it appears that Oracle is now providing the install application across the board. When you update an existing Java installation on OS X via Oracle’s Java update mechanism, you will receive Oracle’s install application for Java along with the selected option to install the Ask.com browser add-ons. If you download an installer from Java.com, you will also receive this install application.

Screen Shot 2015-03-16 at 3.47.54 PM

Screen Shot 2015-03-13 at 4.03.52 PM

Screen Shot 2015-03-13 at 3.57.05 PM

While the Oracle install application is not a standard installer package, it appears that Oracle had stored an installer package for Java 8 within the install application at the following location:

/path/to/install.app/Contents/Resources/JavaAppletPlugin.pkg


Screen Shot 2015-03-16 at 3.48.18 PM

The JavaAppletPlugin installer package is digitally-signed and does not include the Ask.com browser add-ons.

Screen Shot 2015-03-16 at 3.48.27 PM

The difference between the three Java 8 Update 40 releases

Early March’s Java 8 Update 40 (released on March 4, 2015): Java 8 Update 40 build 25 (1.8.40.25)

Mid-March’s Java 8 Update 40 (released on March 13, 2015): Java 8 Update 40 build 26 (1.8.40.26)

Just-Past-Mid-March’s Java 8 Update 40 (released on March 16, 2015): Java 8 Update 40 build 27 (1.8.40.27)

If you have Java 8 Update 40 installed, you can find out which build you have by running the following command in Terminal:

defaults read /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Info.plist CFBundleVersion

If you have Java 8 Update 40 build 25, the following string will be returned:

1.8.40.25

Screen Shot 2015-03-13 at 3.47.40 PM

If you have Java 8 Update 40 build 26, the following string will be returned:

1.8.40.26

Screen Shot 2015-03-13 at 4.06.45 PM

If you have Java 8 Update 40 build 27, the following string will be returned:

1.8.40.27

Screen Shot 2015-03-16 at 3.51.16 PM

For more details, see below the jump.

Read more…

Oracle’s Java 8 Update 40 has been updated to …. Java 8 Update 40

March 13, 2015 1 comment

Oracle has released a new update for Java 8, but this update has an interesting wrinkle. Oracle has put out a new build of Java 8, but didn’t bump the version number from Java 8 Update 40. So folks who have the previous version of Java 8 Update 40 installed may receive a message to update to Java 8 Update 40 from their current version, which will also be Java 8 Update 40.

For those thinking this sounds familiar, Oracle did the same thing with Java 8 Update 31 in February.

java_8_update_40

The difference between the two Java 8 Update 40 releases

Early March’s Java 8 Update 40 (released on March 3, 2015): Java 8 Update 40 build 25 (1.8.40.25)

Mid-March’s Java 8 Update 40 (released on March 12, 2015): Java 8 Update 40 build 26 (1.8.40.26)

If you have Java 8 Update 40 installed, you can find out which build you have by running the following command in Terminal:

defaults read /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Info.plist CFBundleVersion

If you have Java 8 Update 40 build 25, the following string will be returned:

1.8.40.25

Screen Shot 2015-03-13 at 3.47.40 PM

If you have Java 8 Update 40 build 26, the following string will be returned:

1.8.40.26

Screen Shot 2015-03-13 at 4.06.45 PM

Following installation of Java 8 Update 40 build 26, I tested on a 10.10.2 Mac against the following sites:

Oracle’s Java Test page: https://www.java.com/en/download/help/testvm.xml

Screen Shot 2015-03-13 at 4.10.06 PM

Java Tester’s Java Version page: http://javatester.org/version.html

Screen Shot 2015-03-13 at 4.09.53 PM

In both cases, the Java applets on those sites launched and worked without issue using Java 8 Update 40 build 26 (though the javatester.org applet needed to be whitelisted.)

To make things even more confusing, Oracle is providing a different installer for its update feed than it’s providing at the Java.com download site. When you update an existing Java installation on OS X via Oracle’s Java update mechanism, you will receive Oracle’s install application for Java along with the selected option to install the Ask.com browser add-ons.

Screen Shot 2015-03-13 at 4.05.41 PM

Screen Shot 2015-03-13 at 4.03.52 PM

Screen Shot 2015-03-13 at 3.57.05 PM

If you download an installer from Java.com, you will receive a standard digitally-signed installer package which does not include the Ask.com browser add-ons.

Screen Shot 2015-03-13 at 3.56.36 PM

Screen Shot 2015-03-12 at 7.10.42 AM

Unfortunately, Oracle has not provided any information about why these differences in installation methods exist. To make sure you’re installing Java 8 Update 40 without the Ask.com browser add-ons, I would currently recommend downloading the installer package available via the Java.com download site.

Deploying a pre-configured Junos Pulse VPN client on OS X

March 13, 2015 7 comments

My shop recently made the change from using Juniper Network‘s Network Connect VPN client to using Juniper’s Junos Pulse VPN client. As part of the changeover, I wanted to provide an installer for our folks to use which would install both the Junos Pulse software and the configuration needed to connect to our VPN.

Fortunately, Juniper made the process of creating and importing the necessary configuration fairly straightforward. My VPN admin provided me with a copy of the needed .jnprpreconfig config file from our VPN server and I could use Pulse’s jamCommand application to import it. Once I had both the .jnprpreconfig config file and a copy of the Junos Pulse installer, I was able to create an installer using this method that handled both the installation and the automated configuration of the Junos Pulse VPN client. For more details, see below the jump.

Read more…

Fixing mach_kernel file visibility using Casper

March 11, 2015 3 comments

Following the release of Security Update 2015-002, it became apparent that the usually-hidden /mach_kernel file was now visible via the Finder. The mach_kernel file file is important to OS X and is stored on the root level of the hard drive on most versions of OS X (OS X 10.10.x has moved the mach_kernel file out of the root level of the Mac’s boot drive.)

To help fix this issue, Apple has made a KBase article available showing how to re-hide the /mach_kernel file using the chflags command.

As part of a post describing the problem, Tim Sutton has written a script to identify and fix the issue by using the ls command to check for the hidden attribute and then using the chflags command to re-hide the /mach_kernel file as needed. I’ve adapted Tim’s script for use in my own shop to have Casper find and fix this issue. For more details, see below the jump.

Read more…

MacJREInstaller and Oracle’s Java install application

March 6, 2015 5 comments

Part of Oracle’s new install application for Java is a binary named MacJREInstaller. This application appears to be what installs Java and governs whether or not the Ask.com toolbar gets deployed.

Screen Shot 2015-03-06 at 4.00.10 PM

For context, MacJREInstaller appears to be the helper tool referenced when the Java install application prompts for admin privileges.

Screen Shot 2015-03-03 at 3.52.13 PM

Based on observation, when running the Java install application, MacJREInstaller appears to run the following tasks:

1. Checks to see if it can contact the internet

2. If it can contact the internet, checks back with Oracle to see what country it’s in. Oracle apparently is selective about which nations it wants to have the Ask.com browser settings and toolbar installed (thanks to a Canadian colleague’s testing, it appears Canada is not one of the nations.)

3. If it determines the Mac in question is in a country where Oracle wants to deploy the Ask.com browser settings and toolbar, a Sponsors.framework.tar file is downloaded to the Mac and uncompressed into /Users/username/Library/Application Support.

Screen Shot 2015-03-06 at 5.04.28 PM

4. Determines which web browser is set as the Mac’s default web browser.

5. Displays the choice for whether or not to install the Ask.com browser settings and toolbar.

Note: By default, the option to install the Ask.com browser settings and toolbar is selected. The person running the install application must uncheck the appropriate checkbox or checkboxes to opt out.

Screen Shot 2015-03-03 at 3.52.38 PM

6. Depending on whether the Ask.com browser settings and toolbar have been chosen for installation, the following actions take place:

If installation of the Ask.com browser settings and toolbar is selected:

A. The Ask.com browser settings and toolbar for the Mac’s default web browser are installed using a tool called APNSetup, which is included in the downloaded Sponsors.framework.

Screen Shot 2015-03-06 at 4.40.28 PM

B. The JavaAppletPlugin installer package stored within the Java install application is installed.

Screen Shot 2015-03-03 at 4.03.38 PM

C. MacJREInstaller checks back with Oracle again to see what country the Mac in question is in.

If installation of the Ask.com browser settings and toolbar is not selected:

A. The JavaAppletPlugin installer package stored within the Java install application is installed.

B. MacJREInstaller checks back with Oracle again to see what country the Mac in question is in.

Note: Even if the installation of the Ask.com browser settings and toolbar is not selected, the Sponsors.framework remains resident on the machine, in /Users/username/Library/Application Support.

7. Once the install process finishes, MacJREInstaller then exits.

For more details, see below the jump.

Read more…

Oracle’s Java 8 Update 40 – The Good, the Bad and the Ugly

March 4, 2015 10 comments

For the past few major releases, Oracle has used a standard installer package to install Java 7 and Java 8. With the release of Java 8 Update 40 though, Oracle changed how Java 8 for Macs is installed. Oracle has now switched to using an application to install Java.

Screen Shot 2015-03-03 at 3.51.52 PM

This switch away from using installer packages is a problem for Mac admins who need to deploy Oracle’s Java 8 in their own environment. However, after doing some research, it looks like it is still possible to deploy Oracle’s Java 8 Update 40 using a standard installer package. For more details, see below the jump.

Read more…

Categories: Java, Mac administration

IRC and the Mac admin community

March 3, 2015 Leave a comment

One of the interesting developments of the past few years has been the use of IRC by the Mac admin community to get more of us “together” in the same place to ask questions and get help from each other. For me, it’s been an invaluable resources in solving problems as many pairs of eyes can look at a particular issue and arrive at a solution (or even multiple solutions.)

For those interested in joining the conversation, here are the two IRC channels on Freenode that you’re most likely to find me in:

##osx-server: http://webchat.freenode.net/?channels=#%23osx-server

#jamfnation: http://webchat.freenode.net/?channels=%23jamfnation

If you’re new to IRC, I recommend reading Tom Bridge‘s A Field Guide to IRC, available from AFP548.

Categories: Mac administration
%d bloggers like this: