OS X imaging with FileWave Lightning

Create a vanilla OS X Image with FileWave Lightning without the command line

Although I feel comfortable creating OS X base images with InstaDMG, I was looking for an easier and faster method for people that are not used to the command line. Here are the steps needed to create a pristine OS X image ready for deployment via Lightning or DeployStudio.

1. Download Lightning from Filewave’s website

2. Drop it into your application folder

3. Start it up

OS X imaging with FileWave Lightning weiterlesen

Connect to Wi-Fi via CLI / Script

If you ever got an error like „Error: -3924 Invalid PMK Failed to join network“ on OS X try to enclose the Wi-Fi Password in single quotes.

I use this script in a DeployStudio workflow for connecting to a default Wi-Fi Network without revealing the password to the user.


# Activate Wi-Fi on en1 and join SSID with password
	networksetup -setairportpower en1 on
	networksetup -setairportnetwork en1 SSID 'Password'
exit 0

Software Download on CLI through Proxy

If you work behind a proxy and want to download software from the command line on OS X you will run into troubles. Fortunately there are options for proxy configuration

(Follow up to my article Installing PEAR on OS X Lion)

Curl has its own option to set a proxy even with authentication

Excerpt from man page:

curl -x, --proxy <[protocol://][user@password]proxyhost[:port]>

Example for non-authenticated proxy:

curl --proxy http://pear.php.net/go-pear.phar > go-pear.php

If you work with the fabulous InstaDMG for creating OS X images for deployment you can set an environment variable in your shell like this:

for bash, sh and related shells

export HTTP_PROXY=

for csh and related shells


or just add it to your .profile

Installing PEAR on OS X Lion

Following Tyler Hall’s article ‚How To Install PEAR in Mac OS X Leopard‚, I managed to install PEAR on OS X Lion with a small modification. For PHP 5.3.6 you need a .phar PHP archive installer file.

1. Download the installer

curl http://pear.php.net/go-pear.phar > go-pear.php

2. Start the installation procedure with sudo

sudo php -q go-pear.php

3. Select a new installation base ($prefix) e.g. /usr/local/pear

4. If there is no /etc/php.ini file yet, copy the default

sudo cp /etc/php.ini.default /etc/php.ini

5. Edit /etc/php.ini and change the line

;include_path = ".:/php/includes"


include_path = ".:/usr/local/pear/share/pear"

6. Add /usr/local/pear/bin/ to your path, e.g. in .profile

7. Restart Apache