1、homebrew安裝方式
為什么安裝Homebrew
我的理解homebrew就像一個yum 和apt-get 一樣,可以統一管理和安裝軟件源
官方參考: https://docs.brew.sh/Installation
export HOMEBREW_BREW_GIT_REMOTE="..." # put your Git mirror of Homebrew/brew here export HOMEBREW_CORE_GIT_REMOTE="..." # put your Git mirror of Homebrew/homebrew-core here /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
如上所示的安裝,在國內沒有梯子是網速非常慢的,最好是配置以下國內的源。
實際操作流程如下:
# 配置homebrew的源
listenningthuder@localhost chore % export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/homebrew-core.git" listenningthuder@localhost chore % export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/brew.git" # 安裝homebrew
listenningthuder@localhost chore % /bin/bash -c "$(curl -fsSL http://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew
==> HOMEBREW_BREW_GIT_REMOTE is set to a non-default URL:
https://mirrors.aliyun.com/homebrew/brew.git will be used as the Homebrew/brew Git remote.
==> HOMEBREW_CORE_GIT_REMOTE is set to a non-default URL:
https://mirrors.aliyun.com/homebrew/homebrew-core.git will be used as the Homebrew/homebrew-core Git remote.
Press RETURN to continue or any other key to abort:
==> /usr/bin/sudo /usr/sbin/chown -R listenningthuder:admin /opt/homebrew
==> Downloading and installing Homebrew...
HEAD is now at 9263d95bf Merge pull request #12867 from Homebrew/update-man-completions
HOMEBREW_BREW_GIT_REMOTE set: using https://mirrors.aliyun.com/homebrew/brew.git for Homebrew/brew Git remote.
HOMEBREW_CORE_GIT_REMOTE set: using https://mirrors.aliyun.com/homebrew/homebrew-core.git for Homebrew/core Git remote.
Fetching objects: 5
Fetching objects: 1141459, done.
From https://mirrors.aliyun.com/homebrew/homebrew-core
* [new branch] master -> origin/master
fatal: Could not resolve HEAD to a revision
Warning: /opt/homebrew/bin is not in your PATH.
Instructions on how to configure your shell for Homebrew
can be found in the 'Next steps' section below.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/listenningthuder/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- Run these commands in your terminal to add the non-default Git remotes for Homebrew/brew and Homebrew/homebrew-core:
echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/brew.git"' >> /Users/listenningthuder/.zprofile
echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/homebrew-core.git"' >> /Users/listenningthuder/.zprofile
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/homebrew-core.git"
- Run brew help to get started
- Further documentation:
https://docs.brew.sh
listenningthuder@localhost chore %
listenningthuder@localhost chore % brew help
zsh: command not found: brew
listenningthuder@localhost chore %
# 配置homebrew信息
listenningthuder@localhost chore % echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/listenningthuder/.zprofile
listenningthuder@localhost chore % eval "$(/opt/homebrew/bin/brew shellenv)"
listenningthuder@localhost chore %
listenningthuder@localhost chore % echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/brew.git"' >> /Users/listenningthuder/.zprofile
listenningthuder@localhost chore % echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/homebrew-core.git"' >> /Users/listenningthuder/.zprofile
listenningthuder@localhost chore % export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/brew.git"
listenningthuder@localhost chore % export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/homebrew-core.git"
listenningthuder@localhost chore % brew help
Example usage:
brew search TEXT|/REGEX/
brew info [FORMULA|CASK...]
brew install FORMULA|CASK...
brew update
brew upgrade [FORMULA|CASK...]
brew uninstall FORMULA|CASK...
brew list [FORMULA|CASK...]
Troubleshooting:
brew config
brew doctor
brew install --verbose --debug FORMULA|CASK
Contributing:
brew create URL [--no-fetch]
brew edit [FORMULA|CASK...]
Further help:
brew commands
brew help [COMMAND]
man brew
https://docs.brew.sh
listenningthuder@localhost chore %
2、安裝終端iterm2
相蘋果自帶的終端,item2做了一些優化,也更方便使用
3、配置Iterm2終端
mac 使用的是zsh,該shell配置起來非常麻煩,但是github上有一個開源的項目 oh my zsh,已經配置好了很多模板,因此直接下載后使用即可
#
listenningthuder@localhost chore % git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh Cloning into '/Users/listenningthuder/.oh-my-zsh'... remote: Enumerating objects: 28986, done. remote: Total 28986 (delta 0), reused 0 (delta 0), pack-reused 28986 Receiving objects: 100% (28986/28986), 9.06 MiB | 419.00 KiB/s, done. Resolving deltas: 100% (14549/14549), done. listenningthuder@localhost chore % cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc listenningthuder@localhost chore % chsh -s /bin/zsh Changing shell for listenningthuder. Password for listenningthuder: chsh: no changes made # 配置自己喜歡的主題,關鍵字是ZSH_THEME=robbyrussell listenningthuder@localhost chore % vi ~/.zshrc
# 在當前窗口立刻生效該主題, listenningthuder@localhost chore % source ~/.zshrc ➜ chore ➜ chore ls
4、VMWARE虛擬機安裝
下載地址:
https://macwk.com/soft/vmware-fusion
https://www.123pan.com/s/c6cA-2Bkw3
可以用的破解碼 :VMware Fusion 12.0.0 許可證密鑰:
ZF3R0-FHED2-M80TY-8QYGC-NPKYF
YF390-0HF8P-M81RQ-2DXQE-M2UT6
ZF71R-DMX85-08DQY-8YMNC-PPHV8
5、Navicat安裝