LeopardのSpotlightを完全に無効化

二つの記事を参考に,MacOS X LeopardのSpotlightを完全に止めます.

garrettreid.com:Disabling spotlight in Mac OSX 10.5 Leopard

Leopardの新しいspotlightは,Tigerのものよりかなり強力だ.
しかし我々のように,システムのリソースを使ってほしくない人もいる.
残念なことに,Tigerでspotlightを無効にする手法,
/etc/hostconfigに“SPOTLIGHT=-NO-”を追加する-はもう役に立たない.

While the new spotlight in Leopard is much more powerful than it was in Tiger, there are still those of us that would rather not have our system eating up system resources. Unfortunately, adding “SPOTLIGHT=-NO-” to /etc/hostconfig no longer does anything.

spotlightを無効化するには,(しかも無害に)
Terminal(/Applications/Utilities/Terminal.app)を起動し,
以下の二つのコマンドを実行する.

To disable spotlight (non-destructively), open up Terminal.app (/Applications/Utilities/Terminal.app), and execute the following two commands:

--------1--------
sudo chmod 0000 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker

(これは,spotlightのインデックスを止める.2行に見えますが,1行のコマンドです)
(This will disable the spotlight indexing)
-----------------

--------2--------
sudo chmod 0000 /System/Library/CoreServices/Spotlight.app

(これは,メニューバーのspotlightを削除する)
(This will remove spotlight from your menu bar)
-----------------

もし,spotlightを再度有効にしたい場合,disk utility((/Applications/Utilities/disk utility.app)を起動し,
起動ディスクの権限を復元すればよい.
(上記2コマンドの,「0000」の部分を755に変えて実行しても,再度有効化できます)

If at any time you want to re-enable spotlight, simply run disk utility, and have it fix permissions on your boot drive.

免責条項:
*上記2コマンドを実行した後,再起動が必要です
*これらを行うと,spotlight依存の機能が使えなくなります.例えば,mail内容の検索など
*多分,spotlightを無効にすると,Time Machineも使えなくなります.
 この予想が間違っていたり,他の方法があったら,教えてください.

Disclaimers:
* You should probably reboot after running those two commands.
* Doing this will disable any features that explicitly depend on spotlight, such as searching mail content.
* I believe that disabling spotlight will break Time Machine. If this is wrong, or there’s a way around it, let me know!


#############################################################

MacOS X Hints:10.5: Disable Spotlight completely

OS X 10.5 (leopard)のSpotlightとそのMetadata Framework(いわゆるmds)を無効化してみた.
二つのファイルを,安全な場所に移動するだけだ.
もし再度有効にしたければ,元の場所に戻せば,spotlightが再度有効になる.
そのファイルは,
/System/Library/LaunchAgents/com.apple.Spotlight.plist
/System/Library/LaunchDaemons/com.apple.metadata.mds.plist
(Finderで上記2ファイルを他の場所にドラッグ&ドロップしても,「移動」ではなく「コピー」する場合がある.「コピー」になってしまったら,元の場所のファイルを削除することで,事実上「移動」にできる)
再起動することで,SpotlightとそのMetadata Frameworkが動作しなくなる.

これらのファイルはSpotlightとそのMetadata Frameworkにあるので,
Appleのソフトウェアアップデートの後など,
アップデートによって上記2ファイルが復元されていないかチェックする必要がある.
個人的にはこの操作の影響を良いとは思えないが,
これによって,マウントしているディスク全てのインデックス化を止めることができる,
Spotlightももうメニューバーには現れない.

I disabled Spotlight and its Metadata Framework in OS X 10.5 by moving two files to a safe location that they can be restored from if necessary. The files are:
/System/Library/LaunchAgents/com.apple.Spotlight.plist
/System/Library/LaunchDaemons/com.apple.metadata.mds.plist
You then need to reboot so that launchd will no longer start them. Since these are in /System/Library, you will need to check after every update to insure that Apple has not added them back in. I am not positive of all the implications of this, but it does stop the indexing of every volume that I mount, and Spotlight does not show up in the menu bar.

10.5 (Leopard)では,/etc/hostconfigにspotlightの項目がなくなっている.
将来,/etc/hostconfig自体無くなってしまうかもしれない.

In 10.5, there is no spotlight entry in /etc/hostconfig, and there is a note there that states that this file will be going away in the future.



Comments

Popular posts from this blog

MacbookやiMacのSSD/HDDを完全消去する(High Sierra対応版)

conda clean --allはやってはいけない

Nintendo SwitchがあればChromecastはいらないぞ!