Mac M1 重装系统初始化
1.官方下载app(微信,Mircosoft remote desktop,浏览器,vlc,
2.设置.zshrc
export PATH=/opt/homebrew/bin:$PATH
export PATH=/opt/homebrew/sbin:$PATH
alias proxy='export all_proxy=socks5://127.0.0.1:7000'
alias unproxy='unset all_proxy'
3.安装git
4.安装homebrew
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"
M1 安装到opt目录,cd /opt
git clone https://github.com/Homebrew/brew homebrew
sudo chown -R $(whoami) /opt/homebrew
brew tap --custom-remote --force-auto-update homebrew/cask-versions https://mirrors.ustc.edu.cn/homebrew-cask-versions.git
5.安装sshpass
下载下来编译安装 https://sourceforge.net/projects/sshpass/
./configure make cp sshpass /opt/homebrew/bin/
6.恢复备份.ssh文件夹
7.关闭聚焦
sudo mdutil -a -i off

浙公网安备 33010602011771号