mac 格盤 重裝系統(tǒng)記錄

更新:
finder show hidden file

Command + Shift + .

允許安裝任何來源軟件
sudo spctl --master-disable

臨時運行軟件
sudo xattr -d com.apple.quarantine /Applications/PaintCode.app

備忘錄位置
/Users/dfpo/Library/Group Containers/group.com.apple.notes
鑰匙串位置
/Users/dfpo/Library/Keychains

Provisioning Profiles位置
/Users/dfpo/Library/MobileDevice/Provisioning\ Profiles

右鍵自定義菜單
/Users/dfpo/Library/Services

打印機
/Users/dfpo/Library/Printers

appdelete很厲害

host

lantern

chrome
source ~/.zshrc
homebrew
https://mirror.tuna.tsinghua.edu.cn/help/homebrew/

pod
gem sources -l
gem sources --remove https://rubygems.org/
gem sources -a https://gems.ruby-china.com/

rvm
curl -sSL https://get.rvm.io | bash -s stable
rvm install 2.6.6
rvm use 2.6.6 --default
sudo gem install -n /usr/local/bin cocoapods

1、store下載系統(tǒng)


image.png

2、用個16gU盤,參照官網制作為啟動盤
https://support.apple.com/zh-cn/HT201372#create

sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyDisk/

image.png

關機,插入U盤,按住command+r后,按開機鍵,
格式化硬盤,重裝。
3、文件備份清單
大文件移動到移動硬盤中去,幾百年不用不看的刪除吧,人的這種收藏心理很可怕。
需要破解軟件或者有什么登錄密鑰配置的用AppDelete歸檔,裝好系統(tǒng)后再從歸檔安裝。
鼠須管輸入法,
ssh等備份,
.bash_profile文件里的有用的配置備份,
Flutter文件夾備份,
蘋果備忘錄備份~/Library/Group Containers/group.com.apple.notes,
需要重裝用dmg安裝的應用程序記錄名字,重新下載dmg。
Xcode代碼塊~/Library/Developer/Xcode/UserData/CodeSnippets
Sourcetree登錄密鑰等
OpenInTerminal
GitBook Editor
EasyConnect
CleanMyMac X
Charles中文版
BetterZip
AppDelete
Alfred 4
微信聊天記錄~/Library/Containers/com.tencent.xinWeChat/Data/Library/Application Support/com.tencent.xinWeChat
微信開發(fā)者工具
鑰匙串/Library/Keychains

遇到的問題:
0、證書忘記備份了,導致Xcode開發(fā)者賬號還得登錄下,存放位置也得找一下
1、bash_profile配置的別名不好使,新建.zshrc復制內容至其后, source .zshrc。10.15.5默認zsh了,之前是從低版本升級上去了,bash_profile還好使,可見這兼容性真強。

image.png

2。安裝pod
https://guides.cocoapods.org/using/getting-started.html

sudo gem install cocoapods
3。安裝Xcode11.5, flutter upgrade to 1.7.5
4。安裝五筆輸入法,系統(tǒng)的不好用,不開源的又在監(jiān)控你
git clone --recursive https://github.com/rime/squirrel.git
支持五筆輸入
https://github.com/rime/rime-wubi
brew install cmake
brew install boost@1.60
brew link --force boost@1.60
git clone --recursive https://github.com/rime/squirrel.git
cd squirrel
make deps
make
sudo make install
初步安裝好了

image.png

然后載入五筆
cd plum
./rime-install wubi pinyin-simp
在輸入選項中只用五筆

# default.custom.yaml
# save it to: 
#   ~/.config/ibus/rime  (linux)
#   ~/Library/Rime       (macos)
#   %APPDATA%\Rime       (windows)

patch:
  schema_list:
    - schema: wubi86               # 五筆86

用自定義外觀字號圓角之類的,哪些app只英文等

# 適用於【鼠鬚管】0.9.13+
# 位置:~/Library/Rime/squirrel.custom.yaml
# 用法:想要哪項生效,就刪去該行行首的#字符,但注意保留用於縮進的空格

