Add VNC/reboot gotchas: Standard vs High Performance, service startup, auto-login

High Performance mode creates a virtual display that hijacks VNC and
stuck the TV on the mirror/extend prompt. Also: screensharing doesn't
relaunch after reboot (launchctl fix), and headless hosts need
auto-login or a reboot strands you at the login window.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-09 23:03:24 +08:00
parent 95e6b1f98e
commit cb4efe5059

View File

@@ -123,6 +123,13 @@ llama-server -m ~/.cache/llmfit/models/gemma-4-E4B-it-Q8_0.gguf -ngl 999 --jinja
- **唯一解:實體到那台**「系統設定 → 一般 → 共享 → 螢幕共享」把開關打開(已開就關掉再開,對應錯誤訊息的「停用並重新啟用」)。這個授權主開關受保護,SSH 摸不到。→ headless 機器至少要接一次螢幕鍵鼠開好它。
- `sudo ssh` 要密碼但 `!` 前綴管道無 tty → sudo 會 `a terminal is required`;這類指令要在真正的 Terminal.app 跑。
7. **VNC 連線選「標準」,別選「高效能」** — 「高效能」會建立一個**虛擬顯示器**,VNC 看到的是虛擬螢幕、不是電視畫面;那個多出來的隱形顯示器還會讓電視卡在「鏡像輸出或延伸顯示」引導畫面出不來。「標準」= 共享實際螢幕,跟電視完全同步。
- 電視卡引導畫面時,`killall WindowServer``killall AirPlayUIAgent`、displayplacer 重套設定都清不掉;鍵鼠能點就點掉,不能點就設好自動登入後重開機。
8. **重開機後 screensharing 不會自動起來** — 5900 關著時用 `sudo launchctl enable system/com.apple.screensharing && sudo launchctl bootstrap system /System/Library/LaunchDaemons/com.apple.screensharing.plist` 拉起來(這跟第 6 條不衝突:主開關已在 GUI 開過、只是服務沒被 launchd 載入時,CLI 拉得動)。
9. **headless 主機必設自動登入** — 沒設的話重開機停在登入視窗,藍牙鍵鼠不聽話就卡死。GUI 設定在「使用者與群組 → 自動登入」;純 CLI 要把密碼 XOR 加密寫 `/etc/kcpassword` + `defaults write /Library/Preferences/com.apple.loginwindow autoLoginUser timmy`
## 24 GB 記憶體下的模型選擇
- 旗艦 (吃緊): `gemma-4-26B-A4B-it` MoE → 16.8 GB at 4-bit (70% 記憶體)