Today I get a Mac mini in my lab. Here is how I set up it.
- Resolve a national network issue.
- Installed 1Password in Mac App Store. Actually this was ought to be the first step, but the campus network prevents me logging in (I don’t know why). So it became the second step.
- Swapped the control and the command key in preference panel because I used to press the command key with side of my hand.
- Bought an extra seat of Setapp. Download and install Setapp. Setapp start install apps in my favorites.
- Switched region in Preferences to United States. This prevents many softwares and websites offering me a limited version based on my region.
- Switched the default search engine of Safari to Google.
- Opened Dictionary.app and turned on New Oxford American Dictionary, Oxford American Writer’s Thesaurus, Oxford Dictionary of English and Oxford Thesaurus of English.
- Downloaded Things for Mac in Mac App Store.
- Downloaded and installed Figma. To be honest, I’m not a designer. It’s not so important for me but I just did it.
- Downloaded iTerm 2 and copied into my Application folder.
- Initiated Xcode download.
- Copied the install command of Homebrew to the terminal and press enter.
- Downloaded Google Chrome and Firefox Developer Edition.
- Downloaded Adobe Creative Cloud.
- Open Mac App Store and installed WeChat, QQ and Microsoft Office.
- Downloaded Visual Studio Code.
- Found that the download of Visual Studio Code and Creative Cloud suffered unexpected termination. Open Folx and retry downloading.
- Downloaded MonitorControl from GitHub.
- During the time of waiting download, purchased an USB-C to Display Port cable from JD.com.
- Found the download of Firefox and MonitorControl terminated. Retried with Folx.
- Found the download of Xcode and Microsoft Office failed. Sighed.
- Copied MonitorControl to my Applications folder.
- Opened built-in softwares in the Dock to make sure that iCloud sync is on and removed them from the Dock.
- Found that I hadn’t installed One Switch and Paste from Setapp. Installed them.
-
Found that brew installation failed. It gave me the following information. Seems another network connection problem. I had to retry with proxy on.
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'... remote: Enumerating objects: 5101, done. remote: Counting objects: 100% (5101/5101), done. remote: Compressing objects: 100% (4897/4897), done. error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60 fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1` exited with 128. Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1. Failed during: /usr/local/bin/brew update --force
- Copied Visual Studio Code to my Applications folder.
- Opened Bartender and granted privileges to it.
- Installed Node.js, Yarn and fish shell by brew.
- Set default shell to fish.
- Downloaded
iterm2-color-schemes
and had them loaded in iTerm 2. - Installed these extensions in Visual Studio Code: ESLint, Prettier, Rainglow (a theme pack) and Settings Sync.
- Created a SSH key with
ssh-keygen
and added it to my GitHub. - Copied Chrome and Firefox Developer Edition to Applications.
- Logged in my Google account on Chrome and turned on sync.
- Logged in my Mozilla account on Firefox and turned on sync.
- Downloaded GPG Suite and restored my GPG keys. I do sign with GPG keys on every git commit.
- Configure git's global settings: email, user name and GPG key.
After these 37 steps, the Mac mini is ready for production. It cost me around three hours. About 1/3 of time are wasted on resolving network-related problems.