From PersoWiki
Jump to: navigation, search

Dual Booting Linux and OSX Using Grub2

Download Chameleon boot loader from the website: http://chameleon.osx86.hu/. Open a terminal in the directory that you just downloaded Chameleon to.

Uncompress the .tar.gz file and locate boot0 within the i386 directory, and copy it to your OSX root directory:

 tar -xzvf Chameleon-2.1*.tar.gz
 sudo cp Chameleon-2.1*/usr/standalone/i386/boot0 /boot/

Now that the boot0 file is in the appropriate directory, we need to add an entry for Grub to use it to get to Chimera. The best way to do this will be to add an entry in /etc/grub.d/40_custom

 sudo vim /etc/grub.d/40_custom

Paste the following at the end of the file and change the partition designations on the "set root=" line and the "chainloader" line:

 menuentry "Mac OSX (Chimera)" {
 insmod part_gpt
 insmod hfsplus
 #replace this location with your OSX partition
 set root='(hd0,gpt2)'
 #replace this UUID with the UUID from your grub.cfg
 #search --no-floppy --fs-uuid --set=root 123eaee489759bd8
 #replace the (hd0,2) portion with your OSX partition designation
 chainloader (hd0,2)/boot0

How to Disable (or Enable) Spotlight in Mac OS X Mavericks & Mountain Lion

Disable Spotlight

The primary method is using launchctl, this will require the administrative password:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Another approach is to use the older indexing method of

sudo mdutil -a -i off

which turns off indexing only, but more on that in a minute. If you want to allow Spotlight to index your files again, copy and paste this:

sudo mdutil -i on

Reenable Spotlight

The guaranteed way to reenable Spotlight is to reload it into launchd using launchctl:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Alternatives to Spotlight

Here's some alternatives to Spotlight I have found. Some are full replacements for Spotlight and others are more like Launchy and have a more limited featureset.

  • Launchy - free, but donation requested
  • Alfred - free, but $$ for enhanced features
  • Butler - free trial
  • Quicksilver - free
  • LaunchBar - free trial

How to prevent .DS_Store file creation over network connections

Open a terminal and execute this command:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Either restart the computer or log out and back in to the user account. If you want to prevent .DS_Store file creation for other users on the same computer, log in to each user account and perform the steps above—or distribute a copy of the newly modified com.apple.desktopservices.plist file to the ~/Library/Preferences folder of other user accounts.

Execute this command to remove the already created files:

 find . -type f -name ".DS_Store" -delete