I previously wrote about a script to license SPSS for Mac silently. In version 25 of SPSS Statistics, the path to the bundled Java has changed. It now no longer has the version of the JRE in the path. As a result the script now looks like this :
"$APPPATH/Contents/JRE/bin/java" -jar "$APPPATH/Contents/bin/licenseactivator.jar" SILENTMODE CODES=$AUTHCODE
If SPSS keeps a consistent path to the bundled Java, it will make it a little bit easier to update the script for each new version of SPSS Statistics.
I am pleased to share that I will be speaking at the following upcoming Mac Admin conferences :
MacDeployment in Calgary, Alberta http://macdeployment.ca/
MacAdmins at Penn State : http://macadmins.psu.edu/
Hope to see you there!
I previously posted a method for scripting the activation of SPSS Statistics 23. My method has changed for version 24, so I thought it would be a good idea to write up my notes.
It’s not hard to find discussions online about installing SPSS silently. I have a working install based on this discussion. I needed to re-license a number of machines with a new authorization code and had a bit of trouble, so I thought I’d write it up…
Recently I wanted to be able to sign a package that I was building with The Luggage.
Since The Luggage is calling pkgbuild to build the package, I took a look at the pkgbuild documentation and determined that the following argument was needed :
--sign "Common name of signing cert"
The question then became : how to add this to my Makefile? Taking a look at luggage.make I saw that PB_EXTRA_ARGS is the variable used to contain the arguments for the pkgbuild command.
To add my signing argument, I simply added this line :
PB_EXTRA_ARGS+= --sign "Developer ID Installer: John Doe (ID12345678)"
This appends my –sign argument to the list of pkgbuild arguments and can be placed anywhere after the statement that includes luggage.make.
Mac OS X ships with the vim editor, which supports syntax highlighting. By default, however, syntax highlighting is not turned on. Fortunately it is not hard to enable it.
Settings for vim are controlled by two files, one controlling settings globally and the other controlling settings for the user. /usr/share/vim/vimrc is the file that will control the global settings. changes made to this file will affect all users of the machine. On a new build of 10.9, here is what the file contains :
" Configuration file for vim
set modelines=0 " CVE-2007-2438
" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible " Use Vim defaults instead of 100% vi compatibility
set backspace=2 " more powerful backspacing
" Don't write backup file if vim is being called by "crontab -e"
au BufWrite /private/tmp/crontab.* set nowritebackup
" Don't write backup file if vim is being called by "chpass"
au BufWrite /private/etc/pw.* set nowritebackup
The file for controlling vim settings for the user is ~/.vimrc By default, this file does not exist. To turn on syntax highlighting, we can simply create a text file by that name and add this line :
vim will now use syntax highlighting the next time a file is opened. But what if you don’t care for the default color scheme? We can set the color scheme by adding a second line to the .vimrc file like so :
My favorite color scheme is desert, I find it works nice with my preferred Terminal color scheme (Homebrew). To see what color schemes ship with Mac OS, look at /usr/share/vim/vim73/colors The .vim files in this directory are the color schemes. Just try different ones by changing the .vimrc file and find the one you like best.
Previously, I showed how to install Luggage, and how to package a drag and drop app. In this installment, we will look at how to package up a LaunchAgent script.
We will work with a simple script to mount a couple of file shares when a user logs into their computer. To set it up as a LaunchAgent, we need two pieces. First, the script itself (connectshares.sh) needs to be copied to /Library/Scripts/Myorg and everyone should have read and execute permissions. Second, a plist (com.myorg.connectshares.plist) file which controls the execution of the script needs to be copied to /Library/LaunchAgents and and everyone should have read permissions. Continue reading
In a previous post, I showed how to get started by getting Luggage setup. In this post we will create a simple package based on a .app bundle.
Drag and drop applications are really user friendly to install, the user simply needs to drag them to the Applications folder. They are not as nice, however, for the system administrator who wishes to deploy the application via some automated tool. In some cases it is desirable to repackage these application into an installer package. Fortunately this is easy to do with the Luggage.
For this demonstration, I will use my favorite text editor TextWrangler.app. When we download TextWrangler it is downloaded as a disk image. Mount the image file by double clicking on it, and we see that we have an app bundle and a link to the Applications folder. The application bundles are actually a special directory, so our first step is to make a compressed tar of the app. Continue reading
When administering and or deploying Mac OS systems, it becomes very useful to be able to create packages. This can be to repackage an app to automate deployment, or package up scripts or configuration files. One such tool to do this is The Luggage. Written by Joe Block, it is a command line tool that makes use of Apple’s Packagemaker as well as Make. More information can be found here.
This post is intended to walk you through getting up and running with luggage from ground zero. A future post will look at using The Luggage. This tutorial is assuming you are running Mac OS 10.7. Continue reading
According to this document from Apple : http://support.apple.com/kb/TS4176 You may have trouble using the Directory Utility if your domain is setup such that the Netbios name and host name are not the same. This is the situation I find myself in, so I thought I would post a sample script to help others out…
The script can be found here