Install Rosetta 2 on ARM macOS

Rosetta 2 doesn’t install automatically on an ARM-based mac without X86-64 apps. If you try to run an Intel-only binary on an Apple Silicon chip, the default message will be :

bad CPU type in executable: {executable_path}

To install Rosetta 2, run :

softwareupdate --install-rosetta

Enable/Disable Default Gatekeeper Security in macOS

This change will add the “Anywhere” option for opening apps to the Security preference panel in macOS Sonoma and Sequoia, which is hidden by default otherwise.

sudo spctl --master-disable

You’ll see a confirmation reported back stating: “Globally disabling the assessment system needs to be confirmed in System Settings.”

To re-enable the default behaviour, use :

sudo spctl --master-enable

Disable popup showing accented characters when holding down a key

In macOS, when a key is held down while entering text, a popup is shown which lets one choose between various accented forms of the character. To disable this execute the following command line in the Terminal :

defaults write -g ApplePressAndHoldEnabled -bool false

You’ll need to log out and log back in again for the setting to take effect.

This should disable the display of the popup and character typed should start repeating when the key is held down.

If you ever wish to revert to the orignial behaviour, execute the following command line in the Terminal :

defaults write -g ApplePressAndHoldEnabled -bool true

You’ll need to log out and log back in again for the setting to take effect.