Archive for July, 2008

Change IP of a Fonality Server via SSH

Thursday, July 17th, 2008

Here is one way you can change the IP address of a Fonality server via SSH (in the event that you don’t have a monitor attached to the machine).

At the console, type:
/var/adm/bin/ -i

You are now prompted with the IP change screen. Note that this utility actually tests that it can use the IP address, so it will fail back if the IP address is in use.

Copy protecting PDF files in Preview

Tuesday, July 15th, 2008

Apple’s Preview application does not respect the copy protection policies created by Acrobat. Therefore, we need to use Preview to set the security policy.

The following are step by step instructions for enabling copy protection in Preview for PDF files.

1) Open the PDF in Preview.
2) From the File menu, select Print…
3) Click the PDF drop down button and choose “Save as PDF…”
4) Click Security Options… and check the “Require password to copy text, images and other content” check box.
5) Enter a password to protect the security settings and click OK.
6) Rename (if required) and save the PDF.

The security policies created by Preview are respected by Acrobat – though they cannot be modified in Acrobat.

launchdaemons vs. launchagents

Thursday, July 10th, 2008

Note: For more information about the information contained in this article, contact us for a professional consultation.

There are two types of services that launchd manages:

launch daemons can run without a user logged in. launch daemons cannot display information using the GUI. launch daemon configuration plist files are stored in the /System/Library/LaunchDaemons folder (for those provided by Apple et al) and /Library/LaunchDaemons (for the rest)

launch agents run on behalf of a user and therefore need the user to be logged in to run. launch agents can display information through the window server. As with launch daemons, launch agent configuration plist files are stored in the /System/Library/LaunchAgents and /Library/LaunchAgents. User launch agents are installed in the ~/Library/LaunchAgents folder.

Clearing font caches in Mac OS X 10.5 (Leopard)

Tuesday, July 8th, 2008

With the release of Leopard, Apple have hidden the cache and temporary files away from prying eyes and mouse clicks. Instead of being located in the /Library/Caches directory, Apple have moved the font caches to a new home in the /private/var/folders directory structure.

To find the path of the current users cache directory, use the following command in the Terminal:


This will return a string that will look something like this:


Now, you can navigate to this directory and manually delete the folder within, or you can use the new atsutil al follows:

atsutil databases -removeUser (to remove the font caches for the current user)

sudo atsutil databases -remove (to remove all user and system font caches)

As with previous version of Mac OS X, you will have to immediately restart after clearing the font caches. Always quit all open applications (aside from the Terminal), saving any documents, before cleaning any caches. This will prevent future headaches.