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

Synergy+ lets you share a mouse and keyboard between several computers.

Linux, OSX, osx Server, Windows
I've been using Synergy for about 3 years now and never really thought about writing about it. Tonight I came across Synergy+ which is a maintenance fork of the original Synergy. So I thought about writing a small note about it since it's now maintained again.Synergy+ (synergy-plus) lets you easily share a single mouse and keyboard between multiple computers with different operating systems, without special hardware. All you need is a LAN connection. It's intended for users with multiple computers, where each system uses its own display. It's a little like having a 2nd or a 3rd desktop. It's not a KVM or VNC tool, but it does achieve similar results (but with added convenience). No need to press any buttons when you want to change desktops, and your keyboard…
Read More

Safari 4.0 crashes upon exit under OSX 10.5.7

Apple, Macintosh, OSX, osx Server, Safari
I've had this problem ever since Safari 4.0 came out a little while ago. The symptoms are simple, when you close a Safari window it crashes. I reported it the first couple of times to Apple using crash reporter, then I started to look around for a solution, but to no avail. I gave up for a while and used firefox again. Today I got fed up with this and started to debug the issue from command line and finally found the problem.A little while back I had purchased a QNAP NAS device, which I absolutely love. At the time I was impressed by the fact that it supported both XP and OSX. There is a piece of software you install on your machine called QGET which allows you to…
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/ that single user mode said to use, 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 mount your Journalized HFS+ disk in Linux….

Apple, Linux, Macintosh, Opensource, OSX, osx Server
This is something that people who deal with OSX and Linux come across everyday. Yes you can format your USB stick or removable HD using FAT32. The problem is that FAT32 does not support large sized files which can cause problems. So how do you solve this.....Easy. Attach the Journalized HFS+ disk to your MAC and startup disk utility. Inside disk utility find the disk in question and click on the partition(s) while holding down the "ALT" key. Keep holding the key down and go to the File menu and choose "Disable Journaling" (command-J). Eject the disk, move it over to your linux machine and hook it up. Linux can now read and write to the disk. Once you're done, move the disk back to the apple machine and after…
Read More

Enabling Google Calendar in Apple’s iCal under OSX 10.5+

Apple, Google, Macintosh, OSX, osx Server
Yep, It works I just transfered all my calendar appointments from local iCal calendar to Google calendar in one easy step. First you need to go into iCal and export your current calendar. If you're starting fresh with google calendar you don't need to do this.To set up CalDAV support for Google Calendar in Apple's iCal, follow these steps:Open Apple iCal, go to Preferences and then the Accounts tab.Click on the + button to add an account.Under Account Information, enter your Google Account username and password (make sure username does NOT have added).Under Server Options, add the following URL: (replace 'youremail' with your Google Account username and is usually unless you've got google apps setup.Click Add.Under the Delegation tab, select the calendars you'd like to add to…
Read More

Writing Moblin (and Ubuntu) USB images using dd in OSX

Apple, Linux, Macintosh, OSX, osx Server, Tutorial, Ubuntu
I came across this problem this morning, while writing the newly downloaded moblin USB image file. The concept is straight forward, plugin a 1GB+ USB stick into a functioning Linux or Windows box, make sure the stick is not mounted and use dd to write the disk image to the stick. Under OSX however the instructions for unmounting are slightly different, so here are the quick steps:Download the desired .img file Open a Terminal (under Utilities) Run diskutil list to get the current list of devices Insert your flash media Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2) Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2) Execute sudo dd if=/path/to/downloaded.img of=/dev/diskN bs=1m (replace /path/to/downloaded.img with…
Read More

RightZoom: Maximize window button for OSX that actually maximizes

Apple, Macintosh, OSX, osx Server
One of the first things you hear a new mac/osx user complain about is the odd way the green "zoom" button works on the upper left hand of windows on Macs. The button behaves differently depending on the app - Finder and Safari sizes to best fit, iTunes’ zoom button switches between the mini player and the normal window, Mail goes full screen. Often times, the behavior differs from one app to another and many Mac users find this behavior inconsistent, unpredictable and disorienting to use.RightZoom provides a quick and easy solution for the zoom button's inconsistent behavior. It enables you to make the zoom button maximize the window to full screen when you click the green orb.By default, RightZoom makes a number of apps blow full screen when hitting…
Read More

TMS – The stuff Apple forgot to include in Time Machine GUI….

CLI, Opensource, OSX, osx Server, Time Machine
Just came across tms , what a great tool. It a command line tool for OSX 10.5+ that allows basic CVS style operations on your Time Machine volumes and It does its thing in read-only mode, so nothing gets changed/deleted.....woohooo. Here is the stuff you can do with it:help      - instructions on usageversion   - print the current version of this tooldisk      - print the current diskdisks     - print list of all Time Machine disksvolumes   - print list of all volumesmachine   - print the current machinemachines  - print the list of all machines backed up on the current diskstatus    - print the current configurationsnapshots - print the list of snapshots for the current machine on the current disksnaplog {} - print the…
Read More