Macbook
See also Linux Annoyances for Terminal on Mac

Suppose you want all .xlsx files to open with LibreOffice instead of Numbers. Do the following.

  1. Find a file with the extension (.xlsx), right click, and Get Info.
  2. Under Open with, open the dropdown, find the application you want to open this type of file (LibreOffice), and select it.
  3. Click the Change All… button.
  4. Confirm that you want to make the change.

From this point on, all files with the same extension will open with this application.

From https://www.lifewire.com/reset-mac-printing-system-to-fix-os-x-printer-problems-2259970
If something goes wrong with printing, for example a bad file descriptors error, you need to reset the printing system. If you reset the printing system, you will

  • lose all print queues and pending print jobs
  • remove all printer preference files
  • removes all printers currently in the Printers & Scanners preference pane.

To Reset Printing System:

  1. Launch System Preferences
  2. Select Printers & Scanners
  3. In the Printers and Scanners preference pane, place your cursor in an empty area of the printer list sidebar (where the printers are listed) and right-click; select Reset Printing System from the popup.
  4. You're asked to confirm. Press Reset.
  5. You may need to enter administrator password or finger.

The printing system will be reset and you will need to add back your printer.

  1. Turn device on
  2. Press and hold the Cancel (X) button till green light blinks 5 times, then release
  3. Output is printed. On second page you'll find the IP address.

Leawo Blu-ray Player works.

  1. Mount the .iso (right-click on .iso file, )
  2. Run Leawo
  3. See: Open File and the DVD you've mounted
  4. Right-click on the DVD you want to play
  5. Play Disk

This is likely an alert that you have received new mail. To check and remove this:

  1. Open the Mail app
  2. Select Mail > Preferences
  3. General tab
  4. In the drop-down menu next to the New messages sound, select your favorite sound or None.

20190905 Have seen videos that playback super fast when there is audio in the file. Also happens when watching YouTube videos.
Problem solved by https://9to5mac.com/2019/07/29/macos-fast-video-playback-bug-fix-coreaudiod-video/

  • Open Activity Monitor
  • Under CPU tab, find coreaudiod process, and click to select it.
  • Click the X-in-stopsign button upper left of the Activity Monitor screen, and Force Quit.
  • coreaudiod will restart and videos will play just fine.

20190923, happened again. Did the above, problem solved.

This from http://osxdaily.com/2013/05/17/see-all-running-apps-mac-os-x/

  • Force Quit Applications window: Command+Option+Escape to summon the basic “Force Quit Applications” window (a simple task manager for OS X). Only shows windowed-applications.
  • Activity Monitor: Shows all applications in addition to windowed ones. Command+Spacebar type “Activity”. Select an app, use the X n upper left to bring up dialog allowing quit and force quit choices.
  • top: Run Terminal, command=top. Sort by cpu or memory usage: top -o cpu [or] top -0 rsize
  • ps: Run Terminal command=ps ps aux [or] ps aux | grep process

Property files are stored in /Library/Preferences. Run Terminal to work with. From https://www.amsys.co.uk/time-machine-10-8-part-3-advanced-features/

Following is example for Time Machine, limiting its disk use.

Time Machine by default will use all the available disk space on your backup drive. The good news is that you can setup a maximum limit that Time Machine can use. All you need to do is specify in megabytes the maximum space limit. You can do this by multiplying your Gigabyte preference by 1024 bytes. For example if I wanted the maximum backup space to be 100GB, I would multiply 100 by 1024 which equals 102400. I can then enter this terminal command:

sudo defaults write /Library/Preferences/com.apple.TimeMachine MaxSize 102400

This preference can be viewed within the /Library/Preferences/com.apple.TimeMachine.plist file by

sudo defaults read /Library/Preferences/com.apple.TimeMachine

To remove the limit, use the following command:

sudo defaults delete /Library/Preferences/com.apple.TimeMachine MaxSize

