Adding mcrypt support to builtin php5 on OSX Leopard….

Apache, Apple, Macintosh, OSX, osx Server, php, Server, XServe
I got a request to add mcrypt support to our Leopard server today and here is a brief step-by-step installation instruction. This works well under the current 10.5.8 server installation. It should also work for 10.6 (snow leopard), but I have not tried it. Before you start here are the requirements: Backup your system Install (and update) the latest XCode (I've got version 3) Install X11 client stuff from your server install DVD install X11 SDK stuff from your server install DVD Ensure you have server 10.5.8 (latest update as of Feb.04.2011) Make sure you have not tried to install mcrypt using another method. We need a "virgin" 10.5.8 install (as far as homebrew/local installs) BACKUP Please note that this will add mcrypt support to php. This is NOT the…
Read More

Adding GD support to builtin php5 on OSX Leopard….

Apache, Apple, Leopard, Macintosh, osx Server, php, XServe
I got a request to add GD support to our Leopard server today and here is a brief step-by-step installation instruction. This works well under the current 10.5.8 server installation. It should also work for 10.6 (snow leopard), but I have not tried it. Before you start here are the requirements: Backup your system Install (and update) the latest XCode (I've got version 3) Install X11 client stuff from your server install DVD install X11 SDK stuff from your server install DVD Ensure you have server 10.5.8 (latest update as of Feb.04.2011) Make sure you have not tried to install GD using another method. We need a "virgin" 10.5.8 install (as far as homebrew/local installs) BACKUP Please note that this will add GD support to php. This is NOT the…
Read More

Optimizing Snow Leopard for SSD drives….

Apple, Macintosh, OSX, osx Server
I just installed a new 128GB SSD drive in my older C2D 17" macbook Pro and let me tell you....WOW....This thing is on fire. The system is extremely responsive and apps literally jump onto the screen. The machine now boots up to full desktop in roughly 17 seconds. Now that's nice. I did do a bunch of changes to the way Snow Leopard is setup to optimize a couple of things that are normally tuned for HDD's. Turn off Sudden Motion Sensor (SMS): If you are replacing your primary (and only) HDD internal drive with a SSD, you can get a bit of a performance boost by turning off the Sudden Motion Sensor technology that comes with your laptop. Remember your SSD doesn’t use read/write head on rigid platters so…
Read More

Terminal Tip: Finding information about a mp3 audio file…

Apple, CLI, Macintosh, OSX
Here is a quick tip for you OSX command line fans. If you want to find metadata information about a mp3 file use the "afinfo" command. Very quick and scripting friendly. Here is a example: $ afinfo 08_\ Lily\ Allen\ -\ Fk\ You.mp3 File: 08_ Lily Allen - Fk You.mp3 File type ID: MPG3 Data format: 2 ch, 44100 Hz, '.mp3' (0x00000000) 0 bits/channel, 0 bytes/packet, 1152 frames/packet, 0 bytes/frame no channel layout. estimated duration: 215.249 sec audio bytes: 5167920 audio packets: 8240 audio 9490176 valid frames + 576 priming + 1728 remainder = 9492480 bit rate: 192000 bits per second packet size upper bound: 1052 maximum packet size: 731 audio data file offset: 32353 optimized ----
Read More

Map any network drive to Mac OS X that auto mounts after system reboot

Apple, Macintosh, OSX, osx Server, Tip
Here is a quick recipe for making a network drive auto mount on your OSX machine. This works with pretty much any protocol supported by Finders "Connect to Server" option. Here is how you do it: From the Finder, hit Command+K or select Connect to Server from the Go menu. You'll see the following window, enter the relevant information (ie: the network drive location, be it afp:// or smb:// or http://) and hit Connect button. Enter your login/password and click “OK” Make sure your Finder Preferences are set so Network Drives are visible on your desktop: At this point you should have a icon like on your desktop Now go to System Preferences under the Apple menu Click on the Accounts icon under System and select Login Items tab (you…
Read More

Reset iTunes 10 window control buttons

Apple, Macintosh, OSX, osx Server
Not sure what's happening lately in the Apple UI design department. Someone over there decided to reposition the window control buttons (you know x,-,+ aka. close,minimize,maximize) vertically in the latest itunes10 (see pics below). If you prefer the old (proper) way of having them ordered horizontally (see picture above), you can use the commands below: defaults write com.apple.iTunes full-window -1 If you need to reset it back, you can use the commands below: defaults write com.apple.iTunes full-window -0
Read More

OSX Server: Could not setup Mach task special port 9

Apple, Macintosh, osx Server, Sysadmin, Tip
com.apple.launchd[1] (0x10f860.cron[43786]): Could not setup Mach task special port 9: (os/kern) no access If you're seeing this warning/error in your OSX Server log files, it is more than likely caused by cron running jobs for mailman subsystem. Even if the Mail process is disabled in Server Admin, OSX will try to run these cron jobs. The way around this (only do this if you're NOT running mail server or mailman mailing list manager on your box) is to comment out all lines in /usr/lib/cron/tabs/_mailman file (insert a # character at the beginning of each line that doesn't have it). This fixed the problem for me.....hopefully it will also work for you :-).
Read More