sh 禁用OSX Yosemite烦恼/功能我没有使用

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 禁用OSX Yosemite烦恼/功能我没有使用相关的知识,希望对你有一定的参考价值。

# Tested on OSX Yosemite 10.10.4
# there is also an updated version (work in progress) for El Capitan here https://gist.github.com/guycalledseven/31ffe35eca056838b06b

# XXX TODO
# should I disable com.google.Keystone.Agent ??
# http://applehelpwriter.com/2014/07/13/how-to-remove-googles-secret-update-software-from-your-mac/


# Stop DS_Store file creation on network connections
# restart Finder afterwards
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
killall Finder

# Disable / Enable Dashboard
# Settings / Mission control / Dashboard (selector) - Off
# or
# completely disable:
defaults write com.apple.dashboard mcx-disabled -boolean YES; killall Dock
# enable again:
#defaults write com.apple.dashboard mcx-disabled -boolean NO; killall Dock



# remove adobe auto update helper (i only have acrobat installed, so running this on adobe cc instalation could damage it)
# not tested
cd /Library/LaunchDaemons
launchctl remove `basename com.adobe.ARM* .plist`
sudo rm com.adobe.ARM*

cd /Library/LaunchAgents
launchctl remove `basename com.adobe.ARM* .plist`
sudo rm com.adobe.ARM*


# disable sending of crash reports to Apple (SubmitDiagInfo) 
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.SubmitDiagInfo.plist

# disable photolibraryd 
# com.apple.photomoments.xpc tries to access the internet without any reason and authorisation
# photos.app stops working after this
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.photolibraryd
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.cloudphotosd
# after restart they show up here
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.photolibraryd.plist
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.cloudphotosd.plist

# disable Apple Push Notification Service (apsd)
# FaceTime could complain
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.apsd.plist

# disable gamed
# make sure to log out from game center
sudo defaults write /System/Library/LaunchAgents/com.apple.gamed Disabled -bool true

以上是关于sh 禁用OSX Yosemite烦恼/功能我没有使用的主要内容,如果未能解决你的问题,请参考以下文章

sh 从OSX Yosemite卸载nodejs

sh OSX for Hackers(Mavericks / Yosemite)

sh 清除OSX Yosemite上的PHPStorm 9.x设置

sh OSX for Hackers:Yosemite Edition。此脚本尽量不要*太固定,并且对系统的任何重大更改都需要提示。您'

sh OSX for Hackers:Yosemite Edition。此脚本尽量不要*太固定,并且对系统的任何重大更改都需要提示。您'

sh OSX for Hackers:Yosemite Edition。此脚本尽量不要*太固定,并且对系统的任何重大更改都需要提示。您'