Ok Pascal,
Voilà mon script pour réduire sensiblement les processus sur OS X Mavericks:
Copie sur un fichier que tu renommeras en "*.command"
Les parties modifiées sont marquées par "CUSTOM"
As-tu bien 16Go de Ram?
J'ai encore un autre script de lancement d'Audirvana en RAM, mais il faut que je trouve comment on envoie un fichier joint.
Essaie-le d'abord sur une carte SD d'essai que tu pourras retirer et effacer si jamais
A+ et bonne chance
Voilà mon script pour réduire sensiblement les processus sur OS X Mavericks:
Copie sur un fichier que tu renommeras en "*.command"
Les parties modifiées sont marquées par "CUSTOM"
As-tu bien 16Go de Ram?
J'ai encore un autre script de lancement d'Audirvana en RAM, mais il faut que je trouve comment on envoie un fichier joint.
Essaie-le d'abord sur une carte SD d'essai que tu pourras retirer et effacer si jamais
A+ et bonne chance
Code :
#!/bin/bash
#
# 04/01/14 - v1.2.2
#
# added system launch agents
# fixed a number of screen sharing problems
# tidied up the gui a bit
#
# 11/12/13 - v1.2.1
#
# bluetooth no longer switches off at all.
# prompt for wifi
# disk journaling turns off in the correct place, then back on again
# fixed issue where bluetooth keyboard/mouse would stop working
# fixed issue where applications wouldn't launch
# fixed issue where you could browse your network but not connect to devices
#
SUFFIX="AUDIO-OPT-OLD"
echo
echo "*************************************************************************"
echo
echo "Computer Audio Design"
echo "---------------------"
echo
echo "Mac OSX Audio Optimisation Script"
echo "v1.2.3-3"
echo "http://www.computeraudiodesign.com/osx-audio-optimization/"
echo
echo "*************************************************************************"
echo
echo "**THE USE OF THIS SCRIPT IS COMPLETELY AT YOUR OWN RISK. IT IS STRONGLY RECOMMENDED THAT YOU MAKE A BACKUP OF YOUR MAC BEFORE RUNNING IT.**"
echo
read -p "Turn off WiFi?" yn
if [ "$yn" = "y" ]; then
# turn off wifi
echo " WiFi"
networksetup -setairportpower en1 off 2>/dev/null
fi
echo
echo "*************************************************************************"
echo
echo "Turning off Features"
echo
# turn off sleep mode
echo " Sleep Mode"
sudo pmset sleep 0 2>/dev/null
sudo pmset disksleep 0 2>/dev/null
sudo pmset displaysleep 0 2>/dev/null
# disable hibernate
echo " Hibernate"
sudo pmset -a hibernatemode 0 2>/dev/null
# disable firewire networking
echo " Firewire Networking"
sudo sudo networksetup -setnetworkserviceenabled FireWire off 2>/dev/null
# disable software update checks
echo " Software Update Checks"
sudo softwareupdate --schedule off 2>/dev/null
# turn off spotlight
echo " Spotlight"
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist 2>/dev/null
# turn off automatic termination daemon
echo " Automatic Termination Daemon"
defaults write -g NSDisableAutomaticTermination -bool YES 2>/dev/null
# turn off dashboard
echo " Dashboard"
defaults write com.apple.dashboard mcx-disabled -bool YES 2>/dev/null
# turn off mission control
echo " Mission Control"
defaults write com.apple.dock mcx-expose-disabled -bool YES 2>/dev/null
# turn off notification centre
echo "Notification Centre"
sudo defaults write /System/Library/LaunchAgents/com.apple.notificationcenterui KeepAlive -bool false 2>/dev/null
# add quit option to finder
echo
echo "Adding quit as an option to Finder"
defaults write com.apple.finder QuitMenuItem 1 2>/dev/null
# Turn time machine off
echo "Turning time machine off"
sudo tmutil disable
# gui
echo
echo "*************************************************************************"
echo
echo "Optimising GUI"
echo
echo " Finder:"
echo
echo " window zooming"
defaults write com.apple.finder AnimateWindowZoom -bool false 2>/dev/null
echo " finder animations (snap-to-grid, info-pane, slow-mo)"
defaults write com.apple.finder DisableAllAnimations -bool true 2>/dev/null
echo " sound effects"
defaults write com.apple.systemsound "com.apple.sound.uiaudio.enabled" -int 0 2>/dev/null
echo " disabling desktop"
defaults write com.apple.finder CreateDesktop -bool FALSE 2>/dev/null
echo " animate effect when opening files"
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO 2>/dev/null
echo " rubber-band scrolling"
defaults write -g NSScrollViewRubberbanding -bool false 2>/dev/null
echo
echo " Dock:"
echo
echo " genie effect"
defaults write com.apple.dock mineffect -string scale 2>/dev/null
echo " animation"
defaults write com.apple.dock autohide-time-modifier -int 0 2>/dev/null
# Option removed from Mavericks but left here for 10.8
echo " 3d glass effect"
defaults write com.apple.dock no-glass -boolean YES 2>/dev/null
# Launch Daemons
echo
echo "*************************************************************************"
echo
echo " Disabling 3rd Party Launch Daemons & Startup Items"
echo
# create the folders
#sudo mkdir /Library/LaunchDaemons.$SUFFIX/ 2>/dev/null
#sudo mkdir /System/Library/StartupItems.$SUFFIX/ 2>/dev/null
#sudo mkdir /Library/StartupItems.$SUFFIX/ 2>/dev/null
#sudo mkdir ~/Library/LaunchAgents.$SUFFIX/ 2>/dev/null
# move current daemons into new folders
#sudo mv /Library/LaunchDaemons/* /Library/LaunchDaemons.$SUFFIX/ 2>/dev/null
#sudo mv /System/Library/StartupItems/* /System/Library/StartupItems.$SUFFIX/ 2>/dev/null
#sudo mv /Library/StartupItems/* /Library/StartupItems.$SUFFIX/ 2>/dev/null
#sudo mv ~/Library/LaunchAgents/* ~/Library/LaunchAgents.$SUFFIX/ 2>/dev/null
echo
echo "*************************************************************************"
echo
echo " Removing User Login Items..."
echo
mv ~/Library/Preferences/com.apple.loginitems.plist ~/Library/Preferences/com.apple.loginitems.plist.$SUFFIX 2>/dev/null
# turn disk Journal ON
#echo Turning disk Journal off
#sudo /usr/sbin/diskutil disableJournal /
# reloads to avoid reboot
echo
echo "Attempting to apply changes"
sudo killall Finder
sudo killall Dock
sudo killall NotificationCenter
# ** CUSTOM
# limit writings
sudo mount -vuwo noatime /
# swap compressor
sudo nvram boot-args="vm_compressor=2" 2>/dev/null
# disable virtualization VT-d
sudo nvram boot-args="dart=0x0" 2>/dev/null
# disable ksfetch (GoogleSoftwareUpdate)
sudo chmod 000 ~/Library/Google/GoogleSoftwareUpdate 2>/dev/null
# disable AlertNotificationService (Nécessaire pour Google Chrome)
#sudo chmod 444 /Applications/"Google Chrome.app"/Contents/Versions/65.0.3325.181/"Google Chrome Framework.framework"/Versions/A/XPCServices/AlertNotificationService.xpc 2>/dev/null
# disable crashpad_handler (Google Chrome)
sudo chmod 444 /Applications/"Google Chrome.app"/Contents/Versions/65.0.3325.181/"Google Chrome Framework.framework"/Versions/A/Helpers/crashpad_handler 2>/dev/null
# disable crashpad_handler (Iron)
sudo chmod 444 /Applications/Iron.app/Contents/Versions/66.0.3450.0/"Chromium Framework.framework"/Versions/A/Helpers/crashpad_handler 2>/dev/null
# disable VTDecoderXPCService (Google Chrome)
sudo chmod 444 /System/Library/Frameworks/VideoToolbox.framework/Versions/A/XPCServices/VTDecoderXPCService.xpc 2>/dev/null
# disable iTunes Helper
sudo chmod 000 /Applications/iTunes.app/Contents/MacOS/iTunesHelper.app 2>/dev/null
# com.apple.iTunesLibraryService
sudo chmod 444 /Library/Frameworks/iTunesLibrary.framework/Versions/A/XPCServices/com.apple.iTunesLibraryService.xpc 2>/dev/null
# disable tccd
sudo chmod 444 /System/Library/PrivateFrameworks/TCC.framework/Resources/tccd 2>/dev/null
# com.apple.BKAgentService
sudo chmod 444 /System/Library/PrivateFrameworks/BookKit.framework/XPCServices/com.apple.BKAgentService.xpc 2>/dev/null
# com.apple.dock.extra
sudo chmod 444 /System/Library/CoreServices/Dock.app/Contents/XPCServices/com.apple.dock.extra.xpc 2>/dev/null
# delete existing safe sleep file
sudo rm /private/var/vm/sleepimage 2>/dev/null
# keep it from coming back after restart
sudo ln -s /dev/null /var/vm/sleepimage 2>/dev/null
# After stopping dynamic_pager daemon remove swapfiles
sudo rm /private/var/vm/swapfile*
# turn off spaces
Defaults write com.apple.dock workspaces -bool false 2>/dev/null
killall Dock
# remove Spotlight icon from menu bar
sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
killall SystemUIServer
echo
echo "*************************************************************************"
echo
read -p "Turn off System Launch Daemons?" yn
if [ "$yn" = "y" ]; then
echo
echo "Disabling System Launch Daemons..."
echo
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.AOSNotificationFMM.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.AirPlayXPCHelper.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.DiagnosticReportCleanUp.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.DumpGPURestart.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.DumpPanic.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.FileSyncAgent.sshd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.FontWorker.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.IFCStart.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.IOAccelMemoryInfoCollector.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.InternetSharing.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ManagedClient.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ManagedClient.startup.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.NetBootClientStatus.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.NetworkDiagnostics.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.NetworkLinkConditioner.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ODSAgent.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.PCIELaneConfigTool.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.RFBEventHelper.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.RemoteDesktop.PrivilegeProxy.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ServerPerfLog.aslmanager.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ServerPerfLog.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.UserNotificationCenter.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.activitymonitord.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.airport.wps.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.airportPrefsUpdater.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.alf.agent.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.apsd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.appleprofilepolicyd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.aslmanager.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.avbdeviced.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.awacsd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.backupd-attach.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.backupd-auto.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.backupd-wake.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.backupd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.comsat.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.distnoted.xpc.daemon.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.docsetinstalld.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dpd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dspluginhelperd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dvdplayback.setregion.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.efax.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.emond.aslmanager.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.emond.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.eppc.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.familycontrols.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.findmymac.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.findmymacmessenger.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ftp-proxy.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.geod.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.getty.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.gkreport.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.hdiejectd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.kdumpd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.kuncd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.locate.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.locationd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mbicloudsetupd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.scan.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.spindump.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mrt.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.msrpc.echosvc.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.msrpc.lsarpc.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.msrpc.mdssvc.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.msrpc.netlogon.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.msrpc.srvsvc.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.msrpc.wkssvc.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mtmd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mtmfs.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.nfsconf.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.nfsd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.nis.rpc.yppasswdd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.nis.ypbind.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.nis.ypserv.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.pfctl.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.preferences.timezone.admintool.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.preferences.timezone.auto.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.printtool.daemon.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.racoon.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.remotepairtool.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.revisiond.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.rpcbind.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.sandboxd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.scsid.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.secd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.shutdown_monitor.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.smb.preferences.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.smbd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.softwareupdatecheck.initial.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.softwareupdatecheck.periodic.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump_symbolicator.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.stackshot.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.statd.notify.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.storereceiptinstaller.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.suhelperd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ucupdate.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.uninstalld.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.vsdbutil.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.warmd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.wdhelper.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.webdavfs_load_kext.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.xprotectupdater.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.xprotectupdaterinit.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.xsanmgrd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.xscertadmin.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.xscertd-helper.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.xscertd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.danga.memcached.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.vix.cron.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/finger.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/ftp.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/login.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/ntalk.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/org.cups.cups-lpd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/org.cups.cupsd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/org.freeradius.radiusd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/org.ntp.ntpd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/org.openldap.slapd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/org.postfix.master.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/org.postgresql.postgres_alt.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/telnet.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/tftp.plist 2>/dev/null
# ** CUSTOM
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.afpfs_afpLoad.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.afpfs_checkafp.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.airportd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.blued.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.bnepd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist 2>/dev/null
# Open files
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.FileCoordination.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.firmwaresyncd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.hidd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.IOBluetoothUSBDFU.plist 2>/dev/null
# Droits: sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.locum.plist 2>/dev/null
# Amarra: sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.networkd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.networkd_privileged.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.pacemaker.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.sleepservicesd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.softwareupdated.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.softwareupdate_firstrun_tasks.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.systemstatsd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.tccd.system.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.usbd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.usbmuxd.plist 2>/dev/null
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.UserEventAgent-System.plist 2>/dev/null
# New:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.AOSNotificationOSX.plist 2>/dev/null
# Not process & not better SQ:
#sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportPanicService.plist 2>/dev/null
#sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.bluetoothaudiod.plist 2>/dev/null
#sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.iCloudStats.plist 2>/dev/null
#sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.index.plist 2>/dev/null
#sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.wifid.plist 2>/dev/null
#sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.cmio.AVCAssistant.plist 2>/dev/null
#sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.cmio.AppleCameraAssistant.plist 2>/dev/null
#sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.cmio.IIDCVideoAssistant.plist 2>/dev/null
#sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.cmio.VDCAssistant.plist 2>/dev/null
fi
echo
echo "*************************************************************************"
echo
read -p "Turn off System Launch Agents?" yn
if [ "$yn" = "y" ]; then
echo
echo "Disabling System Launch Agents..."
echo
launchctl unload -w /System/Library/LaunchAgents/com.apple.accountsd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.AddressBook.abd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.AddressBook.AssistantService.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.AddressBook.SourceSync.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.afpstat.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.AirPlayUIAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.AirPortBaseStationAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.alf.useragent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.aos.migrate.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.AOSNotificationOSX.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.AOSPushRelay.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.AppleGraphicsWarning.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.appstoreupdateagent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.apsctl.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.assistant_service.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.assistantd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.BezelUI.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.CalendarAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.ContainerRepairAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.cookied.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.CoreLocationAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.CoreRAIDAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.coreservices.uiagent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.csuseragent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.distnoted.xpc.agent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.familycontrols.useragent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.findmymacmessenger.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.FontRegistryUIAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.FontValidator.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.FontValidatorConduit.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.FontWorker.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.FTCleanup.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.gamed.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.helpd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.iChat.Theater.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.imagent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.imklaunchagent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.isst.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.java.InstallOnDemand.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.java.updateSharing.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.librariand.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.locationmenu.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.lookupd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.marcoagent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.maspushagent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.mdmclient.agent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.mdworker.32bit.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.mdworker.bundles.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.mdworker.isolation.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.mdworker.lsb.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.mdworker.mail.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.mdworker.shared.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.mdworker.single.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.metadata.mdwrite.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.midiserver.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.mrt.uiagent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.NetworkDiagnostics.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.PackageKit.InstallStatus.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.parentalcontrols.check.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.pbs.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.PCIESlotCheck.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.pictd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.printtool.agent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.printuitool.agent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.PubSub.Agent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.quicklook.32bit.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.quicklook.config.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.quicklook.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.quicklook.ui.helper.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.ReclaimSpaceAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.Self.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportGPURestart.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportPanic.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.safaridavclient.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.scopedbookmarkagent.xpc.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.ScreenReaderUIServer.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.scrod.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.ServiceManagement.LoginItems.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.sociald.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.SocialPushAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.speech.feedbackservicesserver.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.speech.recognitionserver.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.speech.synthesisserver.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.speech.voiceinstallerd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.spindump_agent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.store_helper.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.storeagent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.SubmitDiagInfo.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.SubmitDiagInfo.xpc.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.syncdefaultsd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.syncservices.SyncServer.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.syncservices.uihandler.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.systemprofiler.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.talagent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.tccd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.tiswitcher.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.TMLaunchAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.twitterd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.ubd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.universalaccesscontrol.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.universalaccessd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.unmountassistant.useragent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.usernoted.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.UserNotificationCenterAgent-LoginWindow.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.UserNotificationCenterAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.VoiceOver.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.WebKit.PluginAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.weibod.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.xmigrationhelper.user.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.ZoomWindow.plist 2>/dev/null
# ** CUSTOM
launchctl unload -w /System/Library/LaunchAgents/com.apple.icloud.AOSNotificationAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.bookstoreagent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.EscrowSecurityAlert.plist 2>/dev/null
# Amarra: launchctl unload -w /System/Library/LaunchAgents/com.apple.fontd.useragent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.identityservicesd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.NetworkBrowserAgent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.sharingd.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.soagent.plist 2>/dev/null
launchctl unload -w /System/Library/LaunchAgents/com.apple.wifi.WiFiKeychainProxy.plist 2>/dev/null
# New:
launchctl unload -w ~/Library/LaunchAgents/com.google.keystone.agent.plist 2>/dev/null
# Not process & not better SQ:
#launchctl unload -w /System/Library/LaunchAgents/com.apple.speech.speechdatainstallerd.plist 2>/dev/null
#launchctl unload -w /System/Library/LaunchAgents/com.apple.softwareupdate_notify_agent.plist 2>/dev/null
#launchctl unload -w /System/Library/LaunchAgents/com.apple.SafariNotificationAgent.plist 2>/dev/null
#launchctl unload -w /System/Library/LaunchAgents/com.apple.Maps.pushdaemon.plist 2>/dev/null
fi
echo
echo "*************************************************************************"
echo
echo
echo "Finished. You should restart now to ensure all changes are applied."
echo