patch:
  
  preset_color_schemes:
    so_young:
      name: "致青春/So Young"
      author: "五磅兔 zcunlin@foxmail.com"
      text_color: 0x8236d3
      back_color: 0xe3f6fd
      border_color: 0xd5e8ee
      label_color: 0xa1a193
      candidate_text_color: 0x837b65
      comment_text_color: 0xd28b26
      hilited_text_color: 0x969483
      hilited_back_color: 0xd5e8ee
      hilited_candidate_text_color: 0xd5e8ee
      hilited_comment_text_color: 0xd5e8ee
      hilited_candidate_back_color: 0x98a12a
  style:
    color_scheme: so_young
    horizontal: true # 候選窗橫向顯示
    corner_radius: 4 # 窗口圓角半徑
    border_height: 4 # 窗口邊界高度,大于圓角半徑才有效果
    border_width: 6 # 窗口邊界寬度,大于圓角半徑才有效果
    font_face: "PingFangSC-Regular,Noto Sans CJK TC" # 預選欄文字字體,使用中文字體:蘭亭黑-纖黑
    font_point: 28 #預選欄文字字號
    label_font_face: "PingFangSC-Light,Myriad Pro Light" # 預選欄編號字體,使用西文字體:Myriad Pro Light
    label_font_point: 28 #預選欄編號字號
    inline_preedit: true
  app_options/com.microsoft.VSCode:
    ascii_mode: true
  app_options/com.adobe.Reader:
    ascii_mode: true
  app_options/com.apple.Xcode:
    ascii_mode: true
  app_options/com.runningwithcrayons.Alfred-3:
    ascii_mode: true
  app_options/com.runningwithcrayons.Alfred-Preferences-3:
    ascii_mode: true
  app_options/com.apple.spotlight:
    ascii_mode: true
  app_options/com.apple.Terminal:
    ascii_mode: true
  app_options/com.apple.Safari:
    ascii_mode: true
  app_options/com.google.Chrome:
    ascii_mode: true
  app_options/com.google.Chrome.canary:
    ascii_mode: true
  app_options/org.mozilla.firefox:
    ascii_mode: true
  app_options/com.operasoftware.Opera:
    ascii_mode: true
  app_options/com.macromates.TextMate.preview:
    ascii_mode: true
  app_options/com.sublimetext.2:
    ascii_mode: true
  app_options/com.sublimetext.3:
    ascii_mode: true
  app_options/com.github.atom:
    ascii_mode: true
  app_options/org.vim.MacVim:
    ascii_mode: true
  app_options/com.googlecode.iterm2:
    ascii_mode: true
  app_options/com.kapeli.dash:
    ascii_mode: true
  app_options/io.brackets.appshell:
    ascii_mode: true
  app_options/com.kodowa.LightTable:
    ascii_mode: true
  app_options/com.adobe.Reader:
    ascii_mode: true
  app_options/net.sourceforge.skim-app.skim:
    ascii_mode: true
  app_options/org.mozilla.aurora:
    ascii_mode: true
  app_options/org.keepassx.keepassx:
    ascii_mode: true

更多自定義配置https://github.com/rime/home/wiki/CustomizationGuide

其實就這三個自定義配置文件,下次直接拖入這三個配置文件 即可或者整個文件夾做成個git

image.png

更深入配置
https://segmentfault.com/a/1190000005754706

5。安裝brew
https://segmentfault.com/a/1190000021360086
https://blog.csdn.net/seven_28/article/details/104934623
復制https://raw.githubusercontent.com/Homebrew/install/master/install.sh的內容 為brew_install文件
增加權限chmod 755 brew_install
把BREW_REPO = "https://github.com/Homebrew/brew"換成
BREW_REPO="https://mirrors.ustc.edu.cn/brew.git"

終端執(zhí)行./brew_install

6、運行h5項目 npm run dev, 得安裝npm
用brew安裝可能網速慢,這次體驗用pkg
https://nodejs.org/zh-cn/

image.png

安裝cnpm, https://www.npmjs.com/package/cnpm
npm install cnpm -g --registry=https://r.npm.taobao.org

image.png
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

友情鏈接更多精彩內容