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 moreHow to use Time Machine to back up your Mac to a Windows shared folder – macOS

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 moremacOS Software Update via Terminal

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.

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 moreHow to reinstall macOS from macOS Recovery

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 moreHow to create a bootable installer for macOS

How to speed up Time Machine so it backs up your data faster – macOS

If you are a constant-on Time Machine user, you won’t even notice when a scheduled backup is taking place. That’s because Time Machine is designed to work quietly and slowly in the background. Most of your regular backups are incremental and therefore don’t need much power. If you only back up your Mac once per week (or longer), Time Machine has a lot more work to do, but still runs quietly and slowly in the background. Using this Terminal command, you will disable the disk operation throttling so Time Machine will run faster.

sudo sysctl debug.lowpri\_throttle_enabled=0

Restore default setup:

sudo sysctl debug.lowpri\_throttle_enabled=1

Youtube-dl – tips

Youtube-dl is a python based command line video downloader that just works. Despite its name would suggest, youtube-dl downloads more than just youtube videos, it currently supports more than 800 online video and audio sites. If you are using a desktop app or web app to download videos now, chances are it’s using youtube-dl in the back-end. You are better off using youtube-dl instead considering you get so much more power and options with it. Here are some simple tips to get you started.

Install from the source

There are multiple options to get started with installing youtube-dl, I personally recommend installing from the source simply because how frequently its database gets updated and most OS package managers are a bit late when keeping up with the updates. The best thing about youtube-dl is that it runs on all major OS as long as you have python installed.

Windows users can download latest exe file. For Linux, MacOS users:

sudo curl -L https://yt-dl.org/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

Download using cURL to the proper application directory.
Apply proper access permission to run youtube-dl.
Always update to the latest version

Online video players are updated frequently which can often break how youtube-dl download video files from your favorite site. So, just like browser video downloading extensions, it’s a good idea to keep it up-to-date. You could make a cronjob, but I prefer to do it manually.

Updating youtube-dl is as simple as typing:

youtube-dl -U

Read moreYoutube-dl – tips