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 com.apple.finder FXEnableExtensionChangeWarning
  • change it:

    defaults write com.apple.finder FXEnableExtensionChangeWarning False

Make spell check show only desired languages

HFS+

  • 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

Spotlight

  • 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

nmap

Dash board

  • Don't use Dashboard? No particular reason to leave it running, consuming memory. Following http://www.macosxhints.com/article.php?story=20050723123302403, you can turn Dashboard off by doing:

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

    defaults write com.apple.dashboard 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 http://paulstamatiou.com/2007/10/31/how-to-change-leopards-login-wallpaper :

    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