mac 格盘 重装系统记录

更新:
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下载系统


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归档,装好系统后再从归档安装。
鼠须管输入法,
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
微信开发者工具
钥匙串/Library/Keychains

遇到的问题:
0、证书忘记备份了,导致Xcode开发者账号还得登录下,存放位置也得找一下
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。安装五笔输入法,系统的不好用,不开源的又在监控你
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"

终端执行./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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 158,847评论 4 362
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,208评论 1 292
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 108,587评论 0 243
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,942评论 0 205
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,332评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,587评论 1 218
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,853评论 2 312
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,568评论 0 198
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,273评论 1 242
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,542评论 2 246
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,033评论 1 260
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,373评论 2 253
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,031评论 3 236
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,073评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,830评论 0 195
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,628评论 2 274
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,537评论 2 269