Get rid of double (triple) entries in Finder’s “Open With” Menu

Apple, Leopard, Lion, Macintosh, Mountain Lion, OSX, osx Server, Tip
Does sh*t like this make you wanna smack your mac :-) Here is a quick way to rebuild the Launch Services database and get rid of duplicates in the Open With submenu: /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user This process should take about a minute or two. You should check to see if this has fixed the problem. On my machine, running 10.8.2, I had to also restart Finder to complete the process using the following command: killall Finder That's all.....Now Open With submenu is squicky clean
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

Freshclam error "Incorrect argument format for option –checks (-c)" after Leopard update

Apple, bug, Leopard, Macintosh, OSX, osx Server
Someone must have screwed up something in the freshclam plist as part of the update for Leopard (2009-05). I was getting this error constantly in my system.log which was not only annoying as hell, but also kept clam from downloading new virus definitions. Anyways, here is how you fix it.use sudo and edit the file /System/Library/LaunchDaemons/org.clamav.freshclam.plistsudo vi /System/Library/LaunchDaemons/org.clamav.freshclam.plistSomewhere in this file you'll find a block of code like this: <array> <string>freshclam</string> <string>-d</string> <string>-c 4</string> </array> </code>Change it to look like: <array> <string>freshclam</string> <string>-d</string> <string>-c</string> <string>4</string> </array> </code>Then use the following two sudo commands to reload the freshclam service.sudo launchctl unload /System/Library/LaunchDaemons/org.clamav.freshclam.plistsudo launchctl load /System/Library/LaunchDaemons/org.clamav.freshclam.plist
Read More

OSX 10.5: How to create a public share folder…..

Apple, CLI, Leopard, Macintosh, OSX, osx Server
This problem has been around (I think) ever since the introduction of POSIX permissions. In pre-10.5 versions you could sorta do something like this by changing the default umask on the system, but that was system wide and applied to all folders/files a user created on the entire filesystem.....not nice. The real question is how do you create a directory that is totally public without mucking around with system/user wide settings. A folder that anyone on the system in question can read/write/modify/delete anything anyone else has put in there. A true shared directory with share permission inheritence. We call it "pub" directory at my place of work.The old trick in OSX (in case someone is interested) was to write a small script that you ran via cron every 5-10 minutes…
Read More

OSX 10.5: How to delete user accounts from Command Line….

Apple, Leopard, Macintosh, OSX, osx Server
I ran into this problem a little while back and thought I should document it. It's kinda similar to the "How to get Admin rights in OSX Leopard using single user mode..." document from earlier this year. Here is the procedure:Boot into single user mode. Hold Command-s at startup.Check the filesystem: /sbin/fsck -fyIf no remaining errors, mount the filesystem: /sbin/mount -uw /Start up directory services:launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plistNote that single user mode said to use com.apple.DirectoryServicesLocal.plist, but that didn't work -- this did.Find what groups the user belongs to: dscl . -list /groups GroupMembership | grep username -- repeat for each group except for the user's own group.Remove the group corresponding to the username: dscl . delete /groups/username (this may not be necessary -- you may get an error that the…
Read More

How to get Admin rights in OSX Leopard using single user mode…

Apple, Leopard, Macintosh, OSX, osx Server
Here is a quick way to gain access to that leopard machine you don't remember the admin password to. Yes I know this can be used by all the kiddies out there, but lets hope they are smarter than that. To start, reboot the machine into single user mode by holding down command-s before the chime (on the white screen with gray apple logo). Once in single user mode you need to mount the HD in read-write mode using the following commands:/sbin/fsck -fy/sbin/mount -uw /Then we need to start the directory services by issuing the following:launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plistFirst thing we need to do is to create the new userid (I call it newadminusername, you can use whatever you want). It is important to assign the user a Realname (which is…
Read More

Quick command line trick to make your Leopard stacks look nice….

Apple, CLI, Leopard, Macintosh, OSX, osx Server, Tricks
Here is a quick command to make Leopard's stacks behave nicer when you move your mouse across the icons. You can type these two commands in terminal to activate the feature:defaults write com.apple.dock mouse-over-hilte-stack -boolean YESkillall Dockor alternatively if you don't like the look, type the following in terminal to reset it back:defaults write com.apple.dock mouse-over-hilte-stack -boolean NOkillall Dock
Read More

Custom Date Display for OSX

Apple, Leopard, Macintosh, OSX, osx Server, Tricks
Came across this tip today and I thought it might be useful to some of you out there. OSX, as great as it is, has always had this (atleast) one shortcoming for me. The stupid date display in the menubar. Why did they decide to hide the actual date/day of the week is beyond me. Yes, you can go and grab Magical, I know.....But that's yet another program that needs to be loaded. There is a simpler solution. Follow the steps below and you can prettify your date display too :-).In System Preferences, open International and go to the Formats tab.Next to Dates, click the Customize button. Arrange your date in the format you want to appear on your menubar. I just simply grabbed the full format. Select the entire…
Read More

RevoLabs makes Microphones cool again….

Apple, Leopard, Macintosh, OSX, Reference, Research, Skype, Technology, USB, Windows
A friend passed this on today (thanks Jeremy). If you use a mic in your day to day businness (or even if you're an occasional ichat/skype user, you should check this out. RevoLabs have introduced a new line of Wireless microphones that come with RF-Armor. What does that mean, well the next time your GSM phone rings/sync/receives email, your microphone won't be going all crazy. Plus their Solo mics come in three different types:WearableTabletop BoundryXLR adapter for handheld micsAll their mics use a base station that hooks up to your PC or Mac via USB (no driver needed) and show up as a sound device. As a bonus the wearable one also has a audio out so you can wear it around your neck (on in your pocket) and hook…
Read More