Network Deployment
This section discusses how best to deploy Power Manager on a network. A walk through details one means of deploying on a small to medium sized network.
Larger Networks
Deploying software on larger networks requires a dedicated distribution mechanism. We highly recommend using a tool such as Apple’s NetInstall, Apple Remote Access, or Radmind.
If you do not have access to distribution software, or are just curious about installing Power Manager on a subset of your network, we present a method below that uses only tools included in Mac OS X 10.3 and later.
Manual Deployment Using Remote Login
The following technique shows you how to install software distributed as Installer Packages. The technique requires Mac OS X 10.3 Client or Server.
Requirements
This guide assumes you have the following:
- An Administrator account on each client Mac;
- Remote Login enabled on each client Mac;
- A copy of DssW Power Manager.
Remote Login provides Secure Shell (ssh) support allowing remote users to login in securely. You can enable Remote Login through the System Preferences > Sharing preference pane.
Distributing Power Manager
You need to get a copy of Power Manager onto each client Mac. This can be performed in numerous ways.
We are going to assume clients do not have Internet access and instead we will distribute Power Manager from a local server to our clients.
Distributing Power Manager From a Local Server
You are going to transfer a copy of Power Manager to each Mac on your network via secure copy (scp). This process is much easier if you only need to transfer a single file.
The bundle of files you want to copy is called DssW Power Manager.mpkg. This bundle is found in the Power Manager download.
Create an archive (ZIP file) of the DssW Power Manager.mpkg bundle using the Context Menu (Control-click the package icon).
You now have a compressed archive containing everything you need to deploy Power Manager across your network.
The Deployment Process
The deployment process can be reduced to the following series of Terminal commands.
scp ~/Desktop/DssW\ Power\ Manager.mpkg.zip admin@192.168.1.3:/tmp/.
ssh admin@192.168.1.3
cd /tmp
unzip DssW\ Power\ Manager.mpkg.zip
sudo installer -pkg DssW\ Power\ Manager.mpkg -target /
sudo shutdown -r now
exit
If you are not familiar with the command line, these commands can be intimidating. Don’t panic.
Let’s step through each command so you understand what it is doing and what options you need to change for your network.
The Deployment Process In Detail
The following steps work through the seven commands above. These steps install Power Manager on a single remote Mac.
The diagram above highlights the Macs you are working with and associated IP addresses. You need to know the client’s hostname or IP address.
- Client:
192.168.1.3
Copy the Archive to the Client
scp ~/Desktop/DssW\ Power\ Manager.mpkg.zip admin@192.168.1.3:/tmp/.
The first step copies the compressed archive to the client Mac. You need to change three components of this command.
~/Desktop/DssW\ Power\ Manager.mpkg.zip
= Path to the archive.admin
= An administrator’s username on the client computer.192.168.1.3
= The client’s hostname or IP address.
If all goes well, the archive is now sitting on the client ready for installation.
Connect Securely to the Client
ssh admin@192.168.1.3
The decompression and installation process takes place on the client Mac. This ssh command starts a secure session with the client. All commands until exit are now sent over the network to the client.
You need to change two components of this command.
admin
= An administrator’s username on the client Mac.192.168.1.3
= The client’s hostname or IP address.
Decompress the Archive
cd /tmp
unzip DssW\ Power\ Manager.mpkg.zip
These two commands move into the directory you copied the archive to, and unzip the archive.
If all goes well, you will see a list of decompressed files after issuing the unzip command.
Install Power Manager
sudo installer -pkg DssW\ Power\ Manager.mpkg -target /
This command does the work of installing Power Manager on the current system drive (/). It is the work horse of the graphical Installer utility.
Restart After Installation
You must restart after installing or removing Power Manager. The next command restarts the client Mac.
sudo shutdown -r now
exit
Finally, the exit command closes the secure session with the client.
Repeat With Each Client
You have now installed Power Manager on the remote client.
You need to repeat these steps for each Mac on your network.
Congratulations
You have learnt how to install Power Manager on a remote client without anything more than the standard tools provided in Mac OS X.
Mac lab photo covered by Creative Commons Attribution-ShareAlike 2.0. ↩︎