{"componentChunkName":"component---src-templates-post-tsx","path":"/how-did-i-set-up-a-new-mac","result":{"data":{"markdownRemark":{"html":"<p>Today I get a Mac mini in my lab. Here is how I set up it.</p>\n<ol>\n<li>Resolve <a href=\"https://en.wikipedia.org/wiki/Great_Firewall\" target=\"_blank\" rel=\"noopener noreferrer\">a national network issue</a>.</li>\n<li>Installed <a href=\"1password.com\">1Password</a> 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.</li>\n<li>Swapped the control and the command key in preference panel because I used to press the command key with side of my hand.</li>\n<li>Bought an extra seat of <a href=\"setapp.com\">Setapp</a>. Download and install Setapp. Setapp start install apps in my favorites.</li>\n<li>Switched region in Preferences to United States. This prevents many softwares and websites offering me a limited version based on my region.</li>\n<li>Switched the default search engine of Safari to Google.</li>\n<li>Opened Dictionary.app and turned on <em>New Oxford American Dictionary</em>, <em>Oxford American Writer’s Thesaurus</em>, <em>Oxford Dictionary of English</em> and <em>Oxford Thesaurus of English</em>.</li>\n<li>Downloaded <a href=\"https://culturedcode.com/things/\" target=\"_blank\" rel=\"noopener noreferrer\">Things for Mac</a> in Mac App Store.</li>\n<li>Downloaded and installed <a href=\"figma.com\">Figma</a>. To be honest, I’m not a designer. It’s not so important for me but I just did it.</li>\n<li>Downloaded <a href=\"iterm2.com\">iTerm 2</a> and copied into my Application folder.</li>\n<li>Initiated Xcode download.</li>\n<li>Copied the install command of <a href=\"https://brew.sh\" target=\"_blank\" rel=\"noopener noreferrer\">Homebrew</a> to the terminal and press enter.</li>\n<li>Downloaded <a href=\"https://www.google.com/chrome/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Chrome</a> and <a href=\"https://www.mozilla.org/en-US/firefox/developer/\" target=\"_blank\" rel=\"noopener noreferrer\">Firefox Developer Edition</a>.</li>\n<li>Downloaded <a href=\"http://creativecloud.adobe.com\" target=\"_blank\" rel=\"noopener noreferrer\">Adobe Creative Cloud</a>.</li>\n<li>Open Mac App Store and installed WeChat, QQ and Microsoft Office.</li>\n<li>Downloaded <a href=\"http://visualstudio.com\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Studio Code</a>.</li>\n<li>Found that the download of Visual Studio Code and Creative Cloud suffered unexpected termination. Open Folx and retry downloading.</li>\n<li>Downloaded <a href=\"https://github.com/the0neyouseek/MonitorControl\" target=\"_blank\" rel=\"noopener noreferrer\">MonitorControl</a> from GitHub.</li>\n<li>During the time of waiting download, purchased an USB-C to Display Port cable from JD.com.</li>\n<li>Found the download of Firefox and MonitorControl terminated. Retried with Folx.</li>\n<li>Found the download of Xcode and Microsoft Office failed. Sighed.</li>\n<li>Copied MonitorControl to my Applications folder.</li>\n<li>Opened built-in softwares in the Dock to make sure that iCloud sync is on and removed them from the Dock.</li>\n<li>Found that I hadn’t installed <a href=\"fireball.studio/oneswitch\">One Switch</a> and <a href=\"pasteapp.me\">Paste</a> from Setapp. Installed them.</li>\n<li>\n<p>Found that brew installation failed. It gave me the following information. Seems another network connection problem. I had to retry with proxy on.</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...\nremote: Enumerating objects: 5101, done.\nremote: Counting objects: 100% (5101/5101), done.\nremote: Compressing objects: 100% (4897/4897), done.\nerror: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60\nfatal: the remote end hung up unexpectedly\nfatal: early EOF\nfatal: index-pack failed\nError: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1` exited with 128.\nError: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.\nFailed during: /usr/local/bin/brew update --force</code></pre></div>\n</li>\n<li>Copied Visual Studio Code to my Applications folder.</li>\n<li>Opened <a href=\"https://www.macbartender.com/\" target=\"_blank\" rel=\"noopener noreferrer\">Bartender</a> and granted privileges to it.</li>\n<li>Installed <a href=\"nodejs.org\">Node.js</a>, <a href=\"yarnpkg.com\">Yarn</a> and <a href=\"https://fishshell.com\" target=\"_blank\" rel=\"noopener noreferrer\">fish shell</a> by brew.</li>\n<li><a href=\"https://fishshell.com/docs/current/tutorial.html#tut_switching_to_fish\" target=\"_blank\" rel=\"noopener noreferrer\">Set default shell to fish.</a></li>\n<li>Downloaded <a href=\"https://iterm2colorschemes.com\" target=\"_blank\" rel=\"noopener noreferrer\"><code class=\"language-text\">iterm2-color-schemes</code></a> and had them loaded in iTerm 2.</li>\n<li>Installed these extensions in Visual Studio Code: ESLint, Prettier, Rainglow (a theme pack) and Settings Sync.</li>\n<li>Created a SSH key with <code class=\"language-text\">ssh-keygen</code> and added it to my GitHub.</li>\n<li>Copied Chrome and Firefox Developer Edition to Applications.</li>\n<li>Logged in my Google account on Chrome and turned on sync.</li>\n<li>Logged in my Mozilla account on Firefox and turned on sync.</li>\n<li>Downloaded <a href=\"https://gpgtools.org/\" target=\"_blank\" rel=\"noopener noreferrer\">GPG Suite</a> and restored my GPG keys. I do sign with GPG keys on every git commit.</li>\n<li>Configure git's global settings: email, user name and <a href=\"https://help.github.com/en/github/authenticating-to-github/telling-git-about-your-signing-key\" target=\"_blank\" rel=\"noopener noreferrer\">GPG key</a>.</li>\n</ol>\n<p>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.</p>","frontmatter":{"title":"How Did I Set up a New Mac","date":"December 07, 2019","tags":["mac","macos"],"language":"en"}},"site":{"siteMetadata":{"title":"Luyu Cheng"}}},"pageContext":{"id":"e3152d09-dd00-55d6-ba66-ad5b02be2849"}},"staticQueryHashes":["3649515864","63159454","684267432"]}