Below I describe how to setup my Mac (what I do when I setup a new Macintosh).
After backing up the data using TimeMachine or alike, initialize the data by starting with the safe boot mode (press command+r when startup your Mac), we initialize Mac, and reinstall OS (and then update).
Login to My Handai site (https://my.osaka-u.ac.jp) using your Osaka University ID, find "Other service" and "Microsoft software. Download Office 2019 for Mac and install.
Install from AppleStore (may take an hour or so).
Use Homebrew to install commands necessary for the research. Follow the description in the Homebrew webpage and execute the following on your terminal as:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
(check the command in the original webpage)
After finishing Homebrew, install the following commands (at least) as:
> brew cask install xquartz
> brew install gcc
> brew install open-mpi
> brew install gnuplot