OSX Tips – Turn off / Disable CUPS from the Command Line

CUPS

 

 

CUPS – the Common Unix Printing System is a modular printing system for unix-like operating systems, and is built in to Mac OSX. You may want to disable it to free up resources if you are optimising your system, and you can do so in the following way from the command line:

sudo launchctl unload -w /System/Library/LaunchDaemons/org.cups.cupsd.plist

You can re-enable it with the following:

sudo launchctl load -w /System/Library/LaunchDaemons/org.cups.cupsd.plist

You can test to see if it’s running with the following command:

sudo launchctl list | grep cupsd
Share Button

OSX Tips – Turn off / Disable Apple Push Notifications from the Command Line

Push Notifications

You can disable or turn off Apple Push notifications from the command line with the following command:

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

And you can turn it back on again with the following:

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

You could then test to see if it is on or off with either:

ps aux | grep apsd

or:

sudo launchctl list | grep apsd
Share Button

OSX Tips – Turn off / Disable Bonjour from the Command Line

 

Bonjour

If you are trying to optimise your OSX system and want to shut down services that you are not using, Bonjour might be one to target.

You can disable Bonjour with the following commands:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponderHelper.plist

You can then re-enable it with the following:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponderHelper.plist

You could test to see if the services are running using ps:

ps aux | grep mDNS

Or you could use launchctl:

sudo launchctl list | grep mDNS
Share Button

OSX Tips – Turn off Notification Center

Notification-Center

Does OSX’s Notification Center ever get on your nerves? You can disable it temporarily by holding down the option key and clicking on the Notification Center icon in the top right of your screen.

Or, you can turn it off using the command line:

sudo defaults write /System/Library/LaunchAgents/com.apple.notificationcenterui KeepAlive -bool false
killall NotificationCenter

The killall NotificationCenter command saves you having to reboot.

You can turn it back on again with the following commands:

sudo defaults write /System/Library/LaunchAgents/com.apple.notificationcenterui KeepAlive -bool true
killall NotificationCenter

If the icon does not reappear on your screen you can either launch the NotificationCenter.app application from within:

/System/Library/CoreServices/

or you can launch it from the command line:

/System/Library/CoreServices/NotificationCenter.app/Contents/MacOS/NotificationCenter
Share Button

OSX Tips – Turn off the software update schedule from the command line

Software-UpdateBy default OSX’s Software Update is scheduled to check for updates at a given interval and notify you when there are updates waiting to be installed. You can turn off checking for Software Updates from the command line.

To disable use the following command:

sudo softwareupdate --schedule off

and turn it back on again with the following:

sudo softwareupdate --schedule on
Share Button