Tips on Filesystems, security and al on mac os x

  • mount with AFP sharepoints from the command line (thanks to this hint) :

    # mount_afp [-i] [-o options] afp_url node
    mkdir /Volumes/truc
    mount_afp afp://user:PASSWORD@server/truc /Volumes/truc
    umount /Volumes/truc
    rmdir /Volumes/truc

finder nags when changing a file's extension

  • read the default value (should be 0)

    defaults read FXEnableExtensionChangeWarning
  • change it:

    defaults write FXEnableExtensionChangeWarning False

Make spell check show only desired languages


  • Mac OS X Filesystems

  • One feature of HFS volumes is that fle are referred to as links: for instance you can read a PDF file while changing the name at the same time. No problem!

  • Safely remove '._' files created by HFS(+)

    find . -name '._*' -print0 | xargs -0 rm


  • to remove the remaining index files on the volume using the command: `` sudo mdutil -E /Volumes/volume_name `` utilitaires CLI :

    sudo mdutil --help
    mdutil: unrecognized option `--help'
    usage: mdutil -pE volume ...
            mdutil can be used to manage the metadata stores used by Spotlight.
            -p              publish metadata for the provided volumes.
            -i (on|off)     set indexing status for the provided volumes.
            -E              erase the master copy of the metadata stores for the provided volumes.
            -s              print indexing status for the provided volumes.

System & Security


Dash board

  • Don't use Dashboard? No particular reason to leave it running, consuming memory. Following, you can turn Dashboard off by doing:

    defaults write mcx-disabled -boolean YES
    killall Dock
  • Unsurprisingly, you change YES to NO to re-enable Dashboard:

    defaults write mcx-disabled -boolean NO
    killall Dock

Unix - X11

Change login window on (Snow) Leopard

  • disrupted by the look of the plasma flames? think it looks like a cheap star trek sundae? check :

    cd /System/Library/CoreServices
    sudo rm DefaultDesktop.jpg
    #sudo mv DefaultDesktop.jpg DefaultDesktop_old.jpg # if you want to keep the Aurora stuff (it stills around, do a 'locate Aurora'
    sudo ln -s /Library/Desktop\ Pictures/Nature/Stones.jpg DefaultDesktop.jpg