You want to delete files because the disk is full, but OS X won't let you do this because the disk is full. https://support.apple.com/en-us/HT201583

  1. Reboot the Mac, and while it's rebooting press and hold Command-R
  2. When the MacOS Utilities window appears, select: Disk Utility and click Continue
  3. In Disk Utility, select the disk that's causing the issue, and use First Aid to look at and repair the disk.
  4. When this finishes, you can First Aid another disk.
  5. Then quit the disk utility and restart your Mac.
  6. Then empty the trash.

For example, you have lots of subdirectories in your Videos directory, and how can you determine which is using the most space?

  • Start Terminal
  • Change to the directory you want to look at (for example, cd Videos)
  • Enter the command du -hcd 1
    • du disk use
    • h human readable form
    • c show a total for the directory
    • d 1 depth, 1 means only top level, the subdirectories in the current directory

Digested from link

20191213 This did not work for me: I'd downloaded the Win10 ISO and followed instructions to create a boot USB stick.  The USB stick wouldn't boot. However I was able to use [[https://www.microsoft.com/en-gb/software-download/]] on a Windows machine to create a bootable USB stick.

You have an ISO file and you want to make a bootable USB stick from it. You will need a USB stick larger than the ISO file (e.g., ISO is 6GB, you can use a 8GB or larger USB drive. When done, the drive is completely full.)

  1. Run terminal
    diskutil list
  2. Find name of the USB stick (e.g., /dev/disk4; we'll use /dev/diskX here)
  3. diskutil unmount /dev/diskX

    or if that doesn't work do

    diskutil unmountDisk /dev/diskX

    you should see a message saying unmount was successful.

  4. Now go to finder and locate the ISO file. Right-click, and Copy <filename> as Pathname.
  5. Back to terminal, enter part of command (don't press enter yet)
    sudo dd bs=1m if=

    and then paste the pathname of the ISO file to the command and then add of=/dev/rdiskX

  6. For ISO file in smi's download directory with name silly.iso the command will look something like
    sudo dd bs=1m if=/Users/smi/Downloads/silly.iso of=/dev/rdiskX
  7. When it completes, type
    diskutil eject /dev/diskX

    see “ejected” message and unplug the USB stick.

bs is block size
if is input file
of is output file

Takes about 2 minutes to write a 6GB ISO file to a USB 3.1 drive.

20191213 I downloaded a Windows 10 ISO file from https://www.microsoft.com/en-gb/software-download/windows10ISO
You can find other Windows versions to download, see https://www.microsoft.com/en-gb/software-download/

Burn the ISO to Bootable CD/DVD

From Umass link

  1. Applications > Utilities > Disk Utility
  2. Insert blank CD/DVD
  3. Drag the *.iso file from a Finder window to the Disk Utility window, drop in left pane in the empty area below the Mac drive names.
  4. Select the .iso file name in the left pane of Disk Utility, and click Burn (top left).
  5. The Burn Disk In: window opens and shows your CD/DVD as destination
  6. Click Burn
  7. When done the disk will eject

Suppose you're running Resolve and trying to archive a project, and maybe try to rename it. You can see that the Finder window for storing the project is the active window and it's also covered by the View Projects window, it's impossible to get to it. I figured out what to do on 20200105.

  1. Hold down Alt/Option key, move mouse to the Corner of the (Resolve main) window; see double arrow ←→ appear, double-click.
  2. Move the main window out of the way (to another monitor for example)
  3. For the monitor with the View Projects window is covering the Finder window, switch desktops away and then back.
  4. The Finder (hidden) window will appear; quickly drag this so it's outside the covering View Projects window.
  5. You can then work on the no-longer-hidden Finder window and continue.

Monkey Bread Software. Has TreeSize and Show IP in menu bar.

This page has been visited 2 times yesterday, 1 time today, and 85 times in total since April 25, 2019.

  • Last modified: 2020.01.28 07:32
  • by smismi7