Parallels m1 安装 arch 虚拟机并配置 KDE 和辅助程序

最近在探索 m1 MacBook 下运行 linux 虚拟机的可能性,计划未来在 linux 虚拟机下完成所有开发工作,parallels desktop 天然提供了 debian/ubuntu/fedora 等 linux 发行版支持,但是在我个人使用场景中还是多少有些问题。 ...

February 11, 2023 | 2 分钟 | 872 字 | Tianlun Song

Homebrew 安装策略(M1芯片 Macbook)

换了 m1 芯片的 Macbook 之后第一个感受到的就是使用 homebrew 的不一样,由于不同的芯片架构,其安装方法也有不同,在这简单记录。 Arm Mac 安装步骤 # arm homebrew 同时设为国内源 /bin/zsh -c "$(curl -fsSL https://gitee.com/huwei1024/HomebrewCN/raw/master/Homebrew.sh)" # 可在 .bashrc 追加下列内容实现 intel 和 arm 共存 alias abrew='arch -arm64 /opt/homebrew/bin/brew' alias ibrew='arch -x86_64 /usr/local/bin/brew' 安装更新国内 homebrew 镜像源 /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 说明 根据官方规划,ARM 版 Homebrew 必须安装在 /opt/homebrew 路径下,而非此前的 /usr/local/Homebrew。 ...

October 27, 2021 | 1 分钟 | 251 字 | Tianlun Song

Mac 下解决 zsh: no matches found: postcss@^7

mac开发引入 tailwindcss 库时遇到如下错误: zsh: no matches found: postcss@^7 可以这样解决: # 官网给出的命令如下 npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat postcss@\^7 autoprefixer@\^9 # mac的zsh中需要这样,因为错误的 ^ 解析 npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat postcss@^7 autoprefixer@^9 参考文献 zsh: no matches found: HEAD^ #449 zsh: no matches found: postcss@^7 #3575

August 8, 2021 | 1 分钟 | 89 字 | Tianlun Song