Posts tagged with "macos"

Time Machine backups on regular SMB drive

8 months ago 0 comments

I just set up my Mac to save Time Machine backups to a regular SMB share. Doing this is actually quite easy:

Step 1: Create a .sparsebundle

Open Disk Utility and choose File => New Image => Blank Image.

Give the image a name and size (check the Time Machine settings first to see how large your backups will be).

IMPORTANT:

  • Set Format to Mac OS Extended (Journaled)
  • Set Encryption to 128-bit AES encryption
  • Set Partitions to Single partition - Apple Partition Map
  • Set Image Format to sparse bundle disk image

Now click Create.

Step 2: Copy the .sparsebundle to your server

Unmount the .sparsebundle by clicking the eject icon next to the image's name in the Finder sidebar. Now copy the .sparsebundle onto your server. You can now delete the original version from your Mac, just make sure that the copy is on your server.

Step 3: Configure Time Machine

Open up a new Terminal window and type

sudo tmutil setdestination "/Volumes/NameOfYourImage"

(replace NameOfYourImage with the name of your .sparsebundle image)


Congratulations, you're done! Now you can start a new backup in the Time Machine settings.

Clean macOS dot underscore files

9 months ago 0 comments

If your directories are full of files like ._filename, simply run dot_clean -n <DIRECTORY> to merge them with their corresponding native files.

The option -n means that every ._ file which can't be merged will be deleted. For more information on that, run man dot_clean (web version).

Get rid of the macOS Catalina update badge

about 1 year ago 0 comments

This happened lately. I disabled searching for updates on my Mac, because I want to stay on 10.14, but accidentally opened the update preference pane, which then started to search for an update.

Since then, the settings icon in the dock had this red badge indicating, that there's an update available.

That's really distracting, so I tried out many commands to remove it, but none of them worked. One was working in 10.13 and lower only, another one required you to do it before the update was found, ...

But I ended up with this command, which actually worked: defaults write com.apple.systempreferences AttentionPrefBundleIDs 0 && killall Dock (Source).

Restarting the audio process in macOS

10 months ago 0 comments

Just in case your Mac refuses to play sounds, try killing CoreAudio, it will restart shortly after:

sudo kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print $1}'`

Works perfectly fine to fix sound output on my Mac on 10.14!

Source