- 反激活 surge
- Google Chrome(拓展)(可以完全不使用)
- 1Password(密码、软件购买记录、Git SSH Key)
- VSCode(设置、插件)(备份于 Gist,可以完全不使用)
- Folo(全部订阅信息)
- 不收藏,不光是浏览器收藏,各个平台也是一样
- 不留历史记录,不依赖浏览器地址栏补全
- 聚合关注的信息到 RSS 全部使用 Folo,(Twitter 还没有)
基本上来说软件安装完了,就无法恢复安装之前的状态,清理卸载残留是没有意义的,不如隔一段时间重置系统。不要花时间来清理,只要保持只安装不可以避免的软件即可。
暂时未找到体验上和 Surge 一样好用的软件,不要折腾这个!
- 注意安装完写入环境变量
- 登录同步
- 1Password,AdGuard AdBlocker,File Icons for GitHub and GitLab,Grammarly,Immersive Translate,MetaMask,Refined GitHub,RSSHub Radar,Tampermonkey,划词翻译
- 不用 Brave、Arc,不好用
- 自动保存截图到剪贴板
- 注意下载的是安装器
- 设置拓展和 mac 互通
- 拓展关闭填充后自动提交
- 关闭开机自启
- 注意下载 arm only 版本
- 设置同步
- 添加 code 命令
- 设置 gitconfig 和 1password agent
- git ssh over https
- 设置终端
- 安装 node corepack
- 拉代码,测试 git
- 安装字体
- gh cli、npm 登录
- eas 登录
非必要不安装(可使用 ci 来构建 expo dev client)
- brew install CocoaPods fastlane
- xcode 安装完可能需要设置里选一下路径
https://docs.expo.dev/get-started/set-up-your-environment
非必要不安装(在家可以连 nas 的 docker 服务)
- 关闭按键绑定
Tweaks
- Prevent accidental quits by quitting apps with
- Prevent Dock from showing when moving mouse to screen edge
- Context menu items: Airdrop, New Text File, Open in terminal, Open in App (VS Code)
- Show hidden files
- Automatically clear clipboard for improved privacy
- Quit an app when closing its last window
- Offer to install apps from mounted DMG files
Shortcuts
- Dark mode
- Start cleaning mode (beta)
大多数情况下不要安装这个,目前只是为了监控 Mac mini 跑 GitHub Runner 的情况(CPU,外接硬盘容量、温度)。
Last login: Mon Aug 11 22:46:01 on console
~
➜ cd Developer
~/Developer
➜ git clone https://github.com/ggml-org/whisper.cpp
Cloning into 'whisper.cpp'...
remote: Enumerating objects: 22153, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 22153 (delta 3), reused 2 (delta 2), pack-reused 22146 (from 2)
Receiving objects: 100% (22153/22153), 24.19 MiB | 8.98 MiB/s, done.
Resolving deltas: 100% (15773/15773), done.
~/Developer took 5.1s
➜ cd whisper.cpp
whisper.cpp on master
➜ sh ./models/download-ggml-model.sh base.en
Downloading ggml model base.en from 'https://huggingface.co/ggerganov/whisper.cpp' ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1370 100 1370 0 0 1847 0 --:--:-- --:--:-- --:--:-- 1846
100 141M 100 141M 0 0 14.9M 0 0:00:09 0:00:09 --:--:-- 26.1M
Done! Model 'base.en' saved in '/Users/hyoban/Developer/whisper.cpp/models/ggml-base.en.bin'
You can now use it like this:
$ ./build/bin/whisper-cli -m /Users/hyoban/Developer/whisper.cpp/models/ggml-base.en.bin -f samples/jfk.wav
whisper.cpp on master took 9.5s
➜ cmake -B build
zsh: command not found: cmake
whisper.cpp on master
➜ which cmake
cmake not found
whisper.cpp on master
➜ brew install cmake
==> Auto-updating Homebrew...
Adjust how often this is run with
$HOMEBREW_AUTO_UPDATE_SECS
or disable with$HOMEBREW_NO_AUTO_UPDATE=1
. Hide these hints with$HOMEBREW_NO_ENV_HINTS=1
(seeman brew
).==> Auto-updated Homebrew!
==> Updated Homebrew from 4.6.0 (dbe68ef80c) to 4.6.3 (a0d01bc7c4).
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
apache-polaris: Interoperable, open source catalog for Apache Iceberg
mk: Wrapper for auto-detecting build and test commands in a repository
==> New Casks
icon-composer: Apple tool to create multi-platform icons
You have 12 outdated formulae installed.
The 4.6.3 changelog can be found at:
https://github.com/Homebrew/brew/releases/tag/4.6.3
==> Fetching downloads for: cmake
==> Downloading https://ghcr.io/v2/homebrew/core/cmake/manifests/4.1.0
######################################################################### 100.0%
==> Fetching cmake
==> Downloading https://ghcr.io/v2/homebrew/core/cmake/blobs/sha256:bb2ee3355e25
######################################################################### 100.0%
==> Pouring cmake--4.1.0.arm64_sequoia.bottle.tar.gz
==> Caveats
To install the CMake documentation, run:
brew install cmake-docs
==> Summary
🍺 /opt/homebrew/Cellar/cmake/4.1.0: 3,913 files, 58.6MB
==> Running
brew cleanup cmake
...Disable this behaviour by setting
HOMEBREW_NO_INSTALL_CLEANUP=1
.Hide these hints with
HOMEBREW_NO_ENV_HINTS=1
(seeman brew
).==> No outdated dependents to upgrade!
==> Caveats
Emacs Lisp files have been installed to:
/opt/homebrew/share/emacs/site-lisp/cmake
whisper.cpp on master took 29.0s
➜ cmake -B build
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
-- The C compiler identification is AppleClang 17.0.0.17000013
-- The CXX compiler identification is AppleClang 17.0.0.17000013
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.39.5 (Apple Git-154)")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Warning: ccache not found - consider installing it for faster compilation or disable this warning with GGML_CCACHE=OFF
-- CMAKE_SYSTEM_PROCESSOR: arm64
-- GGML_SYSTEM_ARCH: ARM
-- Including CPU backend
-- Accelerate framework found
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
CMake Warning at ggml/src/ggml-cpu/CMakeLists.txt:79 (message):
OpenMP not found
Call Stack (most recent call first):
ggml/src/CMakeLists.txt:361 (ggml_add_cpu_backend_variant_impl)
-- ARM detected
-- Performing Test GGML_COMPILER_SUPPORTS_FP16_FORMAT_I3E
-- Performing Test GGML_COMPILER_SUPPORTS_FP16_FORMAT_I3E - Failed
-- ARM -mcpu not found, -mcpu=native will be used
-- Performing Test GGML_MACHINE_SUPPORTS_dotprod
-- Performing Test GGML_MACHINE_SUPPORTS_dotprod - Success
-- Performing Test GGML_MACHINE_SUPPORTS_i8mm
-- Performing Test GGML_MACHINE_SUPPORTS_i8mm - Success
-- Performing Test GGML_MACHINE_SUPPORTS_sve
-- Performing Test GGML_MACHINE_SUPPORTS_sve - Failed
-- Performing Test GGML_MACHINE_SUPPORTS_nosve
-- Performing Test GGML_MACHINE_SUPPORTS_nosve - Success
-- Performing Test GGML_MACHINE_SUPPORTS_sme
-- Performing Test GGML_MACHINE_SUPPORTS_sme - Success
-- ARM feature DOTPROD enabled
-- ARM feature MATMUL_INT8 enabled
-- ARM feature FMA enabled
-- ARM feature FP16_VECTOR_ARITHMETIC enabled
-- ARM feature SME enabled
-- Adding CPU backend variant ggml-cpu: -mcpu=native+dotprod+i8mm+nosve+sme
-- Looking for dgemm_
-- Looking for dgemm_ - found
-- Found BLAS: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework
-- BLAS found, Libraries: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework
-- BLAS found, Includes:
-- Including BLAS backend
-- Metal framework found
-- The ASM compiler identification is AppleClang
-- Found assembler: /usr/bin/cc
-- Including METAL backend
-- ggml version: 0.0.2975
-- ggml commit: b02242d0
-- Configuring done (3.9s)
-- Generating done (0.3s)
-- Build files have been written to: /Users/hyoban/Developer/whisper.cpp/build
whisper.cpp on master took 4.9s
➜ cmake --build build --config Release
[ 1%] Building C object ggml/src/CMakeFiles/ggml-base.dir/ggml.c.o
[ 3%] Building CXX object ggml/src/CMakeFiles/ggml-base.dir/ggml.cpp.o
[ 5%] Building C object ggml/src/CMakeFiles/ggml-base.dir/ggml-alloc.c.o
[ 7%] Building CXX object ggml/src/CMakeFiles/ggml-base.dir/ggml-backend.cpp.o
[ 8%] Building CXX object ggml/src/CMakeFiles/ggml-base.dir/ggml-opt.cpp.o
[ 10%] Building CXX object ggml/src/CMakeFiles/ggml-base.dir/ggml-threading.cpp.o
[ 12%] Building C object ggml/src/CMakeFiles/ggml-base.dir/ggml-quants.c.o
[ 14%] Building CXX object ggml/src/CMakeFiles/ggml-base.dir/gguf.cpp.o
[ 15%] Linking CXX shared library libggml-base.dylib
[ 15%] Built target ggml-base
[ 17%] Generate assembly for embedded Metal library
Embedding Metal library
[ 19%] Building C object ggml/src/ggml-metal/CMakeFiles/ggml-metal.dir/ggml-metal.m.o
[ 21%] Building ASM object ggml/src/ggml-metal/CMakeFiles/ggml-metal.dir///__/autogenerated/ggml-metal-embed.s.o
[ 22%] Linking C shared library libggml-metal.dylib
[ 22%] Built target ggml-metal
[ 24%] Building C object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/ggml-cpu.c.o
[ 26%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/ggml-cpu.cpp.o
[ 28%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/repack.cpp.o
[ 29%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/hbm.cpp.o
[ 31%] Building C object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/quants.c.o
[ 33%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/traits.cpp.o
[ 35%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/amx/amx.cpp.o
[ 36%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/amx/mmq.cpp.o
[ 38%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/binary-ops.cpp.o
[ 40%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/unary-ops.cpp.o
[ 42%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/vec.cpp.o
[ 43%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/ops.cpp.o
[ 45%] Building C object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/arch/arm/quants.c.o
[ 47%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/arch/arm/repack.cpp.o
[ 49%] Linking CXX shared library libggml-cpu.dylib
[ 49%] Built target ggml-cpu
[ 50%] Building CXX object ggml/src/ggml-blas/CMakeFiles/ggml-blas.dir/ggml-blas.cpp.o
[ 52%] Linking CXX shared library libggml-blas.dylib
[ 52%] Built target ggml-blas
[ 54%] Building CXX object ggml/src/CMakeFiles/ggml.dir/ggml-backend-reg.cpp.o
[ 56%] Linking CXX shared library libggml.dylib
[ 56%] Built target ggml
[ 57%] Building CXX object src/CMakeFiles/whisper.dir/whisper.cpp.o
[ 59%] Linking CXX shared library libwhisper.dylib
[ 59%] Built target whisper
[ 61%] Building CXX object examples/CMakeFiles/common.dir/common.cpp.o
[ 63%] Building CXX object examples/CMakeFiles/common.dir/common-ggml.cpp.o
[ 64%] Building CXX object examples/CMakeFiles/common.dir/common-whisper.cpp.o
[ 66%] Building CXX object examples/CMakeFiles/common.dir/grammar-parser.cpp.o
[ 68%] Linking CXX static library libcommon.a
[ 68%] Built target common
[ 70%] Building CXX object tests/CMakeFiles/test-vad.dir/test-vad.cpp.o
[ 71%] Linking CXX executable ../bin/test-vad
[ 71%] Built target test-vad
[ 73%] Building CXX object tests/CMakeFiles/test-vad-full.dir/test-vad-full.cpp.o
[ 75%] Linking CXX executable ../bin/test-vad-full
[ 75%] Built target test-vad-full
[ 77%] Building CXX object examples/cli/CMakeFiles/whisper-cli.dir/cli.cpp.o
[ 78%] Linking CXX executable ../../bin/whisper-cli
[ 78%] Built target whisper-cli
[ 80%] Building CXX object examples/bench/CMakeFiles/whisper-bench.dir/bench.cpp.o
[ 82%] Linking CXX executable ../../bin/whisper-bench
[ 82%] Built target whisper-bench
[ 84%] Building CXX object examples/server/CMakeFiles/whisper-server.dir/server.cpp.o
[ 85%] Linking CXX executable ../../bin/whisper-server
[ 85%] Built target whisper-server
[ 87%] Building CXX object examples/quantize/CMakeFiles/quantize.dir/quantize.cpp.o
[ 89%] Linking CXX executable ../../bin/quantize
[ 89%] Built target quantize
[ 91%] Building CXX object examples/vad-speech-segments/CMakeFiles/vad-speech-segments.dir/speech.cpp.o
[ 92%] Linking CXX executable ../../bin/vad-speech-segments
[ 92%] Built target vad-speech-segments
[ 94%] Building CXX object examples/deprecation-warning/CMakeFiles/main.dir/deprecation-warning.cpp.o
[ 96%] Linking CXX executable ../../bin/main
[ 96%] Built target main
[ 98%] Building CXX object examples/deprecation-warning/CMakeFiles/bench.dir/deprecation-warning.cpp.o
[100%] Linking CXX executable ../../bin/bench
[100%] Built target bench
whisper.cpp on master took 26.9s
➜ sudo make install -C build
Password:
[ 15%] Built target ggml-base
[ 22%] Built target ggml-metal
[ 49%] Built target ggml-cpu
[ 52%] Built target ggml-blas
[ 56%] Built target ggml
[ 59%] Built target whisper
[ 68%] Built target common
[ 71%] Built target test-vad
[ 75%] Built target test-vad-full
[ 78%] Built target whisper-cli
[ 82%] Built target whisper-bench
[ 85%] Built target whisper-server
[ 89%] Built target quantize
[ 92%] Built target vad-speech-segments
[ 96%] Built target main
[100%] Built target bench
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/libwhisper.1.7.6.dylib
-- Installing: /usr/local/lib/libwhisper.1.dylib
-- Installing: /usr/local/lib/libwhisper.dylib
-- Installing: /usr/local/include/whisper.h
-- Installing: /usr/local/lib/cmake/whisper/whisper-config.cmake
-- Installing: /usr/local/lib/cmake/whisper/whisper-version.cmake
-- Installing: /usr/local/lib/pkgconfig/whisper.pc
-- Installing: /usr/local/lib/libggml-cpu.dylib
-- Installing: /usr/local/lib/libggml-blas.dylib
-- Installing: /usr/local/lib/libggml-metal.dylib
-- Installing: /usr/local/lib/libggml.dylib
-- Installing: /usr/local/include/ggml.h
-- Installing: /usr/local/include/ggml-cpu.h
-- Installing: /usr/local/include/ggml-alloc.h
-- Installing: /usr/local/include/ggml-backend.h
-- Installing: /usr/local/include/ggml-blas.h
-- Installing: /usr/local/include/ggml-cann.h
-- Installing: /usr/local/include/ggml-cpp.h
-- Installing: /usr/local/include/ggml-cuda.h
-- Installing: /usr/local/include/ggml-opt.h
-- Installing: /usr/local/include/ggml-metal.h
-- Installing: /usr/local/include/ggml-rpc.h
-- Installing: /usr/local/include/ggml-sycl.h
-- Installing: /usr/local/include/ggml-vulkan.h
-- Installing: /usr/local/include/ggml-webgpu.h
-- Installing: /usr/local/include/gguf.h
-- Installing: /usr/local/lib/libggml-base.dylib
-- Installing: /usr/local/lib/cmake/ggml/ggml-config.cmake
-- Installing: /usr/local/lib/cmake/ggml/ggml-version.cmake
-- Installing: /usr/local/bin/whisper-cli
-- Installing: /usr/local/bin/whisper-bench
-- Installing: /usr/local/bin/whisper-server
-- Installing: /usr/local/bin/vad-speech-segments
whisper.cpp on master took 5.5s
➜ cd ..
~/Developer
➜ git clone https://code.ffmpeg.org/FFmpeg/FFmpeg.git
Cloning into 'FFmpeg'...
remote: Enumerating objects: 768293, done.
remote: Counting objects: 100% (10705/10705), done.
remote: Compressing objects: 100% (479/479), done.
remote: Total 768293 (delta 10521), reused 10227 (delta 10226), pack-reused 757588 (from 1)
Receiving objects: 100% (768293/768293), 158.51 MiB | 8.05 MiB/s, done.
Resolving deltas: 100% (624522/624522), done.
~/Developer took 32.1s
➜ cd FFmpeg
FFmpeg on master
➜ ./configure --prefix=/usr --enable-version3 --disable-shared --enable-gpl
--enable-nonfree --enable-static --enable-pthreads --enable-filters
--enable-openssl --enable-runtime-cpudetect --enable-libvpx --enable-libx264 \
--enable-libx265 --enable-libspeex --enable-libfreetype --enable-fontconfig
--enable-libzimg --enable-libvorbis --enable-libwebp --enable-libfribidi
--enable-libharfbuzz --enable-libpulse --enable-libass --enable-whisper
ERROR: libass >= 0.11.0 not found using pkg-config
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.