macOS not shutting down since upgrading to new security upgrade

Send this commands via terminal:

rm -rf ~/Library/Caches/*
rm -rf ~/Library/Saved\ Application\ State/*
sudo rm -rf /Library/Caches/*
sudo rm -rf /System/Library/Caches/*
atsutil databases -removeUser
sudo atsutil databases -remove
sudo atsutil server -shutdown
sudo atsutil server -ping
sudo rm -rf /var/folders/*

Reboot system.

How to change PhotoStation Synology logo

Login via ssh:

ssh -2 [email protected]
sudo -i

Copy Your logo white template:

cp /yourlogo.png /var/packages/PhotoStation/target/photo/photo_new/images/White/logo_ps6.png

Copy Your logo dark template:

cp /yourlogo.png /var/packages/PhotoStation/target/photo/photo_new/images/Black/logo_ps6.png

How to use Time Machine to back up your Mac to a Windows shared folder – macOS

The issue that makes Time Machine more difficult in terms of options for backup locations is that it requires use of Apple’s proprietary HFS+ filesystem. Although I’m certain the HFS+ features that Time Machine uses for file versioning and linking could be “mimicked” for use on other more open filesystems, the reality is that Apple chose HFS+ and supports that filesystem exclusively in Time Machine (in fact as of this writing Apple’s new APFS isn’t even supported for Time Machine backups as of yet).

  • Create a Windows share location
  • Make the remote share automatically mount
  • make Time Machine use the remote share and file
  • Check Time Machine

Read more

macOS Software Update via Terminal

To get a list of available software updates, type the following command:

softwareupdate -l

You will see a list of available updates. You can then install all available software updates with the following command:

sudo softwareupdate -iva

The use of sudo is required to get superuser privileges to actually install the updates. You can also install only the recommended updates with:

sudo softwareupdate -irv

Read more

If unable to unmount drive on macOS

You can try booting from OS X recovery by holding CMD + R at the time of startup. Once booted from OS X recovery, select Terminal from the utilities and then at the unix prompt enter:

  • diskutil list
  • then press return and look for the disk identifier and enter the following command with the disk identifier

sudo diskutil unmountDisk /dev/(enter here disk identifier name)

  • Press return and enter your admin password if prompted. This should unmount all volumes of the physical drive.
  • If still the above method didn’t work, then the last option is to force the entire disk to unmount.
  • For that using the terminal application again, enter the following command:

sudo diskutil unmount force /dev/(enter here disk identifier name)

  • Then press return and enter the admin password if prompted. This will definetely unmount the entire disk and all its related volume.

Clearing the quarantine extended attribute from downloaded applications – macOS

When I’m packaging an application for deployment, I normally download the latest version from the vendor. If it’s a drag-and-drop install, where the application is a self-contained bundle, it will get the extended attribute associated with it.

The quarantine attribute is added by the OS so that it can ask for user confirmation the first time the downloaded program is run. Gatekeeper in Lion and Mountain Lion also uses the attribute to determine if an application should be checked (and blocked if needed.)

To avoid issues with both unwanted messages and Gatekeeper, I normally clear this attribute as part of my packaging. Here’s how to check to see if your application has the attribute associated with it:

1. Open Terminal
2. Run the following command:

xattr /path/to/

If the attribute is associated with the application, you should see the following output:

xattr /path/to/

Note: Other attributes may also be listed, with being a common one.
To remove the quarantine attribute, you would then run the following command:

sudo xattr -r -d /path/to/

That will recursively remove the attribute from the application. The -r option will allow the quarantine attribute of all files inside the application to be selected, while the -d option causes the given attribute name (and associated value) to be removed.

How to reinstall macOS from macOS Recovery

Learn how to use macOS Recovery to reinstall the Mac operating system on your built-in drive or an external drive.

macOS Recovery makes it easy to reinstall the Mac operating system, even if you need to erase your startup disk first. All you need is a connection to the Internet. If a wireless network is available, you can choose it from the Wi-Fi menu in the menu bar. This menu is also available in macOS Recovery.

Read more

How to create a bootable installer for macOS

You can use an external drive or secondary volume as a startup disk from which to install the Mac operating system.

These advanced steps are primarily for system administrators and others who are familiar with the command line. You don’t need a bootable installer to install macOS, but it can be useful when you want to install macOS on multiple computers without downloading the installer each time.

Read more