Go ahead and close your terminals and open a new terminal window
ImageMagick:
sudo port install perl5.34 sudo port install imagemagick sudo port install p5.34-perlmagick
% sudo port install perl5.34 ---> Computing dependencies for perl5.34 The following dependencies will be installed: db48 gdbm gettext-runtime libiconv ncurses readline Continue? [Y/n]: Y .....
% sudo port install imagemagick ---> Computing dependencies for ImageMagick The following dependencies will be installed: aom bash brotli bzip2 cairo coreutils dav1d djvulibre expat fftw-3 fontconfig freetype gdk-pixbuf2 ghostscript giflib glib2 gmp gobject-introspection icu imath jasper jbig2dec jbigkit kvazaar lcms2 lerc libde265 libdeflate libedit libelf libffi libgcc libgcc14 libheif libidn libjpeg-turbo libpaper libpixman libpng libraw libtool libxml2 lz4 m4 mpdecimal openexr openh264 openjpeg openssl openssl3 pcre2 perl5 pkgconfig py313-mako py313-markdown py313-markupsafe py313-setuptools python313 python3_select python3_select-313 python_select python_select-313 shared-mime-info sqlite3 svt-av1 tiff urw-fonts webp x265 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXt xorg-libice xorg-libsm xorg-libxcb xorg-xcb-proto xorg-xcb-util xorg-xorgproto xrender xz zlib zstd Continue? [Y/n]: Y .... ---> Some of the ports you installed have notes: coreutils has the following notes: The tools provided by GNU coreutils are prefixed with the character 'g' by default to distinguish them from the BSD commands. For example, cp becomes gcp and ls becomes gls.
If you want to use the GNU tools by default, add this directory to the front of your PATH environment variable: /opt/local/libexec/gnubin/ libheif has the following notes: Support for rav1e now disabled by default; enable via +rav1e libidn has the following notes: GNU libidn2 is the successor of GNU libidn. It comes with IDNA 2008 and TR46 implementations and also provides a compatibility layer for GNU libidn. python313 has the following notes: To make this the default Python or Python 3 (i.e., the version run by the 'python' or 'python3' commands), run one or both of:
sudo port select --set python python313 sudo port select --set python3 python313 shared-mime-info has the following notes: A startup item has been generated that will start shared-mime-info with launchd, and will be enabled automatically on activation. Execute the following command to manually _disable_ it:
sudo port unload shared-mime-info
Depends on which version of Python 3 gets installed/available, you may want to set the default version of Python by running the ‘select -set’ commands at the bottom of the install
sudo port install p5.34-perlmagick sudo port install p5.34-image-exiftool
% sudo port install p5.34-image-exiftool ---> Computing dependencies for p5.34-image-exiftool ---> Fetching archive for p5.34-image-exiftool ---> Attempting to fetch p5.34-image-exiftool-13.300.0_0.darwin_any.noarch.tbz2 from https://packages.macports.org/p5.34-image-exiftool ---> Attempting to fetch p5.34-image-exiftool-13.300.0_0.darwin_any.noarch.tbz2.rmd160 from https://packages.macports.org/p5.34-image-exiftool ---> Installing p5.34-image-exiftool @13.300.0_0 ---> Activating p5.34-image-exiftool @13.300.0_0 ---> Cleaning p5.34-image-exiftool ---> Scanning binaries for linking errors ---> No broken files found. ---> No broken ports found.
download MacOS version of jhead and install it in /opt/local/bin
sudo port install wget
% sudo port install wget ---> Computing dependencies for wget The following dependencies will be installed: curl-ca-bundle gnutls gsettings-desktop-schemas libidn2 libproxy libpsl libtasn1 libunistring libxslt nettle p11-kit Continue? [Y/n]: Y
% cd ~/Downloads % wget https://www.sentex.ca/~mwandel/jhead/os-x/jhead --2025-05-26 15:24:31-- https://www.sentex.ca/~mwandel/jhead/os-x/jhead Resolving www.sentex.ca (www.sentex.ca)... 64.7.148.55 Connecting to www.sentex.ca (www.sentex.ca)|64.7.148.55|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 72696 (71K) Saving to: ‘jhead’
jhead 100%[===================>] 70.99K 291KB/s in 0.2s
It has been a long time since I rip a CD to FLAC files and I used to do this on Windows. Now my primary system is macOS, I want to find out how to do this on a Mac.
I decided to use macOS Music/iTunes to extract tracks from CD to Apple Lossless Audio Codec(AAC):
A Better CD Encoder(ABCDE) with Homebrew installed, “brew install abcde”
X Lossless Decoder(XLD) – just run it once and set the Output format and directory then open the AAC files with XLD and it will convert them to FLAC automatically
Perform the following tasks to change the workstation hostname using the scutil command.
Open a terminal.
Type the following command to change the primary hostname of your Mac:
This is your fully qualified hostname, for example myMac.domain.com
sudo scutil –set HostName <new host name>
Type the following command to change the Bonjour hostname of your Mac:
This is the name usable on the local network, for example myMac.local.
sudo scutil –set LocalHostName <new host name>
Optional: If you also want to change the computer name, type the following command:
This is the user-friendly computer name you see in Finder, for example myMac.
sudo scutil –set ComputerName <new name>
Flush the DNS cache by typing:
dscacheutil -flushcache
OS X is an UNIX OS. The Aqua GUI is nice an all but in order to get the full potential of OS X, you should know how to work with the Terminal(xterm) and scripts. Other free *NIXes have developed a nice package system and it is MacPorts that does package managements on OS X.
Requirement:
You need Apple Xcode Development Tools. Get it from AppStore(Link):
It is free!!! After it is installed, you need to accept Xcode EULA by either running xcode or entering the following command in the Terminal:
% xcodebuild -license
Go to Applications then double click on the Xcode so it gets installed on the system.
Now the Command Line Tools needs to be installed. Go to Xcode->Preferences->Downloads:
Click on the “Install” button next the the Command Line Tools.