Disable Time Machines Disk Prompt

Whether you use Time Machine or not, you will probably have been irritated by the constant questioning of whether you wish to use an external drive to backup with Time Machine to it.

If this is the case then there is a simple way of disabling this via the command line

Open Terminal & type

sudo defaults write /Library/Preferences/com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool YES

And hit Enter, you will no longer be prompted by Time Machine, if for some reason you miss the prompts then just swap the YES for a NO and you will be presented with them again

Once disabled, you can still choose which disk to use for Time Machine by using the options in System Preferences.

Open System Preferences

click on Time Machine

Click on Select Disk and then choose the disk you wish to use

job done!

Command Line System Config

To change a number of system settings via the command line you can use the systemsetup command in Terminal

For example, to change a computers name you would enter the following

First, find out the current name

sudo systemsetup -getcomputername

then if its not to your liking enter

sudo systemsetup -setcomputername "iAM_iMac"

This will change your computer name to iAM_iMac, I don’t like spaces in names so I subsitute them with underscores _, but you can call the machine anything you wish.

Another useful option is setting a network time server, to do this enter the following

sudo systemsetup -setnetworktimeserver ntp0.itsallmacademic.com

In my example my Mac will now try to get its time settings from ntp0.itsallmacademic.com, you will need to replace this with your own time server, as there is no time server at the above address.

I don’t like power failures, and the most annoying thing is having to boot up all the machines that are essential to the day to day running of the company, to get around this irritation I do the following on all my Mac Servers

sudo systemsetup -setrestartpowerfailure on

This sets the machine to boot itself up after a power failure, as all good servers should

If you wish to see the full range of commands at your disposal enter this

systemsetup